This was a combination of the smoke test being incorrectly specified
and there being no assess_status() at the end of the hsm_connected()
function. Also the assess_status() was removed from the layer-openstack
which meant that the status wasn't updating.
The change adds in an assess_status() call, but also reworks the tests
so that they use the new features in charms.openstack, and also uses
defaults for config-changed and assess-status hooks/events.
The gate that tox.ini is the keystone-v2 version of the tests.
Change-Id: Ib8082a083b05eba872d8a2e5fe477352df25ccbb
Closes-Bug: #1629624
Working charm with unit tests. Various features:
Change the install ownership for token store
It turns out that the 'user' that creates the token store, is the only one that
can access it, apart from root. As Barbican uses a 'barbican' user for the
barbican-worker process, we need to create the token store with 1777 perms (see
https://github.com/opendnssec/SoftHSMv2/issues/185) and also create the initial
token using the barbican user.
Add an initial README.md: This describes the charm, where to get help
and how to use it.
This is a barebones charm (as part of this commit) which only connects to the
prinical barbican charm and announces its name (as softhsm). Next steps are to
install and configure the software for the softhsm and determine what should go
across the charm relation.