mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user