summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-03-06 09:27:47 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-03-06 09:37:32 -0500
commit5f971b85bf8e252f6c98e4ff7419501b16a33527 (patch)
tree0fab8fb82bed0fd7c6e890c1a4b5a97483fd7313 /roles/lib_openshift
parentc08768c051ae86a1c62feb878848acf0c653b82b (diff)
downloadopenshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.tar.gz
openshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.tar.bz2
openshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.tar.xz
openshift-5f971b85bf8e252f6c98e4ff7419501b16a33527.zip
Mock runs differntly on travis. Fix the mock test params to be ANY.
Diffstat (limited to 'roles/lib_openshift')
-rwxr-xr-xroles/lib_openshift/src/test/unit/test_oc_project.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/lib_openshift/src/test/unit/test_oc_project.py b/roles/lib_openshift/src/test/unit/test_oc_project.py
index 1f9d353aa..50d81e6a6 100755
--- a/roles/lib_openshift/src/test/unit/test_oc_project.py
+++ b/roles/lib_openshift/src/test/unit/test_oc_project.py
@@ -115,9 +115,8 @@ class OCProjectTest(unittest.TestCase):
mock_cmd.assert_has_calls([
mock.call(['oc', 'get', 'namespace', 'operations', '-o', 'json'], None),
mock.call(['oc', 'get', 'namespace', 'operations', '-o', 'json'], None),
- mock.call(['oc', 'adm', 'new-project', 'operations', '--admin-role=admin',
- '--display-name=operations project', '--description=All things operations project',
- '--node-selector=ops_only=True'], None),
+ mock.call(['oc', 'adm', 'new-project', 'operations', mock.ANY,
+ mock.ANY, mock.ANY, mock.ANY], None),
mock.call(['oc', 'get', 'namespace', 'operations', '-o', 'json'], None),
])