canonical / ops-scenario

State-transition testing SDK for Operator Framework Juju charms.
Apache License 2.0
10 stars 7 forks source link

feat: add support for ActionEvent.id #103

Closed tonyandrewmeyer closed 6 months ago

tonyandrewmeyer commented 7 months ago

Sets JUJU_ACTION_UUID when handling an action event, so that ops sets ActionEvent.id appropriately. The ID is loaded from state.next_action_id and set on the state.Action object, similarly to relations.

Also stops setting JUJU_ACTION_NAME outside of action events - mostly to simplify the code addition, but in my quick checks this is the case in Juju as well.

Fixes #101