Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.core
Commits
843ec6e4
Commit
843ec6e4
authored
Mar 16, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cli/info: Rename instance-state as requested-state
Adapt tests accordingly
parent
0fe48bb0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
slapos/cli/info.py
slapos/cli/info.py
+1
-1
slapos/tests/test_cli.py
slapos/tests/test_cli.py
+1
-1
slapos/tests/test_slapproxy.py
slapos/tests/test_slapproxy.py
+2
-2
No files found.
slapos/cli/info.py
View file @
843ec6e4
...
@@ -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
,
}
}
...
...
slapos/tests/test_cli.py
View file @
843ec6e4
...
@@ -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"
...
...
slapos/tests/test_slapproxy.py
View file @
843ec6e4
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment