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
Titouan Soulard
slapos.core
Commits
64d94430
Commit
64d94430
authored
Jun 22, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: test: no need to manually call alarms
Interaction workflow will trigger them
parent
8527540e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
...omponents/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
+2
-9
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
View file @
64d94430
...
...
@@ -292,8 +292,6 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
finally
:
setSecurityManager
(
sm
)
self
.
tic
()
self
.
stepCallSlaposFreeComputePartitionAlarm
()
self
.
tic
()
free_partition_id_list
=
[]
for
partition
in
compute_node
.
contentValues
(
portal_type
=
'Compute Partition'
):
if
partition
.
getReference
()
in
destroyed_partition_id_list
\
...
...
@@ -371,6 +369,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
instance_title
,
software_release
,
software_type
,
server
,
project_reference
):
self
.
tic
()
self
.
login
(
person_user_id
)
self
.
personRequestInstanceNotReady
(
software_release
=
software_release
,
...
...
@@ -380,7 +379,6 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
project_reference
=
project_reference
)
self
.
stepCallSlaposAllocateInstanceAlarm
()
self
.
tic
()
self
.
login
(
person_user_id
)
...
...
@@ -456,9 +454,6 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
self
.
assertEqual
(
408
,
status
)
self
.
tic
()
self
.
stepCallSlaposAllocateInstanceAlarm
()
self
.
tic
()
# now instantiate it on compute_node and set some nice connection dict
self
.
simulateSlapgridCP
(
server
)
...
...
@@ -501,7 +496,6 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
)
self
.
checkServiceSubscriptionRequest
(
instance_tree
)
self
.
stepCallSlaposAllocateInstanceAlarm
()
self
.
tic
()
self
.
login
(
person_user_id
)
...
...
@@ -602,6 +596,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
partition_reference
=
instance_title
,
project_reference
=
project_reference
)
self
.
tic
()
# XXX search only for this user
instance_tree
=
self
.
portal
.
portal_catalog
.
getResultValue
(
...
...
@@ -610,8 +605,6 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
follow_up__reference
=
project_reference
)
self
.
checkServiceSubscriptionRequest
(
instance_tree
)
self
.
stepCallSlaposAllocateInstanceAlarm
()
self
.
tic
()
self
.
login
(
person_user_id
)
...
...
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