This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fellowship e2e tests * fixes * fixe wrong result * Update parachains/integration-tests/e2e/collectives/README.md * Apply suggestions from code review Co-authored-by: Squirrel <[email protected]> * fixes --------- Co-authored-by: joe petrowski <[email protected]> Co-authored-by: Squirrel <[email protected]>
- Loading branch information
1 parent
b6ff026
commit a74ffe6
Showing
10 changed files
with
798 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
E2E tests concerning Polkadot Governance and the Collectives Parachain. The tests run by the Parachain Integration Tests [tool](https://github.com/paritytech/parachains-integration-tests/). | ||
|
||
## Requirements | ||
The tests require some changes to the regular production runtime builds: | ||
|
||
RelayChain runtime: | ||
1. Alice has SUDO | ||
2. Public Referenda `StakingAdmin`, `FellowshipAdmin` tracks settings (see the corresponding keys of the `TRACKS_DATA` constant in the `governance::tracks` module of the Relay Chain runtime crate): | ||
``` yaml | ||
prepare_period: 5 Block, | ||
decision_period: 1 Block, | ||
confirm_period: 1 Block, | ||
min_enactment_period: 1 Block, | ||
``` | ||
Collectives runtime: | ||
1. Fellowship Referenda `Fellows` track settings (see the corresponding key of the `TRACKS_DATA` constant in the `fellowship::tracks` module of the Collectives runtime crate): | ||
``` yaml | ||
prepare_period: 5 Block, | ||
decision_period: 1 Block, | ||
confirm_period: 1 Block, | ||
min_enactment_period: 1 Block, | ||
``` |
This file contains 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 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
59 changes: 59 additions & 0 deletions
59
...ins/integration-tests/e2e/collectives/collectives-polkadot/0_xcm/3_hrmp-open-channels.yml
This file contains 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,59 @@ | ||
--- | ||
settings: | ||
chains: | ||
relay_chain: &relay_chain | ||
wsPort: 9700 | ||
collectives_parachain: &collectives_parachain | ||
wsPort: 9710 | ||
paraId: &cp_id 1001 | ||
assethub_parachain: &assethub_parachain | ||
wsPort: 9810 | ||
paraId: &sp_id 1000 | ||
variables: | ||
chains: | ||
accounts: | ||
alice_signer: &alice_signer //Alice | ||
hrmp: | ||
proposed_max_capacity: &hrmp_proposed_max_capacity 8 | ||
proposed_max_message_size: &hrmp_proposed_max_message_size 8192 | ||
tests: | ||
- name: HRMP | ||
describes: | ||
- name: Force Open HRMP Channel From Collectives Parachain → AssetHub Parachain | ||
its: | ||
- name: Alice calls hrmp.forceOpenHrmpChannel | ||
actions: | ||
- extrinsics: | ||
- chain: *relay_chain | ||
signer: *alice_signer | ||
sudo: true | ||
pallet: hrmp | ||
call: forceOpenHrmpChannel | ||
args: [ | ||
*cp_id, # sender | ||
*sp_id, # recipient | ||
*hrmp_proposed_max_capacity, # proposedMaxCapacity | ||
*hrmp_proposed_max_message_size # proposedMaxMessageSize | ||
] | ||
events: | ||
- name: hrmp.HrmpChannelForceOpened | ||
result: [*cp_id, *sp_id, *hrmp_proposed_max_capacity, *hrmp_proposed_max_message_size] | ||
- name: Force Open HRMP Channel From AssetHub Parachain → Collectives Parachain | ||
its: | ||
- name: Alice calls hrmp.forceOpenHrmpChannel | ||
actions: | ||
- extrinsics: | ||
- chain: *relay_chain | ||
signer: *alice_signer | ||
sudo: true | ||
pallet: hrmp | ||
call: forceOpenHrmpChannel | ||
args: [ | ||
*sp_id, # sender | ||
*cp_id, # recipient | ||
*hrmp_proposed_max_capacity, # proposedMaxCapacity | ||
*hrmp_proposed_max_message_size # proposedMaxMessageSize | ||
] | ||
events: | ||
- name: hrmp.HrmpChannelForceOpened | ||
result: [*sp_id, *cp_id, *hrmp_proposed_max_capacity, *hrmp_proposed_max_message_size] |
This file contains 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 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.