Fix broken unit tests

This commit is contained in:
Mark Goddard 2017-05-30 13:27:57 +01:00
parent 253ed034f0
commit a9e84f4a98
2 changed files with 3 additions and 4 deletions

View File

@ -217,7 +217,7 @@ class TestCase(unittest.TestCase):
"-e", "@/etc/kayobe/vars-file2.yaml",
"-e", "ev_name1=ev_value1",
"-e", "ev_name2=ev_value2",
"--limit", "group1:host1&group2:host2",
"--limit", "group1:host1:&group2:host2",
"--tags", "tag1,tag2,tag3,tag4",
"playbook1.yml",
"playbook2.yml",

View File

@ -86,7 +86,6 @@ class TestCase(unittest.TestCase):
expected_cmd = [
"source", "ansible/kolla-venv/bin/activate", "&&",
"kolla-ansible", "command",
"--ask-vault-pass",
"--inventory", "/path/to/inventory",
"--configdir", "/path/to/config",
"--passwords", "/path/to/config/passwords.yml",
@ -110,7 +109,7 @@ class TestCase(unittest.TestCase):
expected_cmd = [
"source", "ansible/kolla-venv/bin/activate", "&&",
"kolla-ansible", "command",
"--vault-password-file", "/path/to/vault/pw",
"--key", "/path/to/vault/pw",
"--inventory", "/etc/kolla/inventory/overcloud",
]
expected_cmd = " ".join(expected_cmd)
@ -133,7 +132,7 @@ class TestCase(unittest.TestCase):
expected_cmd = [
"source", "ansible/kolla-venv/bin/activate", "&&",
"kolla-ansible", "command",
"--vault-password-file", "/path/to/kayobe-vault-password-helper",
"--key", "/path/to/kayobe-vault-password-helper",
"--inventory", "/etc/kolla/inventory/overcloud",
]
expected_cmd = " ".join(expected_cmd)