-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bridge zombienet tests - move all test scripts to the same folder (#3…
…333) Related to paritytech/polkadot-sdk#3242
- Loading branch information
Showing
58 changed files
with
97 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
cumulus/scripts/bridges_rococo_westend.sh → .../rococo-westend/bridges_rococo_westend.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
$POLKADOT_SDK_PATH/bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh "$@" |
8 changes: 8 additions & 0 deletions
8
bridges/testing/environments/rococo-westend/rococo-init.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back | ||
Network: ./bridge_hub_rococo_local_network.toml | ||
Creds: config | ||
|
||
# ensure that initialization has completed | ||
asset-hub-rococo-collator1: js-script ../../js-helpers/wait-hrmp-channel-opened.js with "1013" within 300 seconds | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back | ||
Network: ./bridge_hub_rococo_local_network.toml | ||
Creds: config | ||
|
||
# relay is already started - let's wait until with-Westend GRANPDA pallet is initialized at Rococo | ||
bridge-hub-rococo-collator1: js-script ../../js-helpers/best-finalized-header-at-bridged-chain.js with "Westend,0" within 400 seconds | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
bridges/testing/environments/rococo-westend/westend-init.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back | ||
Network: ./bridge_hub_westend_local_network.toml | ||
Creds: config | ||
|
||
# ensure that initialization has completed | ||
asset-hub-westend-collator1: js-script ../../js-helpers/wait-hrmp-channel-opened.js with "1002" within 600 seconds | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back | ||
Network: ./bridge_hub_westend_local_network.toml | ||
Creds: config | ||
|
||
# relay is already started - let's wait until with-Rococo GRANPDA pallet is initialized at Westend | ||
bridge-hub-westend-collator1: js-script ../../js-helpers/best-finalized-header-at-bridged-chain.js with "Rococo,0" within 400 seconds |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
bridges/testing/tests/0001-asset-transfer/roc-reaches-westend.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back | ||
Network: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml | ||
Creds: config | ||
|
||
# send ROC to //Alice from Rococo AH to Westend AH | ||
asset-hub-westend-collator1: run ../../environments/rococo-westend/helper.sh with "reserve-transfer-assets-from-asset-hub-rococo-local" within 120 seconds | ||
|
||
# check that //Alice received the ROC on Westend AH | ||
asset-hub-westend-collator1: js-script ../../js-helpers/wrapped-assets-balance.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY,0,Rococo" within 300 seconds | ||
|
||
# check that the relayer //Charlie is rewarded by Westend AH | ||
bridge-hub-westend-collator1: js-script ../../js-helpers/relayer-rewards.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y,0x00000002,0x6268726F,ThisChain,0" within 30 seconds |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
bridges/testing/tests/0001-asset-transfer/wnd-reaches-rococo.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back | ||
Network: ../../environments/rococo-westend/bridge_hub_rococo_local_network.toml | ||
Creds: config | ||
|
||
# send WND to //Alice from Westend AH to Rococo AH | ||
asset-hub-rococo-collator1: run ../../environments/rococo-westend/helper.sh with "reserve-transfer-assets-from-asset-hub-westend-local" within 120 seconds | ||
|
||
# check that //Alice received the WND on Rococo AH | ||
asset-hub-rococo-collator1: js-script ../../js-helpers/wrapped-assets-balance.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY,0,Westend" within 300 seconds | ||
|
||
# check that the relayer //Charlie is rewarded by Rococo AH | ||
bridge-hub-rococo-collator1: js-script ../../js-helpers/relayer-rewards.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y,0x00000002,0x62687764,ThisChain,0" within 30 seconds |
4 changes: 2 additions & 2 deletions
4
...-asset-transfer/wroc-reaches-rococo.zndsl → ...-asset-transfer/wroc-reaches-rococo.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back | ||
Network: ../../../../cumulus/zombienet/bridge-hubs/bridge_hub_westend_local_network.toml | ||
Network: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml | ||
Creds: config | ||
|
||
# send wROC back to Alice from Westend AH to Rococo AH | ||
asset-hub-rococo-collator1: run ../../environments/rococo-westend/helper.sh with "withdraw-reserve-assets-from-asset-hub-westend-local" within 120 seconds | ||
|
||
# check that //Alice received the wROC on Rococo AH | ||
# (we wait until //Alice account increases here - there are no other transactions that may increase it) | ||
asset-hub-rococo-collator1: js-script ../../helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds | ||
asset-hub-rococo-collator1: js-script ../../js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds |
4 changes: 2 additions & 2 deletions
4
...asset-transfer/wwnd-reaches-westend.zndsl → ...asset-transfer/wwnd-reaches-westend.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back | ||
Network: ../../../../cumulus/zombienet/bridge-hubs/bridge_hub_westend_local_network.toml | ||
Network: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml | ||
Creds: config | ||
|
||
# send wWND back to Alice from Rococo AH to Westend AH | ||
asset-hub-westend-collator1: run ../../environments/rococo-westend/helper.sh with "withdraw-reserve-assets-from-asset-hub-rococo-local" within 120 seconds | ||
|
||
# check that //Alice received the wWND on Westend AH | ||
# (we wait until //Alice account increases here - there are no other transactions that may increase it) | ||
asset-hub-westend-collator1: js-script ../../helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds | ||
asset-hub-westend-collator1: js-script ../../js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds |
4 changes: 2 additions & 2 deletions
4
...synced-while-idle/rococo-to-westend.zndsl → ...synced-while-idle/rococo-to-westend.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Description: While relayer is idle, we only sync mandatory Rococo (and a single Rococo BH) headers to Westend BH. | ||
Network: ../../../../cumulus/zombienet/bridge-hubs/bridge_hub_westend_local_network.toml | ||
Network: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml | ||
Creds: config | ||
|
||
# ensure that relayer is only syncing mandatory headers while idle. This includes both headers that were | ||
# generated while relay was offline and those in the next 100 seconds while script is active. | ||
bridge-hub-westend-collator1: js-script ../../helpers/only-mandatory-headers-synced-when-idle.js with "300,rococo-at-westend" within 600 seconds | ||
bridge-hub-westend-collator1: js-script ../../js-helpers/only-mandatory-headers-synced-when-idle.js with "300,rococo-at-westend" within 600 seconds | ||
|
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...synced-while-idle/westend-to-rococo.zndsl → ...synced-while-idle/westend-to-rococo.zndsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Description: While relayer is idle, we only sync mandatory Westend (and a single Westend BH) headers to Rococo BH. | ||
Network: ../../../../cumulus/zombienet/bridge-hubs/bridge_hub_rococo_local_network.toml | ||
Network: ../../environments/rococo-westend/bridge_hub_rococo_local_network.toml | ||
Creds: config | ||
|
||
# ensure that relayer is only syncing mandatory headers while idle. This includes both headers that were | ||
# generated while relay was offline and those in the next 100 seconds while script is active. | ||
bridge-hub-rococo-collator1: js-script ../../helpers/only-mandatory-headers-synced-when-idle.js with "300,westend-at-rococo" within 600 seconds | ||
bridge-hub-rococo-collator1: js-script ../../js-helpers/only-mandatory-headers-synced-when-idle.js with "300,westend-at-rococo" within 600 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
bridges/zombienet/environments/rococo-westend/rococo-init.zndsl
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
bridges/zombienet/environments/rococo-westend/westend-init.zndsl
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
bridges/zombienet/tests/0001-asset-transfer-works-rococo-to-westend.zndsl
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.