openstack-ansible-plugins/tests
Andy McCrae fce9a020a3 Utilise sorted to ensure no random changes
As part of the ceph-ansible project, this change was put in:
ec042219e6
This was to handle the case where the config would change, initiating a
restart handler, even though no actual change happened.

We can juse use sorted() since we are passing back a list with .items()
which can then be sorted.

The above change didn't include a change to ensure the order of the
sections, which meant that although the individual items were sorted the
sections could change order causing unnecessary changes.

Additionally, this adds a test to retemplate the file 3 times, with a
lot more sections to ensure the order remains the same, this will fail
when the config template changes even though no changes have happened.

Change-Id: I7c7cd9ef1dd767a2a5d754ac4663cf8655dd60c2
(cherry picked from commit a5ef4eadd1)
2018-03-20 17:21:27 +00:00
..
files Handle 'dict' type as input of 'content' 2017-06-22 21:46:31 +00:00
group_vars Add container-aware connection plugin tests 2017-09-14 04:56:57 +00:00
host_vars Add container-aware connection plugin tests 2017-09-14 04:56:57 +00:00
templates Preserve comments in INI files 2017-11-23 14:46:18 +01:00
ansible-role-requirements.yml Point to Queens instead of master 2018-02-15 14:07:59 +00:00
inventory Add container-aware connection plugin tests 2017-09-14 04:56:57 +00:00
test-config_template.yml Utilise sorted to ensure no random changes 2018-03-20 17:21:27 +00:00
test-connection-plugin.yml Add container-aware connection plugin tests 2017-09-14 04:56:57 +00:00
test-filters.yml Add a get_nested filter 2017-07-07 19:42:39 +00:00
test-lookups.yml Add Packages file parsing lookup 2017-03-27 11:43:23 +00:00
test-strategy-tagfilter.yml Resolve ansible-lint test failures 2017-11-20 12:07:34 +00:00
test.yml Add container-aware connection plugin tests 2017-09-14 04:56:57 +00:00
tests-repo-clone.sh Updated from OpenStack Ansible Tests 2018-02-15 12:57:36 +00:00