Add more integrations tests to People chains#499
Conversation
There was a problem hiding this comment.
Tests look good! 👍
Please add the same to https://github.com/paritytech/polkadot-sdk/tree/master/cumulus/parachains/integration-tests/emulated/tests/people to keep the covered functionality in sync.
|
@acatangiu certainly. Thanks for the review! |
Why? |
fec09e0 to
a780f51
Compare
|
Review required! Latest push from author must always be reviewed |
1 similar comment
|
Review required! Latest push from author must always be reviewed |
To test the following example, you'll need to:
Consider the following encoded call:
Now either
In either instance, you will find, in the people chain's "recent events" list, @bkchr in conclusion, and to answer your question: I don't know why this happens, but I suspect it shouldn't. I've been working to understand why, and this PR, as well as paritytech/polkadot-sdk#6377 (comment) are how. |
|
@seadanda also, apologies for the delay: the above comment contains the snippet I mentioned in DMs. My identity should exist when you fork the chain. |
# Description Made as a follow-up of polkadot-fellows/runtimes#499 ## Integration N/A ## Review Notes N/A --------- Co-authored-by: Dónal Murray <donal.murray@parity.io>
|
Like I said in paritytech/polkadot-sdk#6377 (comment), knowing the reason for the differential failures in the wrong origin tests does not impact their immediate usefulness, so this can be merged, and that matter considered in another issue/PR. |
# Description Made as a follow-up of polkadot-fellows/runtimes#499 ## Integration N/A ## Review Notes N/A --------- Co-authored-by: Dónal Murray <donal.murray@parity.io>
There was a problem running the action.❌😵❌ Please find more information in the logs. |
# Description Made as a follow-up of polkadot-fellows/runtimes#499 ## Integration N/A ## Review Notes N/A --------- Co-authored-by: Dónal Murray <donal.murray@parity.io>
| // I mistakenly assumed that to test the removal of an authority would need one to exist. | ||
| // However, since the origin check is the very first extrinsic in `remove_username_authority`, | ||
| // an authority need not exist to test the safety of the origin check. |
There was a problem hiding this comment.
| // I mistakenly assumed that to test the removal of an authority would need one to exist. | |
| // However, since the origin check is the very first extrinsic in `remove_username_authority`, | |
| // an authority need not exist to test the safety of the origin check. | |
| // Since the origin check is the very first extrinsic in `remove_username_authority`, an | |
| // authority need not exist to test the safety of the origin check. |
There was a problem hiding this comment.
The dreaded first-person slip. Thanks for noticing.
| UnpaidExecution { weight_limit: Unlimited, check_origin: None }, | ||
| Transact { | ||
| origin_kind, | ||
| // Making the weight's ref time any lower will prevent the XCM from triggering |
There was a problem hiding this comment.
Can be removed when we update to XCM v5 in this repo
| ); | ||
| }); | ||
|
|
||
| // Now, remove the username authority with another priviledged XCM call. |
There was a problem hiding this comment.
| // Now, remove the username authority with another priviledged XCM call. | |
| // Now, remove the username authority with another privileged XCM call. |
| ); | ||
| }); | ||
|
|
||
| // Now, remove the username authority with another priviledged XCM call. |
There was a problem hiding this comment.
| // Now, remove the username authority with another priviledged XCM call. | |
| // Now, remove the username authority with another privileged XCM call. |
|
/merge |
|
Enabled Available commands
For more information see the documentation |
# Description Made as a follow-up of polkadot-fellows/runtimes#499 ## Integration N/A ## Review Notes N/A --------- Co-authored-by: Dónal Murray <donal.murray@parity.io>
# Description Made as a follow-up of polkadot-fellows/runtimes#499 ## Integration N/A ## Review Notes N/A --------- Co-authored-by: Dónal Murray <donal.murray@parity.io>
Polkadot Ecosystem Tests relies on chopsticks to create E2E tests using periodically (roughly daily) obtained runtimes from production relay chains/system parachains.
In particular, open-web3-stack/polkadot-ecosystem-tests#63 does this for the People chains.
In writing those tests, I was unable to use XCM to test
pallet_identity::{kill_identity/add_username_authority/remove_username_authority}.I wrote this PR to replicate those tests at this layer, whose passing status falsify the hypothesis that there may have been an issue with the runtimes, and confirm that it was a problem with the way I wrote those tests.