ansible-config_template/tests
Jonathan Rosser 62812dedc0 Run tests against localhost and container
Use localhost and container1 as proper targets for the test playbook
rather than a combination of import_tasks/delegate_to for container1.

The previous code did not run the imported tasks against container1,
but instead a second time against localhost. This makes the handlers
checking the output from ansible diff fail as on the second run
against localhost there are no changes, giving an empty diff.

Changing the test play targets to localhost:container1 makes it more
obvious that the whole test playbook should be run against the host
and the container. It is not clear from the old code if the original
intent was to specifically test config_template tasks delegated from
the host to a container.

Change-Id: Ibc72868d9957567fe86a9d3205a80ec33441baff
2021-03-29 15:39:59 +01:00
..
files Fix section overrides when commented option persist 2020-07-30 20:18:07 +03:00
group_vars Set container_name as host_var in test inventory 2018-10-22 11:49:50 +01:00
host_vars Set container_name as host_var in test inventory 2018-10-22 11:49:50 +01:00
templates Merge "Add the ability to parse list only files" 2019-07-27 21:25:20 +00:00
ansible-role-requirements.yml Merge "Trivial: Fix the pep8 warning" 2019-07-18 17:56:15 +00:00
inventory Compare dict vars to determine changed 2018-09-24 20:08:51 -04:00
test-common-tasks.yml Enhance the config_template comment parser 2019-07-23 12:49:41 -05:00
test-ini.yml Updated from OpenStack Ansible Tests 2020-05-05 20:32:56 +03:00
test-json.yml Enhance the config_template comment parser 2019-07-23 12:49:41 -05:00
test-yaml.yml Add the ability to parse list only files 2019-07-25 16:37:56 -05:00
test.yml Run tests against localhost and container 2021-03-29 15:39:59 +01:00