it seems that unit_tests are not feasible here. I checked other charms and they do not cover actions in any way. Charm keystone for instance got kind of coverage but with some dummy test actions so it doesn't make sense.
On other hand functional test may run all actions on nonleader unit and check whether it returns the message "Please run on leader unit!". But does it make any sense ?
The proposed fix is here: /review. opendev. org/c/openstack /charm- vault/+ /776935
https:/
it seems that unit_tests are not feasible here. I checked other charms and they do not cover actions in any way. Charm keystone for instance got kind of coverage but with some dummy test actions so it doesn't make sense.
On other hand functional test may run all actions on nonleader unit and check whether it returns the message "Please run on leader unit!". But does it make any sense ?