From ae4135f149b569a2e650cc77dfe0e566485d12fd Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 9 Jul 2018 11:49:45 -0400 Subject: [PATCH] add tests --- awx/main/tests/unit/test_tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/unit/test_tasks.py b/awx/main/tests/unit/test_tasks.py index 05eb6393d1..830c3577fd 100644 --- a/awx/main/tests/unit/test_tasks.py +++ b/awx/main/tests/unit/test_tasks.py @@ -2066,7 +2066,7 @@ class TestInventoryUpdateCredentials(TestJobExecution): return cred self.instance.get_cloud_credential = get_cred - self.instance.source_vars = '{"satellite6_group_patterns": "[a,b,c]", "satellite6_group_prefix": "hey_"}' + self.instance.source_vars = '{"satellite6_group_patterns": "[a,b,c]", "satellite6_group_prefix": "hey_", "satellite6_want_hostcollections": True}' def run_pexpect_side_effect(*args, **kwargs): args, cwd, env, stdout = args @@ -2077,6 +2077,7 @@ class TestInventoryUpdateCredentials(TestJobExecution): assert config.get('foreman', 'password') == 'secret' assert config.get('ansible', 'group_patterns') == '[a,b,c]' assert config.get('ansible', 'group_prefix') == 'hey_' + assert config.get('ansible', 'want_hostcollections') == 'True' return ['successful', 0] self.run_pexpect.side_effect = run_pexpect_side_effect