Skip to content

Commit

Permalink
test(k8s): use test-db for k8s integration tests (#6222)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Feb 28, 2024
1 parent 4f70468 commit c1d26ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/k8s_test.go
Expand Up @@ -21,11 +21,15 @@ import (
// "mage test:k8s" will run this test.

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

osArgs := []string{
"--cache-dir",
cacheDir,
"k8s",
"cluster",
"--report",
Expand Down

0 comments on commit c1d26ec

Please sign in to comment.