-
Notifications
You must be signed in to change notification settings - Fork 7
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
Extend end-to-end tests in people chains #63
Conversation
This mistakenly caused identities to remain provisional even after judgement had been passed, due to using the wrong address as the registrar when setting up the chain - Bob instead of Alice.
1. Create an identity 2. Request a judgement on it 3. Have it provided by the test-only Alice registrar This basic test is already quite useful, and can now be extended into other more complex scenarios.
This is required to test pallet extrinsics that require certain origins to be executed e.g. the identity pallet's `addRegistrar` function. The original source for the idea can be found in https://hackmd.io/@xlc/H11BX5BLa#Dispatch-Call
989753a
to
374fd91
Compare
374fd91
to
52f6914
Compare
Also refactor tests, add some comments and documentation.
1034398
to
0b64c78
Compare
can you push the yarn.lock file change |
@xlc Hello! It's already in the tree, and mine hasn't changed compared to (As an experiment) can I ask that you
Subidentity extrinsics fail to be applied immediately after 1 block, but if you try the same thing in a local |
The CI is failing and you have modified package.json without modify yarn.lock. |
also I don't really want any code in the root package. please have the polkadot tests in the polkadot packages under this means you should add the deps to the shared package, not the root one |
Few more points:
|
@xlc thank you for the review! I will address your comments in coming commits. |
@xlc I've addressed your review - could you take another look? |
CI is still failing due to yarn.lock file, otherwise looks fine |
@xlc true (again) - apologies for the oversight. I'll push a fix. |
the lint error indicates multiple versions of chopsticks are included, which is not good. you can confirm it by looking the yarn.lock file |
In the end, I simply rebuilt |
I've found the issue with the latest CI failures. Pushing a fix. |
This is because people E2E tests require Bob's address to be loaded with funds, which interferes with the people chain XCM tests' snapshots.
# Description E2E tests to Polkadot/Kusama's people chains (in open-web3-stack/polkadot-ecosystem-tests#63) revealed that 2 of the identity pallet's extrinsics did not emit events in case of success: * `pallet_identity::rename_sub`, and * `pallet_identity::set_subs` This PR fixes that. ## Integration Other than 2 extrinsics emiting an event when previously they did not, no other behavior in pallets/extrinsics was modified, so no integration is needed. ## Review Notes N/A
No description provided.