charms.openstack/unit_tests
Dmitrii Shcherbakov 1ca4bd0ab9 add string template rendering capability
In some cases software deliberately allows drop-in config file usage
capabilities, for example, when it comes to enforcing policy, the
desired behavior varies from an operator to operator. For that reason it
is sometimes desirable to supply custom templates via config options.

Another use-case is templates that are passed from subordinates for a
primary charm to render.

Given that properties and desired adapters can be arbitrary the change
uses a dict of meta tuples of the following format to render templates
from strings based on adapter properties:

{config_file_path: (relation_name, adapter property)}

relation names must be normalized (lowercase, underscores instead of
dashes. "options" relation name is used for a config adapter as usual.

In summary a string config file path should be used:

1. in the restart_map for a given derived class;
2. in string_templates dict as a key for a meta tuple

Change-Id: Ic85b22d0e5d497c49c75243e3c280140f940df66
Closes-Bug: #1741723
2018-01-31 14:52:24 +03:00
..
charms_openstack add string template rendering capability 2018-01-31 14:52:24 +03:00
__init__.py Add function for adding DNS HA resources 2017-10-27 08:23:50 +01:00
odl_responses.py Added ovs, odl and pci modules 2016-09-14 13:58:05 +00:00
pci_responses.py Added ovs, odl and pci modules 2016-09-14 13:58:05 +00:00
test_charms_openstack_adapters.py Fix up to work with 0.6.0 of charms.reactive 2018-01-17 16:27:52 +00:00
test_charms_openstack_devices_pci.py Added ovs, odl and pci modules 2016-09-14 13:58:05 +00:00
test_charms_openstack_ip.py Add license headers to all source files 2016-06-28 11:13:14 +01:00
test_charms_openstack_sdn_odl.py Added ovs, odl and pci modules 2016-09-14 13:58:05 +00:00
test_charms_openstack_sdn_ovs.py Added ovs, odl and pci modules 2016-09-14 13:58:05 +00:00
test_charms_openstack_test_utils.py Fix for bug/1645473 -- test registered hooks 2016-11-30 13:05:28 +00:00
utils.py Fix up to work with 0.6.0 of charms.reactive 2018-01-17 16:27:52 +00:00