Create and activate a virtualenv with the development requirements:
pip install tox
tox
source .tox/unit/bin/activate
The rolling ops library v1 lives in lib/charms/rolling_ops/v1/rollingops.py.
The example charm lives in tests/charms/v1/src/charm.py.
The rolling ops library v0 lives in lib/charms/rolling_ops/v0/rollingops.py.
The example charm lives in src/charm.py.
The charm herein has no production use -- it serves simply to host,
test, and document the rollingops library.
Charm authors may include the Rolling Ops library in the same way that any charm library may be included.
The Python operator framework includes a very nice harness for testing
operator behaviour without full deployment. Simply run tox.
Prior to publishing an update to this library, developers should be
sure additionally run tox -e integration. This will run a separate
set of tests against a live environment. Note that juju must be
installed, and a bare metal or vm controller must be bootstrapped.
Manual tests may be run by following the instructions in tests/QA.md.
Run unit tests
tox -e unit
Run integration tests
tox -e integration