-
Notifications
You must be signed in to change notification settings - Fork 15
Initial E2E system tests (set_code, authorize_upgrade)
#411
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 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
74caa30
Initial E2E system tests (set_code and set_code_without_checks)
karolk91 000cd7f
Add scenarios using authorize+apply
karolk91 df85f3d
Upgrade scenarios for Polkadot/Kusama system chains
karolk91 cfab73a
Code-review fixes
karolk91 4132c03
Merge branch 'open-web3-stack:master' into system-tests
karolk91 e15fbb6
Update packages/shared/src/system.ts
karolk91 950bc13
Code review improvements
karolk91 5dc94f5
Merge remote-tracking branch 'origin/master' into system-tests
karolk91 eee2357
Review fixes and improvements
karolk91 b05e42f
Merge remote-tracking branch 'upstream/master' into system-tests
karolk91 da4dd61
Add more post-AHM scenarios
karolk91 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,10 @@ | ||
| import { assetHubKusama, kusama } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Kusama AssetHub System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(kusama, assetHubKusama, testConfig)) | ||
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,10 @@ | ||
| import { bridgeHubKusama, kusama } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Kusama BridgeHub System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(kusama, bridgeHubKusama, testConfig)) |
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,10 @@ | ||
| import { coretimeKusama, kusama } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Kusama Coretime System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(kusama, coretimeKusama, testConfig)) |
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,10 @@ | ||
| import { encointerKusama, kusama } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Kusama Encointer System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(kusama, encointerKusama, testConfig)) |
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,10 @@ | ||
| import { kusama } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETests } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Kusama System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETests(kusama, testConfig)) |
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,10 @@ | ||
| import { kusama, peopleKusama } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Kusama People System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(kusama, peopleKusama, testConfig)) |
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,10 @@ | ||
| import { assetHubPolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
|
||
| testSuiteName: 'Polkadot AssetHub System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(polkadot, assetHubPolkadot, testConfig)) | ||
10 changes: 10 additions & 0 deletions
10
packages/polkadot/src/bridgeHubPolkadot.system.e2e.test.ts
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,10 @@ | ||
| import { bridgeHubPolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Polkadot Collectives System', | ||
karolk91 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
karolk91 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(polkadot, bridgeHubPolkadot, testConfig)) | ||
10 changes: 10 additions & 0 deletions
10
packages/polkadot/src/collectivesPolkadot.system.e2e.test.ts
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,10 @@ | ||
| import { collectivesPolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Polkadot Collectives System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(polkadot, collectivesPolkadot, testConfig)) |
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,10 @@ | ||
| import { coretimePolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Polkadot Coretime System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(polkadot, coretimePolkadot, testConfig)) |
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,10 @@ | ||
| import { peoplePolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETestsViaRelay } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Polkadot People System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRelay(polkadot, peoplePolkadot, testConfig)) |
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,10 @@ | ||
| import { polkadot } from '@e2e-test/networks/chains' | ||
| import { type RelayTestConfig, registerTestTree, systemE2ETests } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: RelayTestConfig = { | ||
| testSuiteName: 'Polkadot System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETests(polkadot, testConfig)) |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be
ParaTestConfig, and the block provider is non-local - asset hub scheduler agendas will use the relay chain's block number as their key.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added both scenarios: