Commit Graph

4 Commits

Author SHA1 Message Date
Alex Kavanagh b00cb733a8 Fix func27-smoke which fails
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
2016-10-05 17:40:42 +00:00
Alex Kavanagh f8b5939ba9 Renamed the softhsm_plugin to softhsm
This is part of a rename strategy to remove the word 'plugin' from the charm.

Also changed the charm so that it runs in a venv for better isolation.
2016-07-13 14:09:37 +00:00
Alex Kavanagh 45e370b142 Charm with unit tests
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.
2016-07-12 16:53:46 +00:00
Alex Kavanagh cbe7232aac Initial commit of basic softhsm plugin charm
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.
2016-06-23 13:48:39 +00:00