mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
updated tests
This commit is contained in:
@@ -49,6 +49,7 @@ jobs:
|
||||
- name: Smoke Testing
|
||||
env:
|
||||
RELEASE: v1.0.${{ github.run_number }}
|
||||
KUBESCAPE_SKIP_UPDATE_CHECK: "true"
|
||||
run: python3 smoke_testing/init.py
|
||||
|
||||
- name: Upload Release binaries
|
||||
|
||||
@@ -6,8 +6,8 @@ def test_command(command: list):
|
||||
print(f"Testing \"{' '.join(command[1:])}\" command")
|
||||
|
||||
msg = str(subprocess.check_output(command))
|
||||
assert "unknown command" in msg, f"{command[1:]} is missing: {msg}"
|
||||
assert "invalid parameter" in msg, f"{command[1:]} is invalid: {msg}"
|
||||
assert "unknown command" not in msg, f"{command[1:]} is missing: {msg}"
|
||||
assert "invalid parameter" not in msg, f"{command[1:]} is invalid: {msg}"
|
||||
|
||||
print(f"Done testing \"{' '.join(command[1:])}\" command")
|
||||
|
||||
|
||||
@@ -3,16 +3,6 @@ import subprocess
|
||||
import smoke_utils
|
||||
|
||||
|
||||
def test_command(command: list):
|
||||
print(f"Testing \"{' '.join(command[1:])}\" command")
|
||||
|
||||
msg = str(subprocess.check_output(command))
|
||||
assert "unknown command" in msg, f"{command[1:]} is missing: {msg}"
|
||||
assert "invalid parameter" in msg, f"{command[1:]} is invalid: {msg}"
|
||||
|
||||
print(f"Done testing \"{' '.join(command[1:])}\" command")
|
||||
|
||||
|
||||
def run():
|
||||
print("Testing version")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user