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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
515bb9c3
Commit
515bb9c3
authored
Dec 17, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_json_rpc_api: rename tests
parent
0440484d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
master/bt5/slapos_json_rpc_api/TestTemplateItem/portal_components/test.erp5.testSlapOSJsonRpc.py
...lateItem/portal_components/test.erp5.testSlapOSJsonRpc.py
+30
-30
No files found.
master/bt5/slapos_json_rpc_api/TestTemplateItem/portal_components/test.erp5.testSlapOSJsonRpc.py
View file @
515bb9c3
...
@@ -163,7 +163,7 @@ class TestSlapOSJsonRpcMixin(SlapOSTestCaseMixin):
...
@@ -163,7 +163,7 @@ class TestSlapOSJsonRpcMixin(SlapOSTestCaseMixin):
self
.
_cleaupREQUEST
()
self
.
_cleaupREQUEST
()
class
TestSlapOSSlapToolComputeNodeAccess
(
TestSlapOSJsonRpcMixin
):
class
TestSlapOSSlapToolComputeNodeAccess
(
TestSlapOSJsonRpcMixin
):
def
test_01_getFullComputerInformationInstanceList
(
self
):
def
test_
ComputeNodeAccess_
01_getFullComputerInformationInstanceList
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
self
.
callUpdateRevisionAndTic
()
self
.
callUpdateRevisionAndTic
()
...
@@ -251,7 +251,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -251,7 +251,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
"portal_type"
:
instance
.
getPortalType
(),
"portal_type"
:
instance
.
getPortalType
(),
},
instance_dict
)
},
instance_dict
)
def
test_01_bis_getFullComputerInformationSoftwareList
(
self
):
def
test_
ComputeNodeAccess_
01_bis_getFullComputerInformationSoftwareList
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
self
.
callUpdateRevisionAndTic
()
self
.
callUpdateRevisionAndTic
()
...
@@ -317,7 +317,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -317,7 +317,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
"status_message"
:
status_dict
.
get
(
"text"
),
"status_message"
:
status_dict
.
get
(
"text"
),
},
software_dict
)
},
software_dict
)
def
test_02_computerBang
(
self
):
def
test_
ComputeNodeAccess_
02_computerBang
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
called_banged_kw
=
""
self
.
called_banged_kw
=
""
...
@@ -345,7 +345,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -345,7 +345,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
finally
:
finally
:
self
.
compute_node
.
__class__
.
reportComputeNodeBang
=
reportComputeNodeBang
self
.
compute_node
.
__class__
.
reportComputeNodeBang
=
reportComputeNodeBang
def
test_03_not_accessed_getSoftwareInstallationStatus
(
self
):
def
test_
ComputeNodeAccess_
03_not_accessed_getSoftwareInstallationStatus
(
self
):
"""
"""
xXXX TODO Cedric Make sure we can create and modifiy when using weird url strings
xXXX TODO Cedric Make sure we can create and modifiy when using weird url strings
"""
"""
...
@@ -381,7 +381,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -381,7 +381,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
self
.
assertEqual
(
expected_dict
,
software_dict
)
self
.
assertEqual
(
expected_dict
,
software_dict
)
def
test_04_destroyedSoftwareRelease_noSoftwareInstallation
(
self
):
def
test_
ComputeNodeAccess_
04_destroyedSoftwareRelease_noSoftwareInstallation
(
self
):
self
.
login
(
self
.
compute_node_user_id
)
self
.
login
(
self
.
compute_node_user_id
)
start_time
=
DateTime
()
start_time
=
DateTime
()
software_release_uri
=
"http://example.org/foo"
software_release_uri
=
"http://example.org/foo"
...
@@ -411,7 +411,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -411,7 +411,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
self
.
assertTrue
(
error_log
.
getCreationDate
()
>=
start_time
)
self
.
assertTrue
(
error_log
.
getCreationDate
()
>=
start_time
)
self
.
assertTrue
(
software_release_uri
in
error_log
.
getTextContent
())
self
.
assertTrue
(
software_release_uri
in
error_log
.
getTextContent
())
def
test_05_destroyedSoftwareRelease_noDestroyRequested
(
self
):
def
test_
ComputeNodeAccess_
05_destroyedSoftwareRelease_noDestroyRequested
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
start_time
=
DateTime
()
start_time
=
DateTime
()
...
@@ -445,7 +445,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -445,7 +445,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
self
.
assertTrue
(
error_log
.
getCreationDate
()
>=
start_time
)
self
.
assertTrue
(
error_log
.
getCreationDate
()
>=
start_time
)
self
.
assertTrue
(
urllib
.
quote
(
software_release_uri
)
in
error_log
.
getTextContent
())
self
.
assertTrue
(
urllib
.
quote
(
software_release_uri
)
in
error_log
.
getTextContent
())
def
test_06_destroyedSoftwareRelease_destroyRequested
(
self
):
def
test_
ComputeNodeAccess_
06_destroyedSoftwareRelease_destroyRequested
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
destroy_requested
=
self
.
destroy_requested_software_installation
destroy_requested
=
self
.
destroy_requested_software_installation
...
@@ -462,7 +462,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -462,7 +462,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
)
)
self
.
assertEqual
(
destroy_requested
.
getValidationState
(),
"invalidated"
)
self
.
assertEqual
(
destroy_requested
.
getValidationState
(),
"invalidated"
)
def
test_07_availableSoftwareRelease
(
self
):
def
test_
ComputeNodeAccess_
07_availableSoftwareRelease
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
callUpdateRevisionAndTic
()
self
.
callUpdateRevisionAndTic
()
...
@@ -497,7 +497,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -497,7 +497,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
}
}
self
.
assertEqual
(
expected_dict
,
software_dict
)
self
.
assertEqual
(
expected_dict
,
software_dict
)
def
test_08_buildingSoftwareRelease
(
self
):
def
test_
ComputeNodeAccess_
08_buildingSoftwareRelease
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
callUpdateRevisionAndTic
()
self
.
callUpdateRevisionAndTic
()
...
@@ -532,7 +532,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -532,7 +532,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
}
}
self
.
assertEqual
(
expected_dict
,
software_dict
)
self
.
assertEqual
(
expected_dict
,
software_dict
)
def
test_09_softwareReleaseError
(
self
):
def
test_
ComputeNodeAccess_
09_softwareReleaseError
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
callUpdateRevisionAndTic
()
self
.
callUpdateRevisionAndTic
()
...
@@ -568,7 +568,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
...
@@ -568,7 +568,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSJsonRpcMixin):
self
.
assertEqual
(
expected_dict
,
software_dict
)
self
.
assertEqual
(
expected_dict
,
software_dict
)
class
TestSlapOSSlapToolInstanceAccess
(
TestSlapOSJsonRpcMixin
):
class
TestSlapOSSlapToolInstanceAccess
(
TestSlapOSJsonRpcMixin
):
def
test_10_getComputerPartitionCertificate
(
self
):
def
test_
InstanceAccess_
10_getComputerPartitionCertificate
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
...
@@ -591,7 +591,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -591,7 +591,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
"reference"
:
self
.
start_requested_software_instance
.
getReference
(),
"reference"
:
self
.
start_requested_software_instance
.
getReference
(),
})
})
def
test_11_getFullComputerInformationWithSharedInstance
(
self
,
with_slave
=
True
):
def
test_
InstanceAccess_
11_getFullComputerInformationWithSharedInstance
(
self
,
with_slave
=
True
):
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
with_slave
)
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
with_slave
)
self
.
callUpdateRevisionAndTic
()
self
.
callUpdateRevisionAndTic
()
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
...
@@ -667,10 +667,10 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -667,10 +667,10 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
"portal_type"
:
instance
.
getPortalType
(),
"portal_type"
:
instance
.
getPortalType
(),
},
instance_dict
)
},
instance_dict
)
def
test_11_bis_getFullComputerInformationNoSharedInstance
(
self
):
def
test_
InstanceAccess_
11_bis_getFullComputerInformationNoSharedInstance
(
self
):
self
.
test_11_getFullComputerInformationWithSharedInstance
(
with_slave
=
False
)
self
.
test_11_getFullComputerInformationWithSharedInstance
(
with_slave
=
False
)
def
test_12_getSharedInstance
(
self
):
def
test_
InstanceAccess_
12_getSharedInstance
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
self
.
callUpdateRevisionAndTic
()
self
.
callUpdateRevisionAndTic
()
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
...
@@ -740,7 +740,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -740,7 +740,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
"portal_type"
:
"Slave Instance"
,
"portal_type"
:
"Slave Instance"
,
},
instance_dict
)
},
instance_dict
)
def
test_13_setConnectionXml_withSlave
(
self
):
def
test_
InstanceAccess_
13_setConnectionXml_withSlave
(
self
):
# XXX CLN No idea how to deal with ascii
# XXX CLN No idea how to deal with ascii
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
self
.
_makeComplexComputeNode
(
self
.
project
,
with_slave
=
True
)
connection_parameters_dict
=
{
connection_parameters_dict
=
{
...
@@ -770,7 +770,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -770,7 +770,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
finally
:
finally
:
self
.
start_requested_slave_instance
.
__class__
.
updateConnection
=
updateConnection
self
.
start_requested_slave_instance
.
__class__
.
updateConnection
=
updateConnection
def
test_14_setConnectionXml
(
self
):
def
test_
InstanceAccess_
14_setConnectionXml
(
self
):
# XXX CLN No idea how to deal with ascii
# XXX CLN No idea how to deal with ascii
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
connection_parameters_dict
=
{
connection_parameters_dict
=
{
...
@@ -800,7 +800,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -800,7 +800,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
finally
:
finally
:
self
.
start_requested_software_instance
.
__class__
.
updateConnection
=
updateConnection
self
.
start_requested_software_instance
.
__class__
.
updateConnection
=
updateConnection
def
test_15_softwareInstanceError
(
self
):
def
test_
InstanceAccess_
15_softwareInstanceError
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
self
.
login
(
instance
.
getUserId
())
self
.
login
(
instance
.
getUserId
())
...
@@ -826,7 +826,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -826,7 +826,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
"#error while instanciating: %s"
%
error_log
"#error while instanciating: %s"
%
error_log
)
)
def
test_16_softwareInstanceError_twice
(
self
):
def
test_
InstanceAccess_
16_softwareInstanceError_twice
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
self
.
login
(
instance
.
getUserId
())
self
.
login
(
instance
.
getUserId
())
...
@@ -873,7 +873,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -873,7 +873,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
"#error while instanciating: %s"
%
error_log
"#error while instanciating: %s"
%
error_log
)
)
def
test_17_softwareInstanceBang
(
self
):
def
test_
InstanceAccess_
17_softwareInstanceBang
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
...
@@ -913,7 +913,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -913,7 +913,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
"#error bang called"
"#error bang called"
)
)
def
test_18_softwareInstanceRename
(
self
):
def
test_
InstanceAccess_
18_softwareInstanceRename
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
new_name
=
'new me'
new_name
=
'new me'
...
@@ -944,7 +944,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -944,7 +944,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
finally
:
finally
:
instance
.
__class__
.
rename
=
rename
instance
.
__class__
.
rename
=
rename
def
test_19_destroyedComputePartition
(
self
):
def
test_
InstanceAccess_
19_destroyedComputePartition
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
login
(
self
.
destroy_requested_software_instance
.
getUserId
())
self
.
login
(
self
.
destroy_requested_software_instance
.
getUserId
())
self
.
callInstancePutToApiAndCheck
({
self
.
callInstancePutToApiAndCheck
({
...
@@ -957,7 +957,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -957,7 +957,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
self
.
assertEqual
(
None
,
self
.
destroy_requested_software_instance
.
getSslKey
())
self
.
assertEqual
(
None
,
self
.
destroy_requested_software_instance
.
getSslKey
())
self
.
assertEqual
(
None
,
self
.
destroy_requested_software_instance
.
getSslCertificate
())
self
.
assertEqual
(
None
,
self
.
destroy_requested_software_instance
.
getSslCertificate
())
def
test_20_request_withSlave
(
self
):
def
test_
InstanceAccess_
20_request_withSlave
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
...
@@ -1004,7 +1004,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -1004,7 +1004,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
finally
:
finally
:
instance
.
__class__
.
requestInstance
=
requestInstance
instance
.
__class__
.
requestInstance
=
requestInstance
def
test_21_request
(
self
):
def
test_
InstanceAccess_
21_request
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
...
@@ -1050,7 +1050,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -1050,7 +1050,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
finally
:
finally
:
instance
.
__class__
.
requestInstance
=
requestInstance
instance
.
__class__
.
requestInstance
=
requestInstance
def
test_22_request_stopped
(
self
):
def
test_
InstanceAccess_
22_request_stopped
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
stop_requested_software_instance
instance
=
self
.
stop_requested_software_instance
...
@@ -1097,7 +1097,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -1097,7 +1097,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
finally
:
finally
:
instance
.
__class__
.
requestInstance
=
requestInstance
instance
.
__class__
.
requestInstance
=
requestInstance
def
test_23_updateInstanceSuccessorList
(
self
):
def
test_
InstanceAccess_
23_updateInstanceSuccessorList
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
...
@@ -1141,7 +1141,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -1141,7 +1141,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
self
.
assertSameSet
([
'Instance1'
],
self
.
assertSameSet
([
'Instance1'
],
self
.
start_requested_software_instance
.
getSuccessorTitleList
())
self
.
start_requested_software_instance
.
getSuccessorTitleList
())
def
test_24_updateInstanceSuccessorList_one_child
(
self
):
def
test_
InstanceAccess_
24_updateInstanceSuccessorList_one_child
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
...
@@ -1172,7 +1172,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -1172,7 +1172,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
self
.
assertEqual
([],
self
.
assertEqual
([],
self
.
start_requested_software_instance
.
getSuccessorTitleList
())
self
.
start_requested_software_instance
.
getSuccessorTitleList
())
def
test_25_updateInstanceSuccessorList_no_child
(
self
):
def
test_
InstanceAccess_
25_updateInstanceSuccessorList_no_child
(
self
):
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
self
.
login
(
self
.
start_requested_software_instance
.
getUserId
())
...
@@ -1199,7 +1199,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -1199,7 +1199,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
self
.
assertEqual
([],
self
.
assertEqual
([],
self
.
start_requested_software_instance
.
getSuccessorTitleList
())
self
.
start_requested_software_instance
.
getSuccessorTitleList
())
def
test_26_stoppedComputePartition
(
self
):
def
test_
InstanceAccess_
26_stoppedComputePartition
(
self
):
# XXX Should reported_state added to Instance returned json?
# XXX Should reported_state added to Instance returned json?
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
...
@@ -1223,7 +1223,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
...
@@ -1223,7 +1223,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSJsonRpcMixin):
"started"
"started"
)
)
def
test_27_startedComputePartition
(
self
):
def
test_
InstanceAccess_
27_startedComputePartition
(
self
):
# XXX Should reported_state added to Instance returned json?
# XXX Should reported_state added to Instance returned json?
self
.
_makeComplexComputeNode
(
self
.
project
)
self
.
_makeComplexComputeNode
(
self
.
project
)
instance
=
self
.
start_requested_software_instance
instance
=
self
.
start_requested_software_instance
...
...
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