From c1d26ec3342ec776346c308b30e3a64d90effef1 Mon Sep 17 00:00:00 2001 From: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com> Date: Wed, 28 Feb 2024 22:17:59 +0600 Subject: [PATCH] test(k8s): use test-db for k8s integration tests (#6222) --- integration/k8s_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration/k8s_test.go b/integration/k8s_test.go index 99e16e59514f..62a0bbd2d526 100644 --- a/integration/k8s_test.go +++ b/integration/k8s_test.go @@ -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",