Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Support westend integration tests #2649

Merged
merged 9 commits into from
Jun 2, 2023

Conversation

gilescope
Copy link
Contributor

Things appear in westend before kusama, (example asset-conversion pallet) so it's helpful if we can write integration tests targeting westend.

Also updates emulator to handle host version changes (westend is on v5 of the host interface)

@gilescope gilescope added B0-silent Changes should not be mentioned in any release notes A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 28, 2023
@gilescope
Copy link
Contributor Author

@NachoPal any problems with this?

@NachoPal
Copy link
Contributor

NachoPal commented Jun 2, 2023

@NachoPal any problems with this?

All good

Westend::child_location_of(AssetHubWestend::para_id()).into();

let weight_limit = WeightLimit::Unlimited;
let require_weight_at_most = Weight::from_parts(1000000000, 200000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be a follow up project (maybe good for someone new), but we should have some core set of "user stories" that other chains would use transact for, and then set the weight values in these tests as actual * some_factor_of_safety, and if the tests fail in a new release because of weight, then we need to mark it as a breaking change. That way people can rely on these weights in tests to have some future proof-ness in their runtimes.

#[test]
fn reserve_transfer_native_asset_from_relay_to_assets() {
// Init tests variables
let amount = POLKADOT_ED * 1000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let amount = POLKADOT_ED * 1000;
let amount = WESTEND_ED * 1000;

#[test]
fn teleport_native_assets_from_relay_to_assets_para() {
// Init tests variables
let amount = POLKADOT_ED * 1000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let amount = POLKADOT_ED * 1000;
let amount = WESTEND_ED * 1000;

@paritytech-processbot paritytech-processbot bot merged commit 93b7fe3 into master Jun 2, 2023
@paritytech-processbot paritytech-processbot bot deleted the giles-westend-integration-tests branch June 2, 2023 12:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants