kolla/tests
Mark Goddard c191e6fbd7 Fix kolla_set_configs --check with a directory
There are several issues with kolla_set_configs --check:

1. We calculate the destination path incorrectly when comparing a file
   in a directory, due to passing arguments to os.path.relpath in the
   wrong order
2. For directories that have not changed, we also attempt to compare
   them as files, which fails when they are open()ed.
3. If the config JSON does not have a config_files key, it fails with a
   KeyError.

The first two issues affect the fluentd container, which specifies
directories as the source, without using a glob. The third affects OVN
containers.

This patch fixes these issues.

Closes-Bug: #1890567

Change-Id: I8921befe51da4282121443849177a7ca5ebe8822
(cherry picked from commit c5320eb223)
2020-09-14 10:08:49 +00:00
..
files CI: Move to CentOS 8 nodepool images 2019-11-26 10:22:06 +00:00
playbooks CI: make sure that virtualenv is available 2020-04-30 22:19:06 +02:00
templates CI: use wheels from infra mirror 2020-06-26 10:19:21 +00:00
vars [CI] Fix wheel url for CentOS 2020-08-12 07:58:53 +00:00
__init__.py Add py27 py34 pypy unittest 2016-01-13 13:47:49 +08:00
clients.py No use of mox/mox3 2018-03-30 03:06:07 +00:00
test_keystone.py Clean imports in code 2016-09-12 15:17:28 +07:00
test_set_config.py Fix kolla_set_configs --check with a directory 2020-09-14 10:08:49 +00:00