updated tests

This commit is contained in:
dwertent
2021-10-31 15:31:23 +02:00
parent 959b25e8b7
commit 17aec665cf
3 changed files with 3 additions and 12 deletions
+1
View File
@@ -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
+2 -2
View File
@@ -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")
-10
View File
@@ -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")