-
Notifications
You must be signed in to change notification settings - Fork 68
A0-1503: Take e2e config from env #779
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
50fd5bb
Take e2e config from env
obrok 129187a
Merge branch 'main' into obrok/e2e-env
obrok 6968169
Merge branch 'main' into obrok/e2e-env
obrok 365b55e
Merge branch 'main' into obrok/e2e-env
obrok d94ea1e
Merge branch 'main' into obrok/e2e-env
obrok 256b3a2
Add README to e2e-tests
obrok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # e2e-tests | ||
|
|
||
| This crate contains e2e test scenarios for the aleph-node. | ||
|
|
||
| ## Running | ||
|
|
||
| The most basic way to run (assuming a local node is listening on 9944) is: | ||
|
|
||
| ```bash | ||
| $ NODE=ws://127.0.0.1:9944 cargo test name_of_one_test | ||
| ``` | ||
|
|
||
| Note that the particular test cases might require different numbers of launched nodes, validators, or a particular | ||
| configuration of the launched nodes, see the documentation for a particular test case for details. | ||
|
|
||
| Additional options are passed to the tests via env variables. See `src/config.rs` for docs on available options. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,6 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| ARGS=( | ||
| --node "${NODE_URL}" | ||
| ) | ||
|
|
||
| if [[ -n "${TEST_CASES:-}" ]]; then | ||
| ARGS+=(--test-cases "${TEST_CASES}") | ||
| fi | ||
|
|
||
| # If test case params are both not empty, run client with them. Otherwise, run without params. | ||
| if [[ -n "${RESERVED_SEATS:-}" && -n "${NON_RESERVED_SEATS:-}" ]]; then | ||
| ARGS+=( | ||
| --reserved-seats "${RESERVED_SEATS}" | ||
| --non-reserved-seats "${NON_RESERVED_SEATS}" | ||
| ) | ||
| fi | ||
|
|
||
| if [[ -n "${UPGRADE_VERSION:-}" && -n "${UPGRADE_SESSION:-}" && -n "${UPGRADE_FINALIZATION_WAIT_SESSIONS:-}" ]]; then | ||
| ARGS+=( | ||
| --upgrade-to-version "${UPGRADE_VERSION}" | ||
| --upgrade-session "${UPGRADE_SESSION}" | ||
| --upgrade-finalization-wait-sessions "${UPGRADE_FINALIZATION_WAIT_SESSIONS}" | ||
| ) | ||
| fi | ||
|
|
||
| E2E_CONFIG="${ARGS[*]}" aleph-e2e-client $TEST_CASES --nocapture | ||
| aleph-e2e-client $TEST_CASES --nocapture --test-threads 1 | ||
|
|
||
| echo "Done!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.