-
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 all 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,20 @@ | ||
| import { assetHubKusama } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsForParaWithScheduler } from '@e2e-test/shared' | ||
|
|
||
| // TODO: Uncomment after Kusama 2.0+ release due to polkadot-fellows/runtimes#957 | ||
| // const testConfig: ParaTestConfig = { | ||
| // testSuiteName: 'Kusama AssetHub System', | ||
| // addressEncoding: 2, | ||
| // blockProvider: 'Local', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(kusama, assetHubKusama, testConfig)) | ||
|
|
||
| const testConfigForLocalScheduler: ParaTestConfig = { | ||
| testSuiteName: 'Kusama AssetHub System', | ||
| addressEncoding: 2, | ||
| blockProvider: 'NonLocal', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsForParaWithScheduler(assetHubKusama, testConfigForLocalScheduler)) |
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,21 @@ | ||
| import { assetHubKusama, bridgeHubKusama } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| // TODO: Uncomment after Kusama 2.0+ release due to polkadot-fellows/runtimes#957 | ||
| // const testConfig: ParaTestConfig = { | ||
| // testSuiteName: 'Kusama BridgeHub System', | ||
| // addressEncoding: 2, | ||
| // blockProvider: 'Local', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(kusama, bridgeHubKusama, testConfig)) | ||
|
|
||
| const testConfigForAssetHub: ParaTestConfig = { | ||
| testSuiteName: 'Kusama BridgeHub System', | ||
| addressEncoding: 2, | ||
| blockProvider: 'NonLocal', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubKusama, bridgeHubKusama, testConfigForAssetHub)) |
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,21 @@ | ||
| import { assetHubKusama, coretimeKusama } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| // TODO: Uncomment after Kusama 2.0+ release due to polkadot-fellows/runtimes#957 | ||
| // const testConfig: ParaTestConfig = { | ||
| // testSuiteName: 'Kusama Coretime System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'Local', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(kusama, coretimeKusama, testConfig)) | ||
|
|
||
| const testConfigForAssetHub: ParaTestConfig = { | ||
| testSuiteName: 'Kusama Coretime System', | ||
| addressEncoding: 2, | ||
| blockProvider: 'NonLocal', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubKusama, coretimeKusama, testConfigForAssetHub)) |
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,21 @@ | ||
| import { assetHubKusama, encointerKusama } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| // TODO: Uncomment after Kusama 2.0+ release due to polkadot-fellows/runtimes#957 | ||
| // const testConfig: ParaTestConfig = { | ||
| // testSuiteName: 'Kusama Encointer System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'Local', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(kusama, encointerKusama, testConfig)) | ||
|
|
||
| const testConfigForAssetHub: ParaTestConfig = { | ||
| testSuiteName: 'Kusama Encointer System', | ||
| addressEncoding: 2, | ||
| blockProvider: 'NonLocal', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubKusama, encointerKusama, testConfigForAssetHub)) |
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,20 @@ | ||
| import { assetHubKusama, kusama } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| // TODO: Uncomment after Kusama 2.0+ release due to polkadot-fellows/runtimes#957 | ||
| // const testConfig: RelayTestConfig = { | ||
| // testSuiteName: 'Kusama System', | ||
| // addressEncoding: 2, | ||
| // blockProvider: 'Local', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETests(kusama, testConfig)) | ||
|
|
||
| const testConfigForAssetHub: ParaTestConfig = { | ||
| testSuiteName: 'Kusama System', | ||
| addressEncoding: 2, | ||
| blockProvider: 'NonLocal', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubKusama, kusama, testConfigForAssetHub)) | ||
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,21 @@ | ||
| import { assetHubKusama, peopleKusama } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| // TODO: Uncomment after Kusama 2.0+ release due to polkadot-fellows/runtimes#957 | ||
| // const testConfig: ParaTestConfig = { | ||
| // testSuiteName: 'Kusama People System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'Local', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(kusama, peopleKusama, testConfig)) | ||
|
|
||
| const testConfigForAssetHub: ParaTestConfig = { | ||
| testSuiteName: 'Kusama People System', | ||
| addressEncoding: 2, | ||
| blockProvider: 'NonLocal', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubKusama, peopleKusama, testConfigForAssetHub)) |
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,22 @@ | ||
| import { assetHubPolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: ParaTestConfig = { | ||
| testSuiteName: 'Polkadot AssetHub System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(polkadot, assetHubPolkadot, testConfig)) | ||
|
|
||
| // TODO: Uncomment Post-AHM on Polkadot | ||
|
|
||
| // const testConfigForLocalScheduler: ParaTestConfig = { | ||
| // testSuiteName: 'Polkadot AssetHub System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'NonLocal', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsForParaWithScheduler(assetHubPolkadot, testConfigForLocalScheduler)) |
22 changes: 22 additions & 0 deletions
22
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,22 @@ | ||
| import { bridgeHubPolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: ParaTestConfig = { | ||
| testSuiteName: 'Polkadot BridgeHub System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(polkadot, bridgeHubPolkadot, testConfig)) | ||
|
|
||
| // TODO: Uncomment Post-AHM on Polkadot | ||
|
|
||
| // const testConfigForAssetHub: ParaTestConfig = { | ||
| // testSuiteName: 'Polkadot BridgeHub System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'NonLocal', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubPolkadot, bridgeHubPolkadot, testConfigForAssetHub)) |
28 changes: 28 additions & 0 deletions
28
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,28 @@ | ||
| import { collectivesPolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { | ||
| type ParaTestConfig, | ||
| registerTestTree, | ||
| systemE2ETestsForParaWithScheduler, | ||
| systemE2ETestsViaRemoteScheduler, | ||
| } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: ParaTestConfig = { | ||
| testSuiteName: 'Polkadot Collectives System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(polkadot, collectivesPolkadot, testConfig)) | ||
| registerTestTree(systemE2ETestsForParaWithScheduler(collectivesPolkadot, testConfig)) | ||
|
|
||
| // TODO: Uncomment Post-AHM on Polkadot | ||
|
|
||
| // const testConfigForAssetHub: ParaTestConfig = { | ||
| // testSuiteName: 'Polkadot Collectives System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'NonLocal', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubPolkadot, collectivesPolkadot, testConfigForAssetHub)) |
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,22 @@ | ||
| import { coretimePolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: ParaTestConfig = { | ||
| testSuiteName: 'Polkadot Coretime System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(polkadot, coretimePolkadot, testConfig)) | ||
|
|
||
| // TODO: Uncomment Post-AHM on Polkadot | ||
|
|
||
| // const testConfigForAssetHub: ParaTestConfig = { | ||
| // testSuiteName: 'Polkadot Coretime System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'NonLocal', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubPolkadot, coretimePolkadot, testConfigForAssetHub)) |
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,22 @@ | ||
| import { peoplePolkadot, polkadot } from '@e2e-test/networks/chains' | ||
| import { type ParaTestConfig, registerTestTree, systemE2ETestsViaRemoteScheduler } from '@e2e-test/shared' | ||
|
|
||
| const testConfig: ParaTestConfig = { | ||
| testSuiteName: 'Polkadot People System', | ||
| addressEncoding: 0, | ||
| blockProvider: 'Local', | ||
| asyncBacking: 'Enabled', | ||
| } | ||
|
|
||
| registerTestTree(systemE2ETestsViaRemoteScheduler(polkadot, peoplePolkadot, testConfig)) | ||
|
|
||
| // TODO: Uncomment Post-AHM on Polkadot | ||
|
|
||
| // const testConfigForAssetHub: ParaTestConfig = { | ||
| // testSuiteName: 'Polkadot People System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'NonLocal', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubPolkadot, peoplePolkadot, testConfigForAssetHub)) |
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,21 @@ | ||
| 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)) | ||
|
|
||
| // TODO: Uncomment Post-AHM on Polkadot | ||
|
|
||
| // const testConfigForAssetHub: ParaTestConfig = { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also needs to changed: I know it's commented out, but still. |
||
| // testSuiteName: 'Polkadot System', | ||
| // addressEncoding: 0, | ||
| // blockProvider: 'NonLocal', | ||
| // asyncBacking: 'Enabled', | ||
| // } | ||
|
|
||
| // registerTestTree(systemE2ETestsViaRemoteScheduler(assetHubPolkadot, polkadot, testConfigForAssetHub)) | ||
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 was fine as it was,
RelayTestConfig