Skip to content

Commit f0de6bc

Browse files
authored
Update PET to integrate Polkadot AHM changes (#446)
* Create PAHM E2E test suites * Initialize PAHM E2E test suites * Refactor vesting tests to function post-AHM Vesting periods now elapse according to a non-local block provider, the relay's, as opposed to a local one; vesting E2E tests and snapshots required an update that was not done for KAHM as vesting was mistakenly filtered there (even after the migration). * Bump block numbers * Fix Polkadot Asset Hub vesting E2E tests * Update Asset Hub proxy E2E tests * Update PAH accounts E2E test snapshots * Enable child bounties E2E tests in PAH * Remove obsolote E2E tests from Polkadot relay * Note auction proxy filtering E2E tests in relay chains * Change Hydration's RPC endpoint * Disable failing Polkadot XCM tests post-AHM * Test that staking is filtered on Kusama relay * Add Kusama post-AHM filtering tests * Update staking snapshot * Move all post-AHM filtering tests to own file * Check coretime post-migration Kusama relay call filters * Refactor filtering test helpers and instances * Test scheduler call filtering * Test filtering of more calls Treasury, System, the relay's staking client pallet, `paras`. * Enable post-AHM filtering tests for Polkadot * Remove Polkadot relay dependency from PAH accounts tests * Update snapshots * Remove mistakenly added setup function Meant for a different branch * Update Polkadot relay/AH multisig snapshots * Address minor fixes from Copilot review * Update snapshots/block numbers * Update some tests' snapshots * Multisig+proxy, multisig * Also, disable some failing PAH XCM tests * Update Polkadot network liquidity restriction tests The issue in #8108 has been corrected in all Sys. Parachains in the Polkadot network, so liquidity restriction tests now pass. Also, a `system` test for Polkadot relay has been updated. * Update Kusama snapshots * Disable Polkadot Coretime -> PAH XCM test * Further updates to Polkadot tests In particular, runtime upgrade tests via Collectives have been updated to reflect the new centrality of the AH in this process, where it was formerly the relay through which the process occurred. * Correct overlooked Collectives test * Remove mistakenly added scripts May be re-added in thefuture; it was used only for local testing. * Bump block numbers * Disable XCM tests involving Polkadot relay * Update treasury snapshots * Update Multisig+Proxy tests' snapshots Multisig addresses are deterministic, the when they involve proxy addresses, either as signatories or approvers, they are not. Thus, they must be redacted to avoid spurious failures. * Remove unstable transfer data from bounties snapshots * Fix named scheduled task retry config test It did not take into account the possibility that a test task would be scheduled in the same block as a real task.
1 parent 501de91 commit f0de6bc

File tree

111 files changed

+5932
-4808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+5932
-4808
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
ASSETHUBKUSAMA_BLOCK_NUMBER=11496303
2-
BASILISK_BLOCK_NUMBER=11827179
3-
BRIDGEHUBKUSAMA_BLOCK_NUMBER=6883842
4-
CORETIMEKUSAMA_BLOCK_NUMBER=3825105
5-
ENCOINTERKUSAMA_BLOCK_NUMBER=11333297
6-
INTEGRITEEKUSAMA_BLOCK_NUMBER=8843628
7-
KARURA_BLOCK_NUMBER=10301519
8-
KUSAMA_BLOCK_NUMBER=30804027
9-
MOONRIVER_BLOCK_NUMBER=13786545
10-
PEOPLEKUSAMA_BLOCK_NUMBER=6409156
11-
SHIDEN_BLOCK_NUMBER=12468200
1+
ASSETHUBKUSAMA_BLOCK_NUMBER=11539184
2+
BASILISK_BLOCK_NUMBER=11873855
3+
BRIDGEHUBKUSAMA_BLOCK_NUMBER=6906309
4+
CORETIMEKUSAMA_BLOCK_NUMBER=3846550
5+
ENCOINTERKUSAMA_BLOCK_NUMBER=11370243
6+
INTEGRITEEKUSAMA_BLOCK_NUMBER=8865935
7+
KARURA_BLOCK_NUMBER=10320052
8+
KUSAMA_BLOCK_NUMBER=30851311
9+
MOONRIVER_BLOCK_NUMBER=13830307
10+
PEOPLEKUSAMA_BLOCK_NUMBER=6453798
11+
SHIDEN_BLOCK_NUMBER=12510171
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
ACALA_BLOCK_NUMBER=9758901
2-
ASSETHUBPOLKADOT_BLOCK_NUMBER=10182413
3-
ASTAR_BLOCK_NUMBER=10844357
4-
BRIDGEHUBPOLKADOT_BLOCK_NUMBER=6288286
5-
COLLECTIVESPOLKADOT_BLOCK_NUMBER=7486109
6-
CORETIMEPOLKADOT_BLOCK_NUMBER=2898364
7-
HYDRATION_BLOCK_NUMBER=9861942
8-
INTEGRITEEPOLKADOT_BLOCK_NUMBER=5616683
9-
MOONBEAM_BLOCK_NUMBER=13149240
10-
PEOPLEPOLKADOT_BLOCK_NUMBER=3225266
11-
POLKADOT_BLOCK_NUMBER=28414859
1+
ACALA_BLOCK_NUMBER=9811323
2+
ASSETHUBPOLKADOT_BLOCK_NUMBER=10286151
3+
ASTAR_BLOCK_NUMBER=10952286
4+
BRIDGEHUBPOLKADOT_BLOCK_NUMBER=6339176
5+
COLLECTIVESPOLKADOT_BLOCK_NUMBER=7537051
6+
CORETIMEPOLKADOT_BLOCK_NUMBER=2947877
7+
HYDRATION_BLOCK_NUMBER=9970280
8+
INTEGRITEEPOLKADOT_BLOCK_NUMBER=5649685
9+
MOONBEAM_BLOCK_NUMBER=13244269
10+
PEOPLEPOLKADOT_BLOCK_NUMBER=3275339
11+
POLKADOT_BLOCK_NUMBER=28524365

packages/kusama/src/__snapshots__/assetHubKusama.bounties.e2e.test.ts.snap

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -443,29 +443,6 @@ exports[`Kusama Asset Hub Bounties > All bounty success tests > All curator unas
443443
]
444444
`;
445445

446-
exports[`Kusama Asset Hub Bounties > All bounty success tests > Bounty Closure Tests > Bounty closure in active state > Bounty value is transferred to the treasury 1`] = `
447-
[
448-
{
449-
"data": {
450-
"amount": "(rounded 67000000000000)",
451-
"from": "(redacted)",
452-
"to": "(redacted)",
453-
},
454-
"method": "Transfer",
455-
"section": "balances",
456-
},
457-
{
458-
"data": {
459-
"amount": "(rounded 47000000)",
460-
"from": "(redacted)",
461-
"to": "(redacted)",
462-
},
463-
"method": "Transfer",
464-
"section": "balances",
465-
},
466-
]
467-
`;
468-
469446
exports[`Kusama Asset Hub Bounties > All bounty success tests > Bounty Closure Tests > Bounty closure in active state > bounty approved events 1`] = `
470447
[
471448
{
@@ -564,29 +541,6 @@ exports[`Kusama Asset Hub Bounties > All bounty success tests > Bounty Closure T
564541
]
565542
`;
566543

567-
exports[`Kusama Asset Hub Bounties > All bounty success tests > Bounty Closure Tests > Bounty closure in funded state > bounty value transferred to treasury 1`] = `
568-
[
569-
{
570-
"data": {
571-
"amount": "(rounded 67000000000000)",
572-
"from": "(redacted)",
573-
"to": "(redacted)",
574-
},
575-
"method": "Transfer",
576-
"section": "balances",
577-
},
578-
{
579-
"data": {
580-
"amount": "(rounded 16000000)",
581-
"from": "(redacted)",
582-
"to": "(redacted)",
583-
},
584-
"method": "Transfer",
585-
"section": "balances",
586-
},
587-
]
588-
`;
589-
590544
exports[`Kusama Asset Hub Bounties > All bounty success tests > Bounty Closure Tests > Bounty closure in proposed state > bounty rejected events 1`] = `
591545
[
592546
{

packages/kusama/src/__snapshots__/assetHubKusama.governance.e2e.test.ts.snap

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`Kusama Asset Hub Governance > preimage tests > preimage submission, query and removal works > note preimage events 1`] = `
4-
[
5-
{
6-
"data": {
7-
"hash_": "(hash)",
8-
},
9-
"method": "Noted",
10-
"section": "preimage",
11-
},
12-
]
13-
`;
14-
15-
exports[`Kusama Asset Hub Governance > preimage tests > preimage submission, query and removal works > unnote preimage events 1`] = `
16-
[
17-
{
18-
"data": {
19-
"hash_": "(hash)",
20-
},
21-
"method": "Cleared",
22-
"section": "preimage",
23-
},
24-
]
25-
`;
26-
273
exports[`Kusama Asset Hub Governance > referenda tests > referendum lifecycle test - submission, decision deposit, various voting should all work > cancelling referendum with signed origin 1`] = `
284
[
295
{

packages/kusama/src/__snapshots__/assetHubKusama.multisig.proxy.e2e.test.ts.snap

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`Kusama AssetHub Multisig Proxy > failure tests > 2-of-3 multisig as sta
66
"data": {
77
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
88
"callHash": "(hash)",
9-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
9+
"multisig": "(redacted)",
1010
},
1111
"method": "NewMultisig",
1212
"section": "multisig",
@@ -20,7 +20,7 @@ exports[`Kusama AssetHub Multisig Proxy > failure tests > 2-of-3 multisig as sta
2020
"data": {
2121
"approving": "EvvS4HELEC1nxVHsjYUsPvypd2kXeu78AguyiSN7kV2pTnk",
2222
"callHash": "(hash)",
23-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
23+
"multisig": "(redacted)",
2424
"result": "Ok",
2525
"timepoint": {
2626
"height": "(redacted)",
@@ -39,7 +39,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig as sta
3939
"data": {
4040
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
4141
"callHash": "(hash)",
42-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
42+
"multisig": "(redacted)",
4343
},
4444
"method": "NewMultisig",
4545
"section": "multisig",
@@ -53,7 +53,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig as sta
5353
"data": {
5454
"approving": "EvvS4HELEC1nxVHsjYUsPvypd2kXeu78AguyiSN7kV2pTnk",
5555
"callHash": "(hash)",
56-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
56+
"multisig": "(redacted)",
5757
"result": "Ok",
5858
"timepoint": {
5959
"height": "(redacted)",
@@ -72,7 +72,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig as sta
7272
"data": {
7373
"approving": "EvvS4HELEC1nxVHsjYUsPvypd2kXeu78AguyiSN7kV2pTnk",
7474
"callHash": "(hash)",
75-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
75+
"multisig": "(redacted)",
7676
"result": "Ok",
7777
"timepoint": {
7878
"height": "(redacted)",
@@ -93,7 +93,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig with p
9393
"data": {
9494
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
9595
"callHash": "(hash)",
96-
"multisig": "E9vsiNkTeYr8A5gt1k2udPrtaBy9KeQx8t3Ygp5Qy3MfQUu",
96+
"multisig": "(redacted)",
9797
},
9898
"method": "NewMultisig",
9999
"section": "multisig",
@@ -105,12 +105,12 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig with p
105105
[
106106
{
107107
"data": {
108-
"approving": "HdNsk4ihvd6uHt1bVBAm5GFNXM4DRGWgWXjwA2ot2JHDGmr",
108+
"approving": "(redacted)",
109109
"callHash": "(hash)",
110-
"multisig": "E9vsiNkTeYr8A5gt1k2udPrtaBy9KeQx8t3Ygp5Qy3MfQUu",
110+
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(redacted)",
113+
"height": "(rounded 12000000)",
114114
"index": 2,
115115
},
116116
},
@@ -126,7 +126,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig with p
126126
"data": {
127127
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
128128
"callHash": "(hash)",
129-
"multisig": "FZ6q9Auydj7C4FDhb63p8pkfkkmpzfVyncftHe7GcrsUgup",
129+
"multisig": "(redacted)",
130130
},
131131
"method": "NewMultisig",
132132
"section": "multisig",
@@ -138,12 +138,12 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig with p
138138
[
139139
{
140140
"data": {
141-
"approving": "J53AtEmvjwkC2ZBbq8mQm6tPLfgSnww6NhnkvYSeEevYyZg",
141+
"approving": "(redacted)",
142142
"callHash": "(hash)",
143-
"multisig": "FZ6q9Auydj7C4FDhb63p8pkfkkmpzfVyncftHe7GcrsUgup",
143+
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(redacted)",
146+
"height": "(rounded 12000000)",
147147
"index": 2,
148148
},
149149
},
@@ -159,7 +159,7 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > 2-of-3 multisig with p
159159
"data": {
160160
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
161161
"callHash": "(hash)",
162-
"multisig": "FH5nQ6PgoHVPAmPbFgUKgJ354iKLX6JBmD93TRmn5sXeLsS",
162+
"multisig": "(redacted)",
163163
},
164164
"method": "NewMultisig",
165165
"section": "multisig",
@@ -171,9 +171,9 @@ exports[`Kusama AssetHub Multisig Proxy > success tests > Cancel 2-of-3 multisig
171171
[
172172
{
173173
"data": {
174-
"approving": "E9y3VebmktdiPKyrxWTRTt6cCZsxUDfKYo8JfXwyR3Jyukz",
174+
"approving": "ELPF5Yb4cyVYneiw5esrkLJP1pFCdyw35owdHFHfVef9EUh",
175175
"callHash": "(hash)",
176-
"multisig": "HzRAJ3qBu6Xq6zQivnmXPWYcnRL6cB5e56aS33uGiGe6e4A",
176+
"multisig": "(redacted)",
177177
},
178178
"method": "NewMultisig",
179179
"section": "multisig",

packages/kusama/src/__snapshots__/coretimeKusama.multisig.proxy.e2e.test.ts.snap

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`Kusama Coretime Multisig Proxy > failure tests > 2-of-3 multisig as sta
66
"data": {
77
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
88
"callHash": "(hash)",
9-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
9+
"multisig": "(redacted)",
1010
},
1111
"method": "NewMultisig",
1212
"section": "multisig",
@@ -20,7 +20,7 @@ exports[`Kusama Coretime Multisig Proxy > failure tests > 2-of-3 multisig as sta
2020
"data": {
2121
"approving": "EvvS4HELEC1nxVHsjYUsPvypd2kXeu78AguyiSN7kV2pTnk",
2222
"callHash": "(hash)",
23-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
23+
"multisig": "(redacted)",
2424
"result": "Ok",
2525
"timepoint": {
2626
"height": "(redacted)",
@@ -39,7 +39,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig as sta
3939
"data": {
4040
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
4141
"callHash": "(hash)",
42-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
42+
"multisig": "(redacted)",
4343
},
4444
"method": "NewMultisig",
4545
"section": "multisig",
@@ -53,7 +53,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig as sta
5353
"data": {
5454
"approving": "EvvS4HELEC1nxVHsjYUsPvypd2kXeu78AguyiSN7kV2pTnk",
5555
"callHash": "(hash)",
56-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
56+
"multisig": "(redacted)",
5757
"result": "Ok",
5858
"timepoint": {
5959
"height": "(redacted)",
@@ -72,7 +72,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig as sta
7272
"data": {
7373
"approving": "EvvS4HELEC1nxVHsjYUsPvypd2kXeu78AguyiSN7kV2pTnk",
7474
"callHash": "(hash)",
75-
"multisig": "DmDBuaenD2WM54PYRMHqQbCTKd1HnXi6AeHHyeiFU6cosXp",
75+
"multisig": "(redacted)",
7676
"result": "Ok",
7777
"timepoint": {
7878
"height": "(redacted)",
@@ -93,7 +93,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig with p
9393
"data": {
9494
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
9595
"callHash": "(hash)",
96-
"multisig": "FQsRpfm9Kmg2CigS8at8CT2VSf5vNLh49CaoTir3tXyB7hW",
96+
"multisig": "(redacted)",
9797
},
9898
"method": "NewMultisig",
9999
"section": "multisig",
@@ -105,12 +105,12 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig with p
105105
[
106106
{
107107
"data": {
108-
"approving": "Gvf8FefSBcgJk72dLRsjjRFFRPAihoMuR7ZGA9V5x71qzJX",
108+
"approving": "(redacted)",
109109
"callHash": "(hash)",
110-
"multisig": "FQsRpfm9Kmg2CigS8at8CT2VSf5vNLh49CaoTir3tXyB7hW",
110+
"multisig": "(redacted)",
111111
"result": "Ok",
112112
"timepoint": {
113-
"height": "(redacted)",
113+
"height": "(rounded 3800000)",
114114
"index": 2,
115115
},
116116
},
@@ -126,7 +126,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig with p
126126
"data": {
127127
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
128128
"callHash": "(hash)",
129-
"multisig": "GzkCk1rp4U8QGrQc5LF9asgJDdBShFBfX6mjDXSwNbD4GFw",
129+
"multisig": "(redacted)",
130130
},
131131
"method": "NewMultisig",
132132
"section": "multisig",
@@ -138,12 +138,12 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig with p
138138
[
139139
{
140140
"data": {
141-
"approving": "FDPeVTMtsQAxhSYp56VCoAMR6GG8B8jQCYDw4nDirkAfoB9",
141+
"approving": "(redacted)",
142142
"callHash": "(hash)",
143-
"multisig": "GzkCk1rp4U8QGrQc5LF9asgJDdBShFBfX6mjDXSwNbD4GFw",
143+
"multisig": "(redacted)",
144144
"result": "Ok",
145145
"timepoint": {
146-
"height": "(redacted)",
146+
"height": "(rounded 3800000)",
147147
"index": 2,
148148
},
149149
},
@@ -159,7 +159,7 @@ exports[`Kusama Coretime Multisig Proxy > success tests > 2-of-3 multisig with p
159159
"data": {
160160
"approving": "D8ew585BL5H1ALhn4kmJoxhgqcgKDZLPc6xunJNv4mmrBns",
161161
"callHash": "(hash)",
162-
"multisig": "J79MxQMSs4XCRtq45z9zqLvmrUMmMM6NgFurw2TwZHwBzeM",
162+
"multisig": "(redacted)",
163163
},
164164
"method": "NewMultisig",
165165
"section": "multisig",
@@ -171,9 +171,9 @@ exports[`Kusama Coretime Multisig Proxy > success tests > Cancel 2-of-3 multisig
171171
[
172172
{
173173
"data": {
174-
"approving": "DkiKcoBiKrJ2jakLkBmToVAMmMC5uGjK2a5XCVahw9qSitw",
174+
"approving": "Fm3riF8Pw6Fr9ZQtZo9sgdJt1E3yJvh83Jfo6LNKhrcphK8",
175175
"callHash": "(hash)",
176-
"multisig": "EeSDE4RFjMJwbupcawM2BzTHhCuUYap5mTzUzQC5XN1Un8u",
176+
"multisig": "(redacted)",
177177
},
178178
"method": "NewMultisig",
179179
"section": "multisig",

0 commit comments

Comments
 (0)