Make it easier to run multiple independent integration tests

Provide higher level run-test command in integration-tests.
This runs a number of pytest files in the same container
with the same installation.
This commit is contained in:
yuvipanda
2018-08-11 09:52:34 -07:00
parent a98a5c322b
commit 8d582dcba8
3 changed files with 80 additions and 48 deletions

View File

@@ -68,38 +68,11 @@ jobs:
python3 .circleci/integration-test.py build-image
- run:
name: start systemd image
name: Run hub tests
command: |
python3 .circleci/integration-test.py start-container
- run:
name: run tljh installer
command: |
python3 .circleci/integration-test.py copy . /srv/src
python3 .circleci/integration-test.py run 'python3 /srv/src/bootstrap/bootstrap.py'
python3 .circleci/integration-test.py run-test test_hub.py
- run:
name: switch to dummyauthenticator
command: |
python3 .circleci/integration-test.py run '/opt/tljh/hub/bin/tljh-config set auth.type dummyauthenticator.DummyAuthenticator'
python3 .circleci/integration-test.py run '/opt/tljh/hub/bin/tljh-config reload'
- run:
name: print systemd status + logs
command: |
python3 .circleci/integration-test.py run 'journalctl --no-pager'
python3 .circleci/integration-test.py run 'systemctl --no-pager status jupyterhub configurable-http-proxy'
- run:
name: install integration test requirements
command: |
python3 .circleci/integration-test.py run 'python3 -m pip install -r /srv/src/integration-tests/requirements.txt'
- run:
name: run integration tests
command: |
python3 .circleci/integration-test.py run 'python3 -m pytest -v /srv/src/integration-tests'
workflows:
version: 2