mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
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:
@@ -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")
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user