Skip to content

Commit 09a7277

Browse files
authored
Extend proxy E2E test suite with call filtering tests (#231)
* Add `ts-pattern` dependency * Draft proxy call filtering test * Draft proxy filtering mechanism for `NonTransfer/Governance` * Add draft of proxy filtering tests for Governance proxies * Test bounty pallet in proxy call filtering test * Refactor proxy call filtering test structure * Regenerate proxy snapshots * Rework proxy filtering snapshot names * Reduce amount of blocks required in proxy filtering tests * Test Staking and NominationPools proxy call filtering * Test `CancelProxy` proxy call filtering * Test `Auction` proxy type filtering * Correct proxy call event snapshot names * Test `Spokesperson` proxy type filtering * Add and test `ParaRegistration` proxy type filtering Also, enable `Spokesperson` test, mistakenly omitted in previous commit. * Test call filtering for asset proxy types * Test call filtering for collator proxy type * Test alliance proxy type call filtering * Create Fellowship proxy type call filtering test * Complete Fellowship proxy type call filtering test * Update proxy test snapshots * Test ambassador proxy type call filtering * Swap extrinsics from balances pallet in call filtering tests * Test `Broker` proxy type call filtering * Exclude some unstable events from `balances` pallet * Test `CoretimeRenewer` proxy type call filtering * Disable credit purchase call in coretime filtering tests * Extend `Collator` proxy type call filtering test * Display logging information in proxy call filtering test In case such a test fails, a message will now be displayed showing which call caused the failure. * Update block numbers * Update `Broker` proxy type filtering test snapshots * Improve stability of `Broker` proxy filtering test * Test call fltering for identity proxy types * Update missing `CoretimeRenewer` proxy test snapshots * Add missing utility/system actions to some proxy types * Disable some call filtering tests pending fixes 1. Kusama `ParaRegistration` proxy type cannot call `remove_proxy` 2. `CancelProxy` types outside of relay chains cannot call utility/system actions * Update snapshots * Remove duplicate TODO note * Update snapshot
1 parent 6ad39c7 commit 09a7277

14 files changed

+8360
-14
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@e2e-test/networks": "workspace:*",
3333
"@swc/core": "^1.11.5",
3434
"lodash": "^4.17.21",
35+
"ts-pattern": "^5.7.0",
3536
"typescript": "^5.8.2",
3637
"vitest": "^3.0.7"
3738
},

0 commit comments

Comments
 (0)