diff options
author | Andrew Butcher <abutcher@redhat.com> | 2017-02-27 13:30:37 -0500 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2017-02-27 14:51:39 -0500 |
commit | 3c44e4293825b8f3aafa80bb60599476de3be57d (patch) | |
tree | 2957ff59e31bb7206033f315071cdb7e0fdecbea /roles/lib_openshift/src/test/unit/test_oc_route.py | |
parent | 5a7e51d063ac661811c26b72232a58c65615b8f6 (diff) | |
download | openshift-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_route.py')
-rwxr-xr-x | roles/lib_openshift/src/test/unit/test_oc_route.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/lib_openshift/src/test/unit/test_oc_route.py b/roles/lib_openshift/src/test/unit/test_oc_route.py index ea94bfabd..e0f6d2f3c 100755 --- a/roles/lib_openshift/src/test/unit/test_oc_route.py +++ b/roles/lib_openshift/src/test/unit/test_oc_route.py @@ -135,7 +135,7 @@ class OCRouteTest(unittest.TestCase): # Making sure our mock was called as we expected mock_cmd.assert_has_calls([ - mock.call(['oc', '-n', 'default', 'get', 'route', 'test', '-o', 'json'], None), + mock.call(['oc', 'get', 'route', 'test', '-o', 'json', '-n', 'default'], None), ]) @mock.patch('oc_route.locate_oc_binary') @@ -265,9 +265,9 @@ metadata: # Making sure our mock was called as we expected mock_cmd.assert_has_calls([ - mock.call(['oc', '-n', 'default', 'get', 'route', 'test', '-o', 'json'], None), - mock.call(['oc', '-n', 'default', 'create', '-f', mock.ANY], None), - mock.call(['oc', '-n', 'default', 'get', 'route', 'test', '-o', 'json'], None), + mock.call(['oc', 'get', 'route', 'test', '-o', 'json', '-n', 'default'], None), + mock.call(['oc', 'create', '-f', mock.ANY, '-n', 'default'], None), + mock.call(['oc', 'get', 'route', 'test', '-o', 'json', '-n', 'default'], None), ]) @unittest.skipIf(six.PY3, 'py2 test only') |