canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
48 stars 23 forks source link

add event context to crpc #135

Closed PietroPasotti closed 4 months ago

PietroPasotti commented 4 months ago

Right now crpc sets up a neutral event context, where it simulates a 'charm-rpc' event. We should add the possibility to pass a custom env as per jhack fire.

At that point, crpc could in principle become an option for jhack fire. Consider jhack fire foo/0 db-relation-broken --script /path/to/crpc_script.py

To be considered in that case: do we want to run the script before or after the event is simulated? or, if we pass --script, should we skip simulating the event in the first place?

Consider: