-
Notifications
You must be signed in to change notification settings - Fork 691
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
Backport claim assets tests from polkadot-fellows repo #4930
Backport claim assets tests from polkadot-fellows repo #4930
Conversation
User @programskillforverification, please sign the CLA here. |
cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/mod.rs
Show resolved
Hide resolved
bot fmt |
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.
We probably want the test for claiming assets on all runtimes, thinking people chain and coretime chain for sure
@franciscoaguirre Okay, claiming assets will be added to people chain. But there is no any tests about coretime chain in whole integration tests directory. Are you sure to import it? |
Yes. We should add emulated tests for coretime chain as well. |
8757c30
to
4c5633b
Compare
I just add tests in rococo. If everything is ok, especially config, I will add them in westend. |
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.
very nice, thanks @programskillforverification !
everything looks good, feel free to do the same for Westend.
Could you please also include the teleport tests for all chains that don't have it? (e.g. coretime emulated chains you just added)
What should the teleport tests include in coretime? Teleport tests looks different for different chains. |
Basic ROC (on Rococo) and WND (on Westend) teleport tests: between Coretime and Relay and between coretime and other system chains. (this ^ should be minimum for all system chains) |
Now, macro /// Limited Teleport of native asset from Relay Chain to the System Parachain should work
#[test]
fn limited_teleport_native_assets_from_relay_to_system_para_works() {
// Init values for Relay Chain
let amount_to_send: Balance = WESTEND_ED * 1000;
let dest = Westend::child_location_of(AssetHubWestend::para_id());
let beneficiary_id = AssetHubWestendReceiver::get();
let test_args = TestContext {
sender: WestendSender::get(),
receiver: AssetHubWestendReceiver::get(),
args: TestArgs::new_relay(dest, beneficiary_id, amount_to_send),
};
let mut test = RelayToSystemParaTest::new(test_args);
... Is this test function outdated? If so, I want to rewrite all teleport tests using macro. |
Yes, |
Thanks a lot. I already add my address in my bio and submit a fellowship application. |
I think we should also reflect here upcoming changes for dry-run api from this PR: https://github.com/polkadot-fellows/runtimes/pull/380/files#diff-7346706278168c97dfec9e73bec1a115274a2be89a3147b914dd2eedec9f6269R57 |
I am refactoring teleport in a new PR, which covers some part of this PR. For XcmPaymentApi and DryRunApi, maybe are in separate PR. |
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.
Changes are good, you just have to make the CI happy - you can check the failed checks on their details
button to find out what/why's failing
I fixed most except |
@bkontur @franciscoaguirre please review |
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.
Thank you for this effort!
...achains/integration-tests/emulated/chains/parachains/coretime/coretime-rococo/src/genesis.rs
Show resolved
Hide resolved
Co-authored-by: Francisco Aguirre <[email protected]>
d16af0b
# Issue [Backport integration tests for claim assets to the polkadot-sdk from polkadot-fellows repo paritytech#4892](paritytech#4892) # Description For the first time to contribute this project, I just finished part and make sure everything is ok. - [x] backport [claim_assets test case](https://github.com/polkadot-fellows/runtimes/blob/main/integration-tests/emulated/tests/assets/asset-hub-kusama/src/tests/claim_assets.rs) to the polkadot-sdk testnet integration tests - [x] backport macro [test_chain_can_claim_assets](https://github.com/polkadot-fellows/runtimes/blob/main/integration-tests/emulated/helpers/src/lib.rs#L218) from fellows repo - [ ] when merged to polkadot-sdk and released, make sure that it is propagated to the fellows repo: polkadot-fellows/runtimes#363 - [x] backport and align other macros/test-cases from https://github.com/polkadot-fellows/runtimes/blob/8ec28f96eeb30fbba30d29006d75e1a3fa1cea1c/integration-tests/emulated/helpers/src/lib.rs#L31-L33 --------- Co-authored-by: Zihan Zhao <[email protected]> Co-authored-by: command-bot <> Co-authored-by: Adrian Catangiu <[email protected]> Co-authored-by: Francisco Aguirre <[email protected]>
…5100) # Description This is continue of the work to backport `emulated-integration-tests-common`, if you want to understand the full context start with reading [paritytech#4930](paritytech#4930)
Issue
Backport integration tests for claim assets to the polkadot-sdk from polkadot-fellows repo #4892
Description
For the first time to contribute this project, I just finished part and make sure everything is ok.