openstack-ansible/tests
Nolan Brubaker 671a092dff Reduce config file IO and date coupling in tests
Tests not directly related to interacting with the file system are often
reading the file during setup. This can lead to longer runtimes in the
case of the duplicate IP loop, and possible test collisions such as in
the configuration check tests. Also, the
tests/inventory/openstack_user_config.yml file is no longer tracked in
repo, and thus it's unnecessary to create a temp file.

This doesn't completely remove file IO integration testing - there is
still a test for the load_user_configuration function. It does, however,
remove file system access for configuration in places where such access
isn't part of the test.

The global _BASE_CONFIG dictionary is populated once, then later
accessed via copies so that 1) the original values are always maintained
2) tests have more assurance they're not getting a mutated dictionary,
either by file or memory access.

Change-Id: Icddb90dedeca347567828f06ea443f4aa7ad69b0
2016-09-23 17:50:09 -04:00
..
inventory Create complete AIO inventory config for tests 2016-09-23 15:56:14 -04:00
roles/bootstrap-host Fix br-vlan port in multi-node bootstrap-host 2016-09-22 17:27:18 +02:00
ansible.cfg Update ansible to version 2.1 2016-06-02 08:54:41 -05:00
bootstrap-aio.yml Implement scenario capability for AIO 2016-09-14 17:51:04 +00:00
get-ansible-role-requirements.yml Added option to set the role fetch mode 2016-05-23 09:48:56 +00:00
test_inventory.py Reduce config file IO and date coupling in tests 2016-09-23 17:50:09 -04:00
test_manage.py Create complete AIO inventory config for tests 2016-09-23 15:56:14 -04:00
test-inventory.ini Update ansible to version 2.1 2016-06-02 08:54:41 -05:00