forked from p34709852/monkey
Changed blackbox tests to fail and stop if they can't connect to the island.
This commit is contained in:
parent
fbbce0cd99
commit
2e2fd0a53c
|
@ -159,7 +159,8 @@ class TestMonkeyBlackbox:
|
|||
return os.path.abspath(LOG_DIR_PATH)
|
||||
|
||||
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):
|
||||
TestMonkeyBlackbox.run_exploitation_test(island_client, Ssh, "SSH_exploiter_and_keys")
|
||||
|
|
Loading…
Reference in New Issue