Skip to content

Commit c1d26ec

Browse files
authored
test(k8s): use test-db for k8s integration tests (aquasecurity#6222)
1 parent 4f70468 commit c1d26ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integration/k8s_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ import (
2121
// "mage test:k8s" will run this test.
2222

2323
func TestK8s(t *testing.T) {
24+
// Set up testing DB
25+
cacheDir := initDB(t)
2426
t.Run("misconfig and vulnerability scan", func(t *testing.T) {
2527
// Set up the output file
2628
outputFile := filepath.Join(t.TempDir(), "output.json")
2729

2830
osArgs := []string{
31+
"--cache-dir",
32+
cacheDir,
2933
"k8s",
3034
"cluster",
3135
"--report",

0 commit comments

Comments
 (0)