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): ...@@ -105,7 +105,7 @@ def do_info(logger, conf, local):
info = { info = {
'software-url': instance._software_release_url, 'software-url': instance._software_release_url,
'instance-state': instance._requested_state, 'requested-state': instance._requested_state,
'instance-parameters': instance._parameter_dict, 'instance-parameters': instance._parameter_dict,
'connection-parameters': connection_parameter_dict, 'connection-parameters': connection_parameter_dict,
} }
......
...@@ -682,7 +682,7 @@ class TestCliInfo(CliMixin): ...@@ -682,7 +682,7 @@ class TestCliInfo(CliMixin):
if six.PY3: if six.PY3:
expected = { expected = {
"software-url": instance._software_release_url, "software-url": instance._software_release_url,
"instance-state": instance._requested_state, "requested-state": instance._requested_state,
"instance-parameters": instance._parameter_dict, "instance-parameters": instance._parameter_dict,
"connection-parameters": { "connection-parameters": {
"myconnectionparameter": "value1" "myconnectionparameter": "value1"
......
...@@ -1298,7 +1298,7 @@ class TestCliInformation(CliMasterMixin): ...@@ -1298,7 +1298,7 @@ class TestCliInformation(CliMasterMixin):
json.loads(output0), json.loads(output0),
{ {
"software-url": "http://sr0//", "software-url": "http://sr0//",
"instance-state": "busy", "requested-state": "busy",
"instance-parameters": {}, "instance-parameters": {},
"connection-parameters": {}, "connection-parameters": {},
"status": "unsupported", "status": "unsupported",
...@@ -1309,7 +1309,7 @@ class TestCliInformation(CliMasterMixin): ...@@ -1309,7 +1309,7 @@ class TestCliInformation(CliMasterMixin):
json.loads(output1), json.loads(output1),
{ {
"software-url": "http://sr1//", "software-url": "http://sr1//",
"instance-state": "busy", "requested-state": "busy",
"instance-parameters": {"couscous": "hello"}, "instance-parameters": {"couscous": "hello"},
"connection-parameters": {}, "connection-parameters": {},
"status": "unsupported", "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