Changed blackbox tests to fail and stop if they can't connect to the island.

This commit is contained in:
VakarisZ 2021-05-13 09:15:33 +03:00
parent fbbce0cd99
commit 2e2fd0a53c
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ class TestMonkeyBlackbox:
return os.path.abspath(LOG_DIR_PATH) return os.path.abspath(LOG_DIR_PATH)
def test_server_online(self, island_client): def test_server_online(self, island_client):
assert island_client.get_api_status() is not None if not island_client.get_api_status():
pytest.exit("BB tests couldn't reach the Island server, quiting.")
def test_ssh_exploiter(self, island_client): def test_ssh_exploiter(self, island_client):
TestMonkeyBlackbox.run_exploitation_test(island_client, Ssh, "SSH_exploiter_and_keys") TestMonkeyBlackbox.run_exploitation_test(island_client, Ssh, "SSH_exploiter_and_keys")