forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
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 "framework" files under one folder (p…
…aritytech#3462) Related to paritytech#3400 Moving all bridges testing "framework" files under one folder in order to be able to download the entire folder when we want to add tests in other repos No significant functional changes
- Loading branch information
Showing
34 changed files
with
45 additions
and
42 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
bridges/testing/environments/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
$POLKADOT_SDK_PATH/bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh "$@" | ||
$ENV_PATH/bridges_rococo_westend.sh "$@" |
4 changes: 2 additions & 2 deletions
4
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back | ||
Description: Check if the HRMP channel between Rococo BH and Rococo AH was opened successfully | ||
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 | ||
asset-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back | ||
Description: Check if the with-Westend GRANPDA pallet was initialized at Rococo BH | ||
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 | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/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
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
4 changes: 2 additions & 2 deletions
4
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back | ||
Description: Check if the HRMP channel between Westend BH and Westend AH was opened successfully | ||
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 | ||
asset-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back | ||
Description: Check if the with-Rococo GRANPDA pallet was initialized at Westend BH | ||
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 | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/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.
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 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
8 changes: 4 additions & 4 deletions
8
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 |
---|---|---|
@@ -1,12 +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 | ||
Network: {{ENV_PATH}}/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 | ||
asset-hub-westend-collator1: run {{ENV_PATH}}/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 | ||
asset-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/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 | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/relayer-rewards.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y,0x00000002,0x6268726F,ThisChain,0" within 30 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
8 changes: 4 additions & 4 deletions
8
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 |
---|---|---|
@@ -1,12 +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 | ||
Network: {{ENV_PATH}}/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 | ||
asset-hub-rococo-collator1: run {{ENV_PATH}}/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 | ||
asset-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/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 | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/relayer-rewards.js with "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y,0x00000002,0x62687764,ThisChain,0" within 30 seconds |
6 changes: 3 additions & 3 deletions
6
bridges/testing/tests/0001-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: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml | ||
Network: {{ENV_PATH}}/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 | ||
asset-hub-rococo-collator1: run {{ENV_PATH}}/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 ../../js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds | ||
asset-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds |
6 changes: 3 additions & 3 deletions
6
bridges/testing/tests/0001-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: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml | ||
Network: {{ENV_PATH}}/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 | ||
asset-hub-westend-collator1: run {{ENV_PATH}}/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 ../../js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds | ||
asset-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/native-assets-balance-increased.js with "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" within 300 seconds |
4 changes: 2 additions & 2 deletions
4
bridges/testing/tests/0002-mandatory-headers-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: ../../environments/rococo-westend/bridge_hub_westend_local_network.toml | ||
Network: {{ENV_PATH}}/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 ../../js-helpers/only-mandatory-headers-synced-when-idle.js with "300,rococo-at-westend" within 600 seconds | ||
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/only-mandatory-headers-synced-when-idle.js with "300,rococo-at-westend" 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
4 changes: 2 additions & 2 deletions
4
bridges/testing/tests/0002-mandatory-headers-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: ../../environments/rococo-westend/bridge_hub_rococo_local_network.toml | ||
Network: {{ENV_PATH}}/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 ../../js-helpers/only-mandatory-headers-synced-when-idle.js with "300,westend-at-rococo" within 600 seconds | ||
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/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