chore: update go tests to use our hosted trivy-db and trivy-java-db images (#2754)

There are 2 remaining exceptions that I am aware of:
1. The tests under test/blackbox/cve.bats
2. One of the cli tests checking the server attempts download of the databases
from the default url

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
Andrei Aaron
2024-11-01 23:14:52 +02:00
committed by GitHub
parent 30ecceda8c
commit da923ae232
4 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -1070,7 +1070,7 @@ func TestServeSearchEnabled(t *testing.T) {
})
}
func TestServeSearchEnabledCVE(t *testing.T) {
func TestServeSearchEnabledDefaultCVEDB(t *testing.T) {
oldArgs := os.Args
defer func() { os.Args = oldArgs }()