From 2bac213734ae320a3f402c21f90410b24c7fd873 Mon Sep 17 00:00:00 2001 From: Ignacio Palacios Date: Mon, 3 Oct 2022 12:49:22 +0200 Subject: [PATCH] Update integration tests (#1715) * update it * [ci] Apply cargo-fmt Co-authored-by: paritytech-ci --- .../src/validate_block/tests.rs | 3 +- .../integration-tests/statemine/config.toml | 5 ++ .../statemine/xcm/0_init.yml | 48 +++++------ .../integration-tests/statemine/xcm/1_dmp.yml | 50 +++++------ .../integration-tests/statemine/xcm/2_ump.yml | 50 +++++------ .../statemine/xcm/3_hrmp-open-channels.yml | 84 +++++++++---------- .../statemine/xcm/4_hrmp.yml | 84 +++++++++---------- .../integration-tests/statemint/config.toml | 11 ++- .../statemint/xcm/0_init.yml | 48 +++++------ .../integration-tests/statemint/xcm/1_dmp.yml | 48 +++++------ .../integration-tests/statemint/xcm/2_ump.yml | 48 +++++------ .../statemint/xcm/3_hrmp-open-channels.yml | 76 ++++++++--------- .../statemint/xcm/4_hrmp.yml | 54 ++++++------ 13 files changed, 310 insertions(+), 299 deletions(-) diff --git a/pallets/parachain-system/src/validate_block/tests.rs b/pallets/parachain-system/src/validate_block/tests.rs index e06c2cafdc..6087e6a29a 100644 --- a/pallets/parachain-system/src/validate_block/tests.rs +++ b/pallets/parachain-system/src/validate_block/tests.rs @@ -284,7 +284,8 @@ fn check_inherents_are_unsigned_and_before_all_other_extrinsics() { .expect("Runs the test"); assert!(output.status.success()); - assert!(String::from_utf8(output.stderr).unwrap() + assert!(String::from_utf8(output.stderr) + .unwrap() .contains("Could not find `set_validation_data` inherent")); } } diff --git a/parachains/integration-tests/statemine/config.toml b/parachains/integration-tests/statemine/config.toml index 510f3cd3b0..eae55f733a 100644 --- a/parachains/integration-tests/statemine/config.toml +++ b/parachains/integration-tests/statemine/config.toml @@ -10,14 +10,17 @@ chain = "kusama-local" [[relaychain.nodes]] name = "bob" + ws_port = 9901 validator = true [[relaychain.nodes]] name = "charlie" + ws_port = 9902 validator = true [[relaychain.nodes]] name = "dave" + ws_port = 9903 validator = true [[parachains]] @@ -32,6 +35,7 @@ cumulus_based = true [[parachains.collators]] name = "collator2" + ws_port = 9911 command = "./bin/polkadot-parachain" [[parachains]] @@ -46,4 +50,5 @@ cumulus_based = true [[parachains.collators]] name = "collator4" + ws_port = 9921 command = "./bin/polkadot-parachain" diff --git a/parachains/integration-tests/statemine/xcm/0_init.yml b/parachains/integration-tests/statemine/xcm/0_init.yml index b964051771..249af72d62 100644 --- a/parachains/integration-tests/statemine/xcm/0_init.yml +++ b/parachains/integration-tests/statemine/xcm/0_init.yml @@ -56,13 +56,13 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.SupportedVersionChanged - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version - extrinsics: # Relay Chain sets supported version for Penpal Parachain - chain: *relay_chain sudo: true @@ -82,13 +82,13 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.SupportedVersionChanged - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version - extrinsics: # Assset Parachain sets supported version for Relay Chain through it - chain: *relay_chain signer: *rc_signer @@ -111,15 +111,15 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.Sent - name: polkadotXcm.SupportedVersionChanged chain: *assets_parachain - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version - extrinsics: # Penpal Parachain sets supported version for Relay Chain - chain: *penpal_parachain signer: *pp_signer @@ -135,10 +135,10 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: polkadotXcm.SupportedVersionChanged - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version diff --git a/parachains/integration-tests/statemine/xcm/1_dmp.yml b/parachains/integration-tests/statemine/xcm/1_dmp.yml index 9b08555a25..44e5c65dff 100644 --- a/parachains/integration-tests/statemine/xcm/1_dmp.yml +++ b/parachains/integration-tests/statemine/xcm/1_dmp.yml @@ -69,16 +69,16 @@ tests: ] events: - name: xcmPallet.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,973,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,973,000 - queries: balance_rc_sender_after: chain: *relay_chain @@ -146,11 +146,11 @@ tests: - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,258,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,258,000 - queries: forced_created_asset: chain: *assets_parachain @@ -186,9 +186,9 @@ tests: ] events: - name: system.ExtrinsicFailed - attribute: - type: SpRuntimeDispatchError - value: BadOrigin + attributes: + - type: SpRuntimeDispatchError + value: BadOrigin - name: xcmPallet.limitedReserveTransferAssets before: *before_get_balances @@ -209,17 +209,17 @@ tests: ] events: - name: xcmPallet.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 750,645,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 750,645,000 - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isError: true - value: "WeightNotComputable" + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Error + value: "WeightNotComputable" - queries: balance_rc_sender_after: chain: *relay_chain diff --git a/parachains/integration-tests/statemine/xcm/2_ump.yml b/parachains/integration-tests/statemine/xcm/2_ump.yml index daddf92793..20fd16e436 100644 --- a/parachains/integration-tests/statemine/xcm/2_ump.yml +++ b/parachains/integration-tests/statemine/xcm/2_ump.yml @@ -54,16 +54,16 @@ tests: ] events: - name: xcmPallet.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,973,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,973,000 - name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver actions: @@ -95,18 +95,18 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 360,315,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 360,315,000 - name: ump.ExecutedUpward chain: *relay_chain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 297,578,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 297,578,000 - queries: balance_ap_sender_after: chain: *assets_parachain @@ -171,9 +171,9 @@ tests: ] events: - name: system.ExtrinsicFailed - attribute: - type: SpRuntimeDispatchError - value: BadOrigin + attributes: + - type: SpRuntimeDispatchError + value: BadOrigin - name: polkadotXcm.limitedReserveTransferAssets its: @@ -193,7 +193,7 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isError: true - value: Barrier + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Error + value: Barrier diff --git a/parachains/integration-tests/statemine/xcm/3_hrmp-open-channels.yml b/parachains/integration-tests/statemine/xcm/3_hrmp-open-channels.yml index 45bf89e2b0..4bdffcf85e 100644 --- a/parachains/integration-tests/statemine/xcm/3_hrmp-open-channels.yml +++ b/parachains/integration-tests/statemine/xcm/3_hrmp-open-channels.yml @@ -194,17 +194,17 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: polkadotXcm.Sent - name: ump.ExecutedUpward chain: *relay_chain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,160,892,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,160,892,000 - name: hrmp.OpenChannelRequested chain: *relay_chain - queries: @@ -251,26 +251,26 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,258,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,258,000 - name: polkadotXcm.Sent chain: *assets_parachain - name: ump.ExecutedUpward timeout: 40000 - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,160,892,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,160,892,000 - name: hrmp.OpenChannelAccepted timeout: 40000 - queries: @@ -318,26 +318,26 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,258,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,258,000 - name: polkadotXcm.Sent chain: *assets_parachain - name: ump.ExecutedUpward timeout: 40000 - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,160,892,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,160,892,000 - name: hrmp.OpenChannelRequested timeout: 40000 - queries: @@ -393,16 +393,16 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: polkadotXcm.Sent - name: ump.ExecutedUpward chain: *relay_chain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,160,892,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,160,892,000 - name: hrmp.OpenChannelAccepted chain: *relay_chain diff --git a/parachains/integration-tests/statemine/xcm/4_hrmp.yml b/parachains/integration-tests/statemine/xcm/4_hrmp.yml index 28ef7bc803..3707b73792 100644 --- a/parachains/integration-tests/statemine/xcm/4_hrmp.yml +++ b/parachains/integration-tests/statemine/xcm/4_hrmp.yml @@ -84,11 +84,11 @@ tests: - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,258,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,258,000 - queries: forced_created_asset: chain: *assets_parachain @@ -166,19 +166,19 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 654,608,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 654,608,000 - name: assets.Transferred - attribute: - type: AccountId32 - value: *pp_sovereign_sibl + attributes: + - type: AccountId32 + value: *pp_sovereign_sibl - name: assets.Transferred - attribute: - type: u128 - value: *amount_to_send + attributes: + - type: u128 + value: *amount_to_send - name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain its: @@ -214,19 +214,19 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 654,608,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 654,608,000 - name: balances.Endowed - attribute: - type: AccountId32 - value: *pp_sovereign_sibl + attributes: + - type: AccountId32 + value: *pp_sovereign_sibl - name: balances.Endowed - attribute: - type: u128 - value: *amount + attributes: + - type: u128 + value: *amount - name: polkadotXcm.send( system.remarkWithEvent() ) | Penpal Parachain -> Assets Parachain before: @@ -275,25 +275,25 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: polkadotXcm.Sent - name: assets.Burned chain: *assets_parachain - attribute: - type: AccountId32 - value: *pp_sovereign_sibl + attributes: + - type: AccountId32 + value: *pp_sovereign_sibl - name: assets.Issued chain: *assets_parachain - attribute: - type: u32 - value: *asset_id + attributes: + - type: u32 + value: *asset_id - name: system.Remarked chain: *assets_parachain - attribute: - type: AccountId32 - value: *pp_sovereign_sibl + attributes: + - type: AccountId32 + value: *pp_sovereign_sibl - queries: assets_balance_pp_sovereign_after: chain: *assets_parachain @@ -351,6 +351,6 @@ tests: events: - name: xcmpQueue.Fail chain: *assets_parachain - attribute: - type: XcmV2TraitsError - value: FailedToTransactAsset + attributes: + - type: XcmV2TraitsError + value: FailedToTransactAsset diff --git a/parachains/integration-tests/statemint/config.toml b/parachains/integration-tests/statemint/config.toml index f989d366ef..d362c44571 100644 --- a/parachains/integration-tests/statemint/config.toml +++ b/parachains/integration-tests/statemint/config.toml @@ -5,19 +5,22 @@ chain = "polkadot-local" [[relaychain.nodes]] name = "alice" - ws_port = 9900 + ws_port = 9800 validator = true [[relaychain.nodes]] name = "bob" + ws_port = 9801 validator = true [[relaychain.nodes]] name = "charlie" + ws_port = 9802 validator = true [[relaychain.nodes]] name = "dave" + ws_port = 9803 validator = true [[parachains]] @@ -27,11 +30,12 @@ cumulus_based = true [[parachains.collators]] name = "collator1" - ws_port = 9910 + ws_port = 9810 command = "./bin/polkadot-parachain" [[parachains.collators]] name = "collator2" + ws_port = 9811 command = "./bin/polkadot-parachain" [[parachains]] @@ -41,9 +45,10 @@ cumulus_based = true [[parachains.collators]] name = "collator3" - ws_port = 9920 + ws_port = 9820 command = "./bin/polkadot-parachain" [[parachains.collators]] name = "collator4" + ws_port = 9821 command = "./bin/polkadot-parachain" diff --git a/parachains/integration-tests/statemint/xcm/0_init.yml b/parachains/integration-tests/statemint/xcm/0_init.yml index b964051771..249af72d62 100644 --- a/parachains/integration-tests/statemint/xcm/0_init.yml +++ b/parachains/integration-tests/statemint/xcm/0_init.yml @@ -56,13 +56,13 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.SupportedVersionChanged - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version - extrinsics: # Relay Chain sets supported version for Penpal Parachain - chain: *relay_chain sudo: true @@ -82,13 +82,13 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.SupportedVersionChanged - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version - extrinsics: # Assset Parachain sets supported version for Relay Chain through it - chain: *relay_chain signer: *rc_signer @@ -111,15 +111,15 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.Sent - name: polkadotXcm.SupportedVersionChanged chain: *assets_parachain - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version - extrinsics: # Penpal Parachain sets supported version for Relay Chain - chain: *penpal_parachain signer: *pp_signer @@ -135,10 +135,10 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: polkadotXcm.SupportedVersionChanged - attribute: - type: u32 - value: *xcm_version + attributes: + - type: u32 + value: *xcm_version diff --git a/parachains/integration-tests/statemint/xcm/1_dmp.yml b/parachains/integration-tests/statemint/xcm/1_dmp.yml index 5f0fa34907..a940b67e58 100644 --- a/parachains/integration-tests/statemint/xcm/1_dmp.yml +++ b/parachains/integration-tests/statemint/xcm/1_dmp.yml @@ -69,16 +69,16 @@ tests: ] events: - name: xcmPallet.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,635,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,635,000 - queries: balance_rc_sender_after: chain: *relay_chain @@ -146,11 +146,11 @@ tests: - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,020,807,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,020,807,000 - queries: forced_created_asset: chain: *assets_parachain @@ -186,9 +186,9 @@ tests: ] events: - name: system.ExtrinsicFailed - attribute: - type: SpRuntimeDispatchError - value: BadOrigin + attributes: + - type: SpRuntimeDispatchError + value: BadOrigin - name: xcmPallet.limitedReserveTransferAssets before: *before_get_balances @@ -209,16 +209,16 @@ tests: ] events: - name: xcmPallet.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - value: 1,000,000,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + value: 1,000,000,000 - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isError: true - value: "WeightNotComputable" + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Error + value: "WeightNotComputable" - queries: balance_rc_sender_after: chain: *relay_chain diff --git a/parachains/integration-tests/statemint/xcm/2_ump.yml b/parachains/integration-tests/statemint/xcm/2_ump.yml index f51823eb3e..aec9099df3 100644 --- a/parachains/integration-tests/statemint/xcm/2_ump.yml +++ b/parachains/integration-tests/statemint/xcm/2_ump.yml @@ -54,16 +54,16 @@ tests: ] events: - name: xcmPallet.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,021,635,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,021,635,000 - name: Get the balances of the Assets Parachain's sender & Relay Chain's receiver actions: @@ -96,17 +96,17 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 358,878,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 358,878,000 - name: ump.ExecutedUpward chain: *relay_chain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - value: 4,000,000,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + value: 4,000,000,000 - queries: balance_ap_sender_after: chain: *assets_parachain @@ -171,9 +171,9 @@ tests: ] events: - name: system.ExtrinsicFailed - attribute: - type: SpRuntimeDispatchError - value: BadOrigin + attributes: + - type: SpRuntimeDispatchError + value: BadOrigin - name: polkadotXcm.limitedReserveTransferAssets its: @@ -193,7 +193,7 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isError: true - value: Barrier + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Error + value: Barrier diff --git a/parachains/integration-tests/statemint/xcm/3_hrmp-open-channels.yml b/parachains/integration-tests/statemint/xcm/3_hrmp-open-channels.yml index f83e778f1c..aebb7ffd08 100644 --- a/parachains/integration-tests/statemint/xcm/3_hrmp-open-channels.yml +++ b/parachains/integration-tests/statemint/xcm/3_hrmp-open-channels.yml @@ -192,16 +192,16 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: polkadotXcm.Sent - name: ump.ExecutedUpward chain: *relay_chain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - value: 4,000,000,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + value: 4,000,000,000 - name: hrmp.OpenChannelRequested chain: *relay_chain - queries: @@ -248,25 +248,25 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,020,807,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,020,807,000 - name: polkadotXcm.Sent chain: *assets_parachain - name: ump.ExecutedUpward timeout: 40000 - attribute: - type: XcmV2TraitsOutcome - isComplete: true - value: 4,000,000,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + value: 4,000,000,000 - name: hrmp.OpenChannelAccepted timeout: 40000 - queries: @@ -314,25 +314,25 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,020,807,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,020,807,000 - name: polkadotXcm.Sent chain: *assets_parachain - name: ump.ExecutedUpward timeout: 40000 - attribute: - type: XcmV2TraitsOutcome - isComplete: true - value: 4,000,000,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + value: 4,000,000,000 - name: hrmp.OpenChannelRequested timeout: 40000 - queries: @@ -388,15 +388,15 @@ tests: ] events: - name: sudo.Sudid - attribute: - type: Result - value: Ok + attributes: + - type: Result + value: Ok - name: polkadotXcm.Sent - name: ump.ExecutedUpward chain: *relay_chain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - value: 4,000,000,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + value: 4,000,000,000 - name: hrmp.OpenChannelAccepted chain: *relay_chain diff --git a/parachains/integration-tests/statemint/xcm/4_hrmp.yml b/parachains/integration-tests/statemint/xcm/4_hrmp.yml index 5de5e19082..c1118820db 100644 --- a/parachains/integration-tests/statemint/xcm/4_hrmp.yml +++ b/parachains/integration-tests/statemint/xcm/4_hrmp.yml @@ -84,11 +84,11 @@ tests: - name: xcmPallet.Sent - name: dmpQueue.ExecutedDownward chain: *assets_parachain - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 1,020,807,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 1,020,807,000 - queries: forced_created_asset: chain: *assets_parachain @@ -165,19 +165,19 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 654,404,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 654,404,000 - name: assets.Transferred - attribute: - type: AccountId32 - value: *pp_sovereign_sibl + attributes: + - type: AccountId32 + value: *pp_sovereign_sibl - name: assets.Transferred - attribute: - type: u128 - value: *amount_to_send + attributes: + - type: u128 + value: *amount_to_send - name: polkadotXcm.limitedReserveTransferAssets (KSM) | Assets Parachain -> Penpal Parachain its: @@ -213,16 +213,16 @@ tests: ] events: - name: polkadotXcm.Attempted - attribute: - type: XcmV2TraitsOutcome - isComplete: true - threshold: [10, 10] - value: 654,404,000 + attributes: + - type: XcmV2TraitsOutcome + xcmOutcome: Complete + threshold: [10, 10] + value: 654,404,000 - name: balances.Endowed - attribute: - type: AccountId32 - value: *pp_sovereign_sibl + attributes: + - type: AccountId32 + value: *pp_sovereign_sibl - name: balances.Endowed - attribute: - type: u128 - value: *amount + attributes: + - type: u128 + value: *amount