@@ -138,7 +138,7 @@ def test_safe_print_status(self):
138
138
with patch .object (client , 'iter_model_clients' ,
139
139
return_value = [client ]) as imc_mock :
140
140
safe_print_status (client )
141
- mock .assert_called_once_with ('show- status' , ('--format' , 'yaml' ))
141
+ mock .assert_called_once_with ('status' , ('--format' , 'yaml' ))
142
142
imc_mock .assert_called_once_with ()
143
143
144
144
def test_safe_print_status_ignores_soft_deadline (self ):
@@ -855,7 +855,7 @@ def test_deploy_dummy_stack(self):
855
855
def output (* args , ** kwargs ):
856
856
token_file = '/var/run/dummy-sink/token'
857
857
output = {
858
- ('show- status' , '--format' , 'yaml' ): status ,
858
+ ('status' , '--format' , 'yaml' ): status ,
859
859
('ssh' , 'dummy-sink/0' , 'cat' , token_file ): 'fake-token' ,
860
860
}
861
861
return output [args ]
@@ -882,7 +882,7 @@ def output(*args, **kwargs):
882
882
self .assertEqual (cc_mock .call_count , 4 )
883
883
self .assertEqual (
884
884
[
885
- call ('show- status' , '--format' , 'yaml' , controller = False )
885
+ call ('status' , '--format' , 'yaml' , controller = False )
886
886
],
887
887
gjo_mock .call_args_list )
888
888
@@ -1041,10 +1041,10 @@ class TestTestUpgrade(FakeHomeTestCase):
1041
1041
'juju' , '--show-log' , 'exec' , '--format' , 'json' ,
1042
1042
'--application' , 'dummy-source,dummy-sink' , 'uname' )
1043
1043
STATUS = (
1044
- 'juju' , '--show-log' , 'show- status' , '-m' , 'foo:foo' ,
1044
+ 'juju' , '--show-log' , 'status' , '-m' , 'foo:foo' ,
1045
1045
'--format' , 'yaml' )
1046
1046
CONTROLLER_STATUS = (
1047
- 'juju' , '--show-log' , 'show- status' , '-m' , 'foo:controller' ,
1047
+ 'juju' , '--show-log' , 'status' , '-m' , 'foo:controller' ,
1048
1048
'--format' , 'yaml' )
1049
1049
GET_ENV = ('juju' , '--show-log' , 'model-config' , '-m' , 'foo:foo' ,
1050
1050
'agent-metadata-url' )
@@ -1106,7 +1106,7 @@ def test_assess_upgrade(self):
1106
1106
'juju' , '--show-log' , 'upgrade-juju' , '-m' , 'foo:controller' ,
1107
1107
'--agent-version' , '2.0-rc2' ), 0 )
1108
1108
assert_juju_call (self , cc_mock , new_client , (
1109
- 'juju' , '--show-log' , 'show- status' , '-m' , 'foo:controller' ,
1109
+ 'juju' , '--show-log' , 'status' , '-m' , 'foo:controller' ,
1110
1110
'--format' , 'yaml' ), 1 )
1111
1111
assert_juju_call (self , cc_mock , new_client , (
1112
1112
'juju' , '--show-log' , 'list-models' , '-c' , 'foo' ), 2 )
@@ -2032,10 +2032,10 @@ def test_bootstrap_context(self):
2032
2032
assert_juju_call (self , cc_mock , client , (
2033
2033
'path' , '--show-log' , 'list-models' , '-c' , 'bar' ), 2 )
2034
2034
assert_juju_call (self , cc_mock , client , (
2035
- 'path' , '--show-log' , 'show- status' , '-m' , 'bar:controller' ,
2035
+ 'path' , '--show-log' , 'status' , '-m' , 'bar:controller' ,
2036
2036
'--format' , 'yaml' ), 3 )
2037
2037
assert_juju_call (self , cc_mock , client , (
2038
- 'path' , '--show-log' , 'show- status' , '-m' , 'bar:bar' ,
2038
+ 'path' , '--show-log' , 'status' , '-m' , 'bar:bar' ,
2039
2039
'--format' , 'yaml' ), 4 )
2040
2040
2041
2041
def test_keep_env (self ):
@@ -2056,10 +2056,10 @@ def test_keep_env(self):
2056
2056
assert_juju_call (self , cc_mock , client , (
2057
2057
'path' , '--show-log' , 'list-models' , '-c' , 'bar' ), 2 )
2058
2058
assert_juju_call (self , cc_mock , client , (
2059
- 'path' , '--show-log' , 'show- status' , '-m' , 'bar:controller' ,
2059
+ 'path' , '--show-log' , 'status' , '-m' , 'bar:controller' ,
2060
2060
'--format' , 'yaml' ), 3 )
2061
2061
assert_juju_call (self , cc_mock , client , (
2062
- 'path' , '--show-log' , 'show- status' , '-m' , 'bar:bar' ,
2062
+ 'path' , '--show-log' , 'status' , '-m' , 'bar:bar' ,
2063
2063
'--format' , 'yaml' ), 4 )
2064
2064
2065
2065
def test_upload_tools (self ):
@@ -2148,7 +2148,7 @@ def test_region(self):
2148
2148
self .assertEqual ('steve' , client .env .get_region ())
2149
2149
2150
2150
def test_status_error_raises (self ):
2151
- """An error on final show- status propagates so an assess will fail."""
2151
+ """An error on final status propagates so an assess will fail."""
2152
2152
error = subprocess .CalledProcessError (1 , ['juju' ], '' )
2153
2153
effects = [None , None , None , None , None , None , error ]
2154
2154
cc_mock = self .addContext (patch ('subprocess.check_call' , autospec = True ,
@@ -2172,10 +2172,10 @@ def test_status_error_raises(self):
2172
2172
assert_juju_call (self , cc_mock , client , (
2173
2173
'path' , '--show-log' , 'list-models' , '-c' , 'bar' ), 2 )
2174
2174
assert_juju_call (self , cc_mock , client , (
2175
- 'path' , '--show-log' , 'show- status' , '-m' , 'bar:controller' ,
2175
+ 'path' , '--show-log' , 'status' , '-m' , 'bar:controller' ,
2176
2176
'--format' , 'yaml' ), 3 )
2177
2177
assert_juju_call (self , cc_mock , client , (
2178
- 'path' , '--show-log' , 'show- status' , '-m' , 'bar:bar' ,
2178
+ 'path' , '--show-log' , 'status' , '-m' , 'bar:bar' ,
2179
2179
'--format' , 'yaml' ), 4 )
2180
2180
2181
2181
0 commit comments