Commit 843ec6e4 authored by Xavier Thompson's avatar Xavier Thompson

cli/info: Rename instance-state as requested-state

Adapt tests accordingly
parent 0fe48bb0
......@@ -105,7 +105,7 @@ def do_info(logger, conf, local):
info = {
'software-url': instance._software_release_url,
'instance-state': instance._requested_state,
'requested-state': instance._requested_state,
'instance-parameters': instance._parameter_dict,
'connection-parameters': connection_parameter_dict,
}
......
......@@ -682,7 +682,7 @@ class TestCliInfo(CliMixin):
if six.PY3:
expected = {
"software-url": instance._software_release_url,
"instance-state": instance._requested_state,
"requested-state": instance._requested_state,
"instance-parameters": instance._parameter_dict,
"connection-parameters": {
"myconnectionparameter": "value1"
......
......@@ -1298,7 +1298,7 @@ class TestCliInformation(CliMasterMixin):
json.loads(output0),
{
"software-url": "http://sr0//",
"instance-state": "busy",
"requested-state": "busy",
"instance-parameters": {},
"connection-parameters": {},
"status": "unsupported",
......@@ -1309,7 +1309,7 @@ class TestCliInformation(CliMasterMixin):
json.loads(output1),
{
"software-url": "http://sr1//",
"instance-state": "busy",
"requested-state": "busy",
"instance-parameters": {"couscous": "hello"},
"connection-parameters": {},
"status": "unsupported",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment