magnum-tempest-plugin since commit[0] is using ast.literal_eval() to
parse the value set in [magnum].labels, so the formatting needs to be a
Python dict.
This is an example of how the string needs to look like to make the
parser happy:
>>> import ast
>>> ast.literal_eval('{"a": "1:1"}')
{'a': '1:1'}
[0] 2fe075ae78 (diff-8e9d4d1beb73d502d61e14564c76d54acf855bf8)
Fixes the formatting of the labels configuration key, error raised with
the current formatting:
Traceback (most recent call last):
File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/tests/api/base.py", line 39, in setUpClass
config.Config.setUp()
File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/common/config.py", line 187, in setUp
cls.set_labels(config)
File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/common/config.py", line 162, in set_labels
cls.labels = ast.literal_eval(CONF.magnum.labels)
File "/usr/lib/python3.8/ast.py", line 59, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python3.8/ast.py", line 47, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 1
container_infra_prefix:10.245.164.190:5000
^
SyntaxError: invalid syntax
In order to ensure that an object that contains other objects that are
called (e.g. the VolumeManager object on the Cinder client object), the
ObjectRetrierWraps class needs to more agressively wrap non builtin
classes.
It wasn't capturing member variables on the wrapped object that would
then be used to make the call; thus, wrap those.
This also disables (temporarily) the long running cinder backup test
deletion whilst checking whether retries are the problem.
In order to ensure that an object that contains other objects that are
called (e.g. the VolumeManager object on the Cinder client object), the
ObjectRetrierWraps class needs to more agressively wrap non builtin
classes.
It wasn't capturing member variables on the wrapped object that would
then be used to make the call; thus, wrap those.
This also disables (temporarily) the long running cinder backup test
deletion whilst checking whether retries are the problem.
Added general class for testing keystone audit middleware
functionality in charms. Tests correct rendering of
api-paste.ini file and allows charms without an api-paste.ini
file to skip the tests.
Example usage with charm Heat:
tests/tests.yaml
tests:
- zaza.openstack.charm_tests.audit.tests.KeystoneAuditMiddlewareTest
tests_options:
audit-middleware:
service: heat
(cherry picked from commit ff5cdf51e6)
Add a constraints file to pin to a version of juju which supports
noble. Adding a new file so as not to impact current master branch
targets for all charms until they are ready.
Signed-off-by: Billy Olsen <billy.olsen@canonical.com>
Added general class for testing keystone audit middleware
functionality in charms. Tests correct rendering of
api-paste.ini file and allows charms without an api-paste.ini
file to skip the tests.
Example usage with charm Heat:
tests/tests.yaml
tests:
- zaza.openstack.charm_tests.audit.tests.KeystoneAuditMiddlewareTest
tests_options:
audit-middleware:
service: heat
The zaza test used the default endpoint as exposed by
the unit to perform object IO, however, SSL is configured
for PUBLIC,INTERNAL, and ADMIN bindings.
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
The designate-agent service was removed at caracal. This patch removes
the designate-agent from the list of services that designate supports so
that the pause/resume testing works appropriately.