tripleo-validations/tripleo_validations/tests
Florian Fuchs d0dc69c1eb Fix Switch VLANs validation
The "Compare switch VLANs to VLANs in nic config" validation breaks when
run through Mistral. This is because the custom module used in the
validation imports functions from another custom module. Custom modules
are recognized by Ansible, but they don't necessarily live on the Python
path, so when run through Mistral the imported module cannot be found
and the validation breaks.

This patch moves the two imported functions to different locations:

- `library.network_environment.get_network_config` is refactored into a
  generic utility function in `tripleo_validations.utils`.
- `library.network_environment.open_network_environment_files` is copied
  to `library.network_environment.switch_vlans` (this is an ugly
  duplication, but the function is going to be removed from the original
  location in a different patch:
  https://review.openstack.org/#/c/547518/)

Change-Id: If3bc62df730739640341386022c0cd99295b880b
Closes-Bug: #1761717
2018-04-13 15:00:09 +00:00
..
library Fix Switch VLANs validation 2018-04-13 15:00:09 +00:00
__init__.py Initial Cookiecutter Commit. 2016-05-27 15:00:12 +02:00
base.py Initial Cookiecutter Commit. 2016-05-27 15:00:12 +02:00
test_ini.py Unit testing for ini 2017-12-08 11:49:52 +00:00
test_ip_range.py ctlplane-ip-range: Verify lower IP bound is smaller than upper 2017-10-20 16:31:14 +02:00
test_tripleo_validations.py Initial Cookiecutter Commit. 2016-05-27 15:00:12 +02:00
test_undercloud_conf.py Unit testing for undercloud_conf 2017-06-12 17:35:13 +02:00
test_utils.py Fix Switch VLANs validation 2018-04-13 15:00:09 +00:00