fix: update test_command and test_scan to remove deprecated scan commands and adjust file paths

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
This commit is contained in:
Matthias Bertschy
2025-12-12 14:39:11 +01:00
parent 32551275ba
commit 6be9aec5b0
2 changed files with 4 additions and 4 deletions

View File

@@ -19,8 +19,6 @@ def run(kubescape_exec:str):
test_command(command=[kubescape_exec, "download", "artifacts"])
test_command(command=[kubescape_exec, "config"])
test_command(command=[kubescape_exec, "help"])
test_command(command=[kubescape_exec, "scan", "--keep-local", "framework", "nsa"])
test_command(command=[kubescape_exec, "scan", "--keep-local", "control", "C-0058"])
print("Done testing commands")

View File

@@ -3,8 +3,10 @@ import smoke_utils
import sys
all_files = os.path.join("..", "examples", "online-boutique", "*.yaml")
single_file = os.path.join("..", "examples", "online-boutique", "frontend.yaml")
curr_dir = os.path.dirname(os.path.realpath(__file__))
# examples/online-boutique/*.yaml is at ../examples/online-boutique/*.yaml relative to this script
all_files = os.path.join(curr_dir, "..", "examples", "online-boutique", "*.yaml")
single_file = os.path.join(curr_dir, "..", "examples", "online-boutique", "frontend.yaml")
def scan_all(kubescape_exec: str):