monkey/envs/monkey_zoo/blackbox
Shay Nehmad dde2e1a7e4 Added some documentation and improved logging in Blackbox 2019-10-06 15:05:34 +03:00
..
analyzers Fixed bugs regarding waiting for monkeys to die, readability improvements 2019-09-17 09:17:29 +03:00
island_client Added some documentation and improved logging in Blackbox 2019-10-06 15:05:34 +03:00
island_configs Added 2 PTH tests, changed consts to improve stability 2019-09-24 16:18:11 +03:00
log_handlers Real time logging implemented 2019-10-01 16:11:53 +03:00
tests Real time logging implemented 2019-10-01 16:11:53 +03:00
utils Added some documentation and improved logging in Blackbox 2019-10-06 15:05:34 +03:00
README.md Added some documentation and improved logging in Blackbox 2019-10-06 15:05:34 +03:00
__init__.py Basic skeleton for blackbox script 2019-08-27 15:52:39 +03:00
conftest.py Refactored to run series of tests, improved configurations, file structure 2019-09-11 12:39:28 +03:00
pytest.ini Real time logging implemented 2019-10-01 16:11:53 +03:00
requirements.txt Removed unused package requirement 2019-10-03 15:43:18 +03:00
test_blackbox.py Real time logging implemented 2019-10-01 16:11:53 +03:00

README.md

Automatic blackbox tests

Prerequisites

  1. Download google sdk: https://cloud.google.com/sdk/docs/
  2. Download service account key for MonkeyZoo project (if you deployed MonkeyZoo via terraform scripts then you already have it). GCP console -> IAM -> service accounts(you can use the same key used to authenticate terraform scripts)
  3. Deploy the relevant branch + complied executables to the Island machine on GCP.

Running the tests

In order to execute the entire test suite, you must know the external IP of the Island machine on GCP. You can find this information in the GCP Console Compute Engine/VM Instances under External IP.

Running in command line

Run the following command:

monkey\envs\monkey_zoo\blackbox>python -m pytest --island=35.207.152.72:5000 test_blackbox.py

Running in PyCharm

Configure a PyTest configuration with the additional argument --island=35.207.152.72 on the monkey\envs\monkey_zoo\blackbox.