Skip to main content
Glama

Trivy

Official
by aquasecurity
id_test.go753 B
package findings import ( "testing" "github.com/stretchr/testify/assert" ) func TestMakeFindingID(t *testing.T) { tests := []struct { name string src string identifier string artifactType string version string path string line int want string }{ { name: "valid ID", src: "test", identifier: "test", artifactType: "test", version: "test", path: "test", line: 1, want: "ce722414edb6d72d", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := MakeFindingID(tt.src, tt.identifier, tt.artifactType, tt.name, tt.version, tt.path, tt.line) assert.Equal(t, tt.want, got) }) } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aquasecurity/trivy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server