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>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-19 00:27:09 +00:00
committed by GitHub
parent c372bb1b71
commit 55ec84b6ae
+1 -1
View File
@@ -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)