From 4a84bac919a4e4cc97208571034f4578a8217808 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Tue, 5 Apr 2022 14:55:27 +0200 Subject: [PATCH] tests: use source instead of binary Change-Id: I3d402e43bebd9054a94990e6bc2183bad9922419 --- tests/test_kolla_docker.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_kolla_docker.py b/tests/test_kolla_docker.py index 094e9d2fba..4e2c61e8df 100644 --- a/tests/test_kolla_docker.py +++ b/tests/test_kolla_docker.py @@ -198,7 +198,7 @@ FAKE_DATA = { 'container_inspect': { 'Config': { 'Env': ['KOLLA_BASE_DISTRO=ubuntu', - 'KOLLA_INSTALL_TYPE=binary', + 'KOLLA_INSTALL_TYPE=source', 'KOLLA_INSTALL_METATYPE=rdo'], 'Hostname': 'node2', 'Volumes': {'/var/lib/kolla/config_files/': {}}}, @@ -544,7 +544,7 @@ class TestContainer(base.BaseTestCase): def test_get_container_env(self): fake_env = dict(KOLLA_BASE_DISTRO='ubuntu', - KOLLA_INSTALL_TYPE='binary', + KOLLA_INSTALL_TYPE='source', KOLLA_INSTALL_METATYPE='rdo') self.dw = get_DockerWorker({'name': 'my_container', 'action': 'get_container_env'}) @@ -1212,12 +1212,12 @@ class TestAttrComp(base.BaseTestCase): container_info = {'Config': dict( Env=['KOLLA_CONFIG_STRATEGY=COPY_ALWAYS', 'KOLLA_BASE_DISTRO=ubuntu', - 'KOLLA_INSTALL_TYPE=binary'] + 'KOLLA_INSTALL_TYPE=source'] )} self.dw = get_DockerWorker({ 'environment': dict(KOLLA_CONFIG_STRATEGY='COPY_ALWAYS', KOLLA_BASE_DISTRO='ubuntu', - KOLLA_INSTALL_TYPE='binary')}) + KOLLA_INSTALL_TYPE='source')}) self.assertFalse(self.dw.compare_environment(container_info)) @@ -1225,12 +1225,12 @@ class TestAttrComp(base.BaseTestCase): container_info = {'Config': dict( Env=['KOLLA_CONFIG_STRATEGY=COPY_ALWAYS', 'KOLLA_BASE_DISTRO=ubuntu', - 'KOLLA_INSTALL_TYPE=binary'] + 'KOLLA_INSTALL_TYPE=source'] )} self.dw = get_DockerWorker({ 'environment': dict(KOLLA_CONFIG_STRATEGY='COPY_ALWAYS', KOLLA_BASE_DISTRO='centos', - KOLLA_INSTALL_TYPE='binary')}) + KOLLA_INSTALL_TYPE='source')}) self.assertTrue(self.dw.compare_environment(container_info))