The snowbridge-preimage tool will also generate a helper script chopsticks-execute-upgrade.js to execute the update in simulated chopsticks environment.
Run chopsticks and fork Polkadot, AssetHub, and BridgeHub, using these configs
Once the chopsticks environment has been initialized, connect to BridgeHub in Polkadot-JS, and execute the contents of chopsticks-execute-upgrade.js in the Polkadot-JS Javascript console.
A more complicated testing scenario would involve having to upgrade BridgeHub with new code, and then calling a governance API.
OpenGov
The next step involves submitting the proposal to the Whitelisted Caller track in OpenGov.
This actually involves two referendums:
A referendum on the Collectives chain where the technical fellowship vote to whitelist the preimage.
A public referendum on Polkadot where the general public vote to execute the whitelisted preimage.
We use the tool opengov-cli to generate the various calls required to setup these referendums.