Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted e2e test updates #453

Merged
merged 3 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions run_e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
# Script for running API end-to-end tests

docker-compose -f test-docker-compose.yaml build
docker-compose -f test-docker-compose.yaml up -d api db redis storage ssh
docker-compose -f test-docker-compose.yaml up test
docker-compose -f test-docker-compose.yaml up -d api db redis storage ssh test
docker-compose -f test-docker-compose.yaml exec test pytest -v e2e_tests
docker-compose -f test-docker-compose.yaml down
1 change: 1 addition & 0 deletions test-docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ services:
volumes:
- './api:/home/kernelci/api'
- './tests:/home/kernelci/tests'
- './tests/e2e_tests:/home/kernelci/e2e_tests'
depends_on:
- api
env_file:
Expand Down
16 changes: 9 additions & 7 deletions tests/e2e_tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,21 @@

# Create Task to listen pubsub event on 'node' channel
task_listen = create_listen_task(test_async_client,
pytest.node_channel_subscription_id) # pylint: disable=no-member

Check warning on line 41 in tests/e2e_tests/test_pipeline.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (102 > 79 characters)

# Create a node
node = {
"name": "checkout",
"path": ["checkout"],
"revision": {
"tree": "mainline",
"url": "https://git.kernel.org/pub/scm/linux/kernel/git/"
"torvalds/linux.git",
"branch": "master",
"commit": "2a987e65025e2b79c6d453b78cb5985ac6e5eb28",
"describe": "v5.16-rc4-31-g2a987e65025e"
"data": {
"kernel_revision": {
"tree": "mainline",
"url": ("https://git.kernel.org/pub/scm/linux/kernel/git/"
"torvalds/linux.git"),

Check warning on line 51 in tests/e2e_tests/test_pipeline.py

View workflow job for this annotation

GitHub Actions / Lint

continuation line under-indented for visual indent
"branch": "master",
"commit": "2a987e65025e2b79c6d453b78cb5985ac6e5eb28",
"describe": "v5.16-rc4-31-g2a987e65025e"
}
}
}
response = await create_node(test_async_client, node)
Expand All @@ -71,7 +73,7 @@

# Create Task to listen 'updated' event on 'node' channel
task_listen = create_listen_task(test_async_client,
pytest.node_channel_subscription_id) # pylint: disable=no-member

Check warning on line 76 in tests/e2e_tests/test_pipeline.py

View workflow job for this annotation

GitHub Actions / Lint

line too long (102 > 79 characters)

# Update node.state
node.update({"state": "done"})
Expand Down
Loading