forked from AstarNetwork/Astar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpc-tests.zndsl
51 lines (43 loc) · 2.52 KB
/
rpc-tests.zndsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Description: RPC Tests
Network: ./rpc-tests.toml
Creds: config
{% set nodes = ["relay01", "relay02", "relay03", "relay04"] %}
{% for node in nodes %}
{{node}}: is up
{{node}}: reports node_roles is 4
{% endfor %}
# Commands that should work but does not:
# astar: parachain 2006 is registered within 225 seconds # TypeError: Cannot read properties of undefined (reading 'parachains')
# astar: parachain 2006 block height is at least 2 within 200 seconds # Cannot read properties of undefined (reading 'heads')
# sleep 15 seconds # Timeout(10), "getting desired metric value 1 within 10 secs".
{% set collators = ["shiden", "astar"] %}
{% for collator in collators %}
{{collator}}: js-script ./tests/0001-register-xcasset.js with "Alice" within 200 seconds
{% endfor %}
{% set collators = ["shiden", "astar"] %}
{% for collator in collators %}
# Transfer test should only by done after the asset is registered on the other chain.
{{collator}}: js-script ./tests/0001-transfer-reserve-asset-to-sibling.js with "Alice" within 200 seconds
{% endfor %}
{% set collators = ["shiden", "astar"] %}
{% for collator in collators %}
# Balance test should only by done after the asset is transfered to the other chain.
{{collator}}: js-script ./tests/0001-balance-xcm-asset.js with "Alice" within 200 seconds
{% endfor %}
{% set collators = ["shiden", "astar"] %}
{% for collator in collators %}
# Basic Tests
{{collator}}: is up
{{collator}}: js-script ./tests/0001-fetch-name-and-chain-from-rpc-node.js return is equal to 1 within 200 seconds
{{collator}}: js-script ./tests/0001-transfer-tokens.js with "Alice,Dave" return is equal to 1 within 200 seconds
{{collator}}: js-script ./tests/0001-register-contract-on-h160.js with "Alice" within 200 seconds
{{collator}}: js-script ./tests/0001-dappsttaking-bondandstake.js with "Alice" within 200 seconds
{{collator}}: js-script ./tests/0001-parse-block.js return is equal to 1 within 200 seconds
# EVM Test Section
{{collator}}: js-script ./tests/0001-transfer-tokens-to-evm-mapped-account.js with "Alice" within 200 seconds
{{collator}}: js-script ./tests/0002-deploy-an-evm-contract return is equal to 1 within 200 seconds
{{collator}}: js-script ./tests/0002-get-evm-contract-data return is equal to 1 within 200 seconds
{{collator}}: js-script ./tests/0002-set-evm-contract-data with "Hola" return is equal to 1 within 200 seconds
# Shell script
{{collator}}: run ./tests/0001-custom.sh within 200 seconds
{% endfor %}