b00e570e57b32fda5736c656e03cb4f57e9d7e4c
Providing a policy.d test for Octavia is a bit more complicated as the obvious policy is just to prevent listing of load balancers; unfortunately it doesn't work in the upstream, as the code doesn't check the policy in octavia. However, "showing" an load balancer does involve a policy check and so the test is more complicated than 'normal' policy tests in that a resource is created, then the policy override is checked and then the resource is deleted.
Zaza OpenStack Tests
This is a test library designed to be shared between the OpenStack Charms to improve code-reuse among the various components.
Usage
This example is taken from the pacemaker-remote charm's tests.yaml:
charm_name: pacemaker-remote
tests:
- zaza.openstack.charm_tests.pacemaker_remote.tests.PacemakerRemoteTest
configure:
- zaza.openstack.charm_tests.noop.setup.basic_setup
gate_bundles:
- basic
smoke_bundles:
- basic
test-requirements.txt:
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
Description
Languages
Python
99.6%
Jinja
0.4%