From 55ec84b6ae8f1c11df004d8d410e1db9cda0a315 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 May 2026 00:27:09 +0000 Subject: [PATCH] test: include default trivy SBOM field in CVE config assertion Agent-Logs-Url: https://github.com/project-zot/zot/sessions/178b2d2c-fa60-49c9-8f8f-07301bce8cf2 Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com> --- pkg/cli/server/extensions_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/server/extensions_test.go b/pkg/cli/server/extensions_test.go index 083eb975..62dbc2b2 100644 --- a/pkg/cli/server/extensions_test.go +++ b/pkg/cli/server/extensions_test.go @@ -968,7 +968,7 @@ func TestServeSearchEnabledDefaultCVEDB(t *testing.T) { // The default config handling logic will convert the 1h interval to a 2h interval substring := "\"Search\":{\"Enable\":true,\"CVE\":{\"UpdateInterval\":7200000000000,\"Trivy\":" + "{\"DBRepository\":\"ghcr.io/aquasecurity/trivy-db\",\"JavaDBRepository\":\"ghcr.io/aquasecurity/trivy-java-db\"," + - "\"VulnSeveritySources\":[\"auto\"]}}}" + "\"VulnSeveritySources\":[\"auto\"],\"SBOM\":null}}}" found, err := ReadLogFileAndSearchString(logPath, substring, readLogFileTimeout)