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
c357f3af
Commit
c357f3af
authored
May 16, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use request to start and stop.
parent
6c78e231
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
master/product/Vifib/tests/testVifibSlapAllocationScope.py
master/product/Vifib/tests/testVifibSlapAllocationScope.py
+0
-6
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+11
-2
No files found.
master/product/Vifib/tests/testVifibSlapAllocationScope.py
View file @
c357f3af
...
@@ -759,12 +759,6 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin):
...
@@ -759,12 +759,6 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
def
stepSetSequenceSoftwareInstanceStateStopped
(
self
,
sequence
,
**
kw
):
sequence
[
'software_instance_state'
]
=
'stopped'
def
stepSetSequenceSoftwareInstanceStateStarted
(
self
,
sequence
,
**
kw
):
sequence
[
'software_instance_state'
]
=
'started'
def
test_start_computer_partition_allocation_scope_close
(
self
):
def
test_start_computer_partition_allocation_scope_close
(
self
):
"""Check that it is possible to request stop of computer partition even
"""Check that it is possible to request stop of computer partition even
if computer is close"""
if computer is close"""
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
c357f3af
...
@@ -1085,6 +1085,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1085,6 +1085,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
SlapLogout
SlapLogout
LoginTestVifibCustomer
LoginTestVifibCustomer
SetSoftwareTitleRandom
PersonRequestSoftwareInstance
PersonRequestSoftwareInstance
Tic
Tic
Logout
Logout
...
@@ -1169,7 +1170,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1169,7 +1170,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_start_requested_computer_partition_sequence_string
=
\
prepare_start_requested_computer_partition_sequence_string
=
\
prepare_installed_computer_partition_sequence_string
+
'
\
prepare_installed_computer_partition_sequence_string
+
'
\
LoginTestVifibCustomer
\
LoginTestVifibCustomer
\
RequestSoftwareInstanceStart
\
SetSequenceSoftwareInstanceStateStarted
\
PersonRequestSoftwareInstance
\
Tic
\
Tic
\
Logout
\
Logout
\
LoginDefaultUser
\
LoginDefaultUser
\
...
@@ -1191,7 +1193,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1191,7 +1193,8 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_stop_requested_computer_partition_sequence_string
=
\
prepare_stop_requested_computer_partition_sequence_string
=
\
prepare_started_computer_partition_sequence_string
+
'
\
prepare_started_computer_partition_sequence_string
+
'
\
LoginTestVifibCustomer
\
LoginTestVifibCustomer
\
RequestSoftwareInstanceStop
\
SetSequenceSoftwareInstanceStateStopped
\
PersonRequestSoftwareInstance
\
Tic
\
Tic
\
Logout
\
Logout
\
\
\
...
@@ -1476,6 +1479,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1476,6 +1479,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
# Steps
# Steps
########################################
########################################
def
stepSetSequenceSoftwareInstanceStateStopped
(
self
,
sequence
,
**
kw
):
sequence
[
'software_instance_state'
]
=
'stopped'
def
stepSetSequenceSoftwareInstanceStateStarted
(
self
,
sequence
,
**
kw
):
sequence
[
'software_instance_state'
]
=
'started'
def
stepCheckComputerTradeConditionDestinationSectionListEmpty
(
self
,
def
stepCheckComputerTradeConditionDestinationSectionListEmpty
(
self
,
sequence
,
**
kw
):
sequence
,
**
kw
):
computer
=
self
.
portal
.
portal_catalog
.
getResultValue
(
computer
=
self
.
portal
.
portal_catalog
.
getResultValue
(
...
...
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