summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-02-27 13:30:37 -0500
committerAndrew Butcher <abutcher@redhat.com>2017-02-27 14:51:39 -0500
commit3c44e4293825b8f3aafa80bb60599476de3be57d (patch)
tree2957ff59e31bb7206033f315071cdb7e0fdecbea /roles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py
parent5a7e51d063ac661811c26b72232a58c65615b8f6 (diff)
downloadopenshift-3c44e4293825b8f3aafa80bb60599476de3be57d.tar.gz
openshift-3c44e4293825b8f3aafa80bb60599476de3be57d.tar.bz2
openshift-3c44e4293825b8f3aafa80bb60599476de3be57d.tar.xz
openshift-3c44e4293825b8f3aafa80bb60599476de3be57d.zip
[oc_obj] Move namespace argument to end of command.
Diffstat (limited to 'roles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py')
-rwxr-xr-xroles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/roles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py b/roles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py
index ab8ccd18c..d78349e34 100755
--- a/roles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py
+++ b/roles/lib_openshift/src/test/unit/test_oc_serviceaccount_secret.py
@@ -181,10 +181,10 @@ secrets:
# Making sure our mocks were called as we expected
mock_cmd.assert_has_calls([
- mock.call(['oc', '-n', 'default', 'get', 'sa', 'builder', '-o', 'json'], None),
- mock.call(['oc', '-n', 'default', 'get', 'sa', 'builder', '-o', 'json'], None),
- mock.call(['oc', '-n', 'default', 'replace', '-f', mock.ANY], None),
- mock.call(['oc', '-n', 'default', 'get', 'sa', 'builder', '-o', 'json'], None)
+ mock.call(['oc', 'get', 'sa', 'builder', '-o', 'json', '-n', 'default'], None),
+ mock.call(['oc', 'get', 'sa', 'builder', '-o', 'json', '-n', 'default'], None),
+ mock.call(['oc', 'replace', '-f', mock.ANY, '-n', 'default'], None),
+ mock.call(['oc', 'get', 'sa', 'builder', '-o', 'json', '-n', 'default'], None)
])
yaml_file = builder_pyyaml_file
@@ -304,9 +304,9 @@ secrets:
# Making sure our mocks were called as we expected
mock_cmd.assert_has_calls([
- mock.call(['oc', '-n', 'default', 'get', 'sa', 'builder', '-o', 'json'], None),
- mock.call(['oc', '-n', 'default', 'get', 'sa', 'builder', '-o', 'json'], None),
- mock.call(['oc', '-n', 'default', 'replace', '-f', mock.ANY], None),
+ mock.call(['oc', 'get', 'sa', 'builder', '-o', 'json', '-n', 'default'], None),
+ mock.call(['oc', 'get', 'sa', 'builder', '-o', 'json', '-n', 'default'], None),
+ mock.call(['oc', 'replace', '-f', mock.ANY, '-n', 'default'], None),
])
yaml_file = builder_pyyaml_file