Skip to content

Commit 6fc1d41

Browse files
authored
Bridge zombienet tests: move all "framework" files under one folder (#3462)
Related to #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
1 parent 3386377 commit 6fc1d41

34 files changed

+45
-42
lines changed

bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# import common functions
4-
source "${BASH_SOURCE%/*}/../../utils/bridges.sh"
4+
source "$FRAMEWORK_PATH/utils/bridges.sh"
55

66
# Expected sovereign accounts.
77
#
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
$POLKADOT_SDK_PATH/bridges/testing/environments/rococo-westend/bridges_rococo_westend.sh "$@"
3+
$ENV_PATH/bridges_rococo_westend.sh "$@"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back
1+
Description: Check if the HRMP channel between Rococo BH and Rococo AH was opened successfully
22
Network: ./bridge_hub_rococo_local_network.toml
33
Creds: config
44

55
# ensure that initialization has completed
6-
asset-hub-rococo-collator1: js-script ../../js-helpers/wait-hrmp-channel-opened.js with "1013" within 300 seconds
6+
asset-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/wait-hrmp-channel-opened.js with "1013" within 300 seconds
77

88

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Description: User is able to transfer WND from Westend Asset Hub to Rococo Asset Hub and back
1+
Description: Check if the with-Westend GRANPDA pallet was initialized at Rococo BH
22
Network: ./bridge_hub_rococo_local_network.toml
33
Creds: config
44

55
# relay is already started - let's wait until with-Westend GRANPDA pallet is initialized at Rococo
6-
bridge-hub-rococo-collator1: js-script ../../js-helpers/best-finalized-header-at-bridged-chain.js with "Westend,0" within 400 seconds
6+
bridge-hub-rococo-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/best-finalized-header-at-bridged-chain.js with "Westend,0" within 400 seconds
77

bridges/testing/environments/rococo-westend/spawn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
trap "trap - SIGTERM && kill -9 -$$" SIGINT SIGTERM EXIT
66

7-
source "${BASH_SOURCE%/*}/../../utils/zombienet.sh"
7+
source "$FRAMEWORK_PATH/utils/zombienet.sh"
88

99
# whether to init the chains (open HRMP channels, set XCM version, create reserve assets, etc)
1010
init=0

bridges/testing/environments/rococo-westend/start_relayer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
source "${BASH_SOURCE%/*}/../../utils/common.sh"
6-
source "${BASH_SOURCE%/*}/../../utils/zombienet.sh"
5+
source "$FRAMEWORK_PATH/utils/common.sh"
6+
source "$FRAMEWORK_PATH/utils/zombienet.sh"
77

88
rococo_dir=$1
99
westend_dir=$2
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back
1+
Description: Check if the HRMP channel between Westend BH and Westend AH was opened successfully
22
Network: ./bridge_hub_westend_local_network.toml
33
Creds: config
44

55
# ensure that initialization has completed
6-
asset-hub-westend-collator1: js-script ../../js-helpers/wait-hrmp-channel-opened.js with "1002" within 600 seconds
6+
asset-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/wait-hrmp-channel-opened.js with "1002" within 600 seconds
77

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Description: User is able to transfer ROC from Rococo Asset Hub to Westend Asset Hub and back
1+
Description: Check if the with-Rococo GRANPDA pallet was initialized at Westend BH
22
Network: ./bridge_hub_westend_local_network.toml
33
Creds: config
44

55
# relay is already started - let's wait until with-Rococo GRANPDA pallet is initialized at Westend
6-
bridge-hub-westend-collator1: js-script ../../js-helpers/best-finalized-header-at-bridged-chain.js with "Rococo,0" within 400 seconds
6+
bridge-hub-westend-collator1: js-script {{FRAMEWORK_PATH}}/js-helpers/best-finalized-header-at-bridged-chain.js with "Rococo,0" within 400 seconds

0 commit comments

Comments
 (0)