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
513bb921
Commit
513bb921
authored
Feb 02, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: stop using _simulateScript
parent
5f948c36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudAlarm.py
...eItem/portal_components/test.erp5.testSlapOSCloudAlarm.py
+3
-2
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudAlarm.py
View file @
513bb921
...
@@ -480,6 +480,7 @@ class TestSlapOSComputeNode_checkAndUpdateCapacityScope(SlapOSTestCaseMixin):
...
@@ -480,6 +480,7 @@ class TestSlapOSComputeNode_checkAndUpdateCapacityScope(SlapOSTestCaseMixin):
self
.
assertEqual
(
"Compute Node reported an error"
,
self
.
assertEqual
(
"Compute Node reported an error"
,
self
.
compute_node
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
self
.
compute_node
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
])
<<<<<<<
HEAD
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
SlapOSTestCaseMixin
.
afterSetUp
(
self
)
SlapOSTestCaseMixin
.
afterSetUp
(
self
)
self
.
compute_node
=
self
.
portal
.
compute_node_module
.
template_compute_node
\
self
.
compute_node
=
self
.
portal
.
compute_node_module
.
template_compute_node
\
...
@@ -595,7 +596,7 @@ class TestSlapOSGarbageCollectStoppedRootTreeAlarm(SlapOSTestCaseMixin):
...
@@ -595,7 +596,7 @@ class TestSlapOSGarbageCollectStoppedRootTreeAlarm(SlapOSTestCaseMixin):
self
.
assertEqual
(
'start_requested'
,
instance
.
getSlapState
())
self
.
assertEqual
(
'start_requested'
,
instance
.
getSlapState
())
def
test_alarm
(
self
):
def
test_alarm
(
self
):
instance
=
self
.
createInstance
()
instance
=
self
.
createInstance
(
self
.
project
)
self
.
_test_alarm
(
self
.
_test_alarm
(
self
.
portal
.
portal_alarms
.
slapos_stop_collect_instance
,
self
.
portal
.
portal_alarms
.
slapos_stop_collect_instance
,
instance
,
instance
,
...
@@ -829,7 +830,7 @@ class TestSlapOSGarbageCollectNonAllocatedRootTreeAlarm(SlapOSTestCaseMixin):
...
@@ -829,7 +830,7 @@ class TestSlapOSGarbageCollectNonAllocatedRootTreeAlarm(SlapOSTestCaseMixin):
self
.
assertEqual
(
'archived'
,
instance_tree
.
getValidationState
())
self
.
assertEqual
(
'archived'
,
instance_tree
.
getValidationState
())
def
test_alarm
(
self
):
def
test_alarm
(
self
):
instance
=
self
.
createInstance
()
instance
=
self
.
createInstance
(
self
.
project
)
self
.
_test_alarm
(
self
.
_test_alarm
(
self
.
portal
.
portal_alarms
.
slapos_garbage_collect_non_allocated_root_tree
,
self
.
portal
.
portal_alarms
.
slapos_garbage_collect_non_allocated_root_tree
,
instance
,
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