Module bridge_hub_test_utils::test_cases
source · Expand description
Module contains predefined test-case scenarios for Runtime
with bridging capabilities.
This file contains tests, suitable for all bridge runtimes. See from_parachain
and
from_grandpa_chain
submodules for tests, that are specific to the bridged chain type.
Modules§
- Module contains predefined test-case scenarios for
Runtime
with bridging capabilities with remote GRANDPA chain. - Module contains predefined test-case scenarios for
Runtime
with bridging capabilities with remote parachain.
Macros§
Functions§
- Estimates XCM execution fee for paid
ExportMessage
processing. - Test-case makes sure that
Runtime
can change bridge GRANDPA pallet operating mode via governance-like call. - Test-case makes sure that
Runtime
can change bridge messaging pallet operating mode via governance-like call. - Test-case makes sure that
Runtime
can change bridge parachains pallet operating mode via governance-like call. - Test-case makes sure that
Runtime
can change storage constant via governance-like call - Test-case makes sure that
Runtime
can handle xcmExportMessage
: Checks if received XCM messages is correctly added to the message outbound queue for delivery. For SystemParachains we expect unpaid execution. - Test-case makes sure that
Runtime
can process bridging initialize via governance-like call - Test-case makes sure that Runtime can route XCM messages received in inbound queue, We just test here
MessageDispatch
configuration. We expect that runtime can route messages: 1. to Parent (relay chain) 2. to Sibling parachain - Test-case makes sure that
Runtime
can open/close bridges. - Prepare default runtime storage and run test within this context.
- Test-case makes sure that
Runtime
can change storage constant via governance-like call