diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2017-02-06 17:12:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 17:12:24 -0500 |
commit | e0a074962abfdaadd177e90c56d186c13d814609 (patch) | |
tree | 6b47b62fab751b4007c6627bedc6b362bd1f468b /roles/lib_openshift/src/test/unit/oc_serviceaccount.py | |
parent | 41ff6013a19c77fdc35adcf58ad523069f20ee2f (diff) | |
parent | d508ec24877a743c6d79dac0574c859e14d40218 (diff) | |
download | openshift-e0a074962abfdaadd177e90c56d186c13d814609.tar.gz openshift-e0a074962abfdaadd177e90c56d186c13d814609.tar.bz2 openshift-e0a074962abfdaadd177e90c56d186c13d814609.tar.xz openshift-e0a074962abfdaadd177e90c56d186c13d814609.zip |
Merge pull request #3264 from twiest/oc_serviceaccount_secret
Added oc_serviceaccount_secret to lib_openshift.
Diffstat (limited to 'roles/lib_openshift/src/test/unit/oc_serviceaccount.py')
-rwxr-xr-x | roles/lib_openshift/src/test/unit/oc_serviceaccount.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/lib_openshift/src/test/unit/oc_serviceaccount.py b/roles/lib_openshift/src/test/unit/oc_serviceaccount.py index faf0bfeb5..dab751bb9 100755 --- a/roles/lib_openshift/src/test/unit/oc_serviceaccount.py +++ b/roles/lib_openshift/src/test/unit/oc_serviceaccount.py @@ -100,9 +100,9 @@ class OCServiceAccountTest(unittest.TestCase): # Making sure our mock was called as we expected mock_cmd.assert_has_calls([ - mock.call(['/usr/bin/oc', '-n', 'default', 'get', 'sa', 'testserviceaccountname', '-o', 'json'], None), - mock.call(['/usr/bin/oc', '-n', 'default', 'create', '-f', '/tmp/testserviceaccountname'], None), - mock.call(['/usr/bin/oc', '-n', 'default', 'get', 'sa', 'testserviceaccountname', '-o', 'json'], None), + mock.call(['oc', '-n', 'default', 'get', 'sa', 'testserviceaccountname', '-o', 'json'], None), + mock.call(['oc', '-n', 'default', 'create', '-f', mock.ANY], None), + mock.call(['oc', '-n', 'default', 'get', 'sa', 'testserviceaccountname', '-o', 'json'], None), ]) def tearDown(self): |