cloud_integration_tests
Integration tests to run as part of deploy pipeline for Marqo cloud.
Run tests
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
tox
To run tests against your dev stack. Copy the config/sample.config.json file to config/dev.config.json and set appropriate values for control_plane_endpoint and api_key in the json config.
Once you have set up the file run TEST_ENV=dev && tox
Debugging the tests
Add the following lines to integration_test.py
if __name__ == "__main__":
import os
os.environ["system_account_id"] = "j8tiooj"
os.environ["MARQO_API_KEY"] = "appkey"
os.environ["DATADOG_API_KEY"] = "DD key"
os.environ["DATADOG_APP_KEY"] = "DD APP key"
# Load 'test_addition' from 'MyTests' class
suite = unittest.TestLoader().loadTestsFromName('test_datadog_integration', IntegrationTest)
# Run the test
unittest.TextTestRunner().run(suite)