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
Lu Xu
slapos.core
Commits
48dfdc40
Commit
48dfdc40
authored
Jun 07, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test calls bang multiple time.
parent
068b7d66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
master/product/Vifib/tests/testVifibSlapBang.py
master/product/Vifib/tests/testVifibSlapBang.py
+2
-18
No files found.
master/product/Vifib/tests/testVifibSlapBang.py
View file @
48dfdc40
...
@@ -66,19 +66,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
...
@@ -66,19 +66,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
sequence
[
'computer_reference'
],
sequence
[
'computer_reference'
],
sequence
[
'computer_partition_reference'
])
sequence
[
'computer_partition_reference'
])
slap_computer_partition
.
bang
(
self
.
bang_message
)
slap_computer_partition
.
bang
(
self
.
bang_message
)
sequence
.
edit
(
expected_bang_count
=
1
)
sequence
.
edit
(
expected_bang_count
=
sequence
.
get
(
'expected_bang_count'
,
0
)
+
1
)
def
stepProcessSoftwareInstanceList
(
self
,
sequence
,
**
kw
):
S0
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'S0_uid'
])
S0
.
startComputerPartition
()
S1
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'S1_uid'
])
S1
.
stopComputerPartition
()
S2
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'S2_uid'
])
S2
.
stopComputerPartition
()
S3
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'S3_uid'
])
S3
.
stopComputerPartition
()
S4
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'S4_uid'
])
S4
.
stopComputerPartition
()
def
stepSetCurrentSoftwareInstanceS1
(
self
,
sequence
,
**
kw
):
def
stepSetCurrentSoftwareInstanceS1
(
self
,
sequence
,
**
kw
):
S1
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'S1_uid'
])
S1
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'S1_uid'
])
...
@@ -166,8 +154,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
...
@@ -166,8 +154,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
SlapLogout
SlapLogout
LoginDefaultUser
LoginDefaultUser
ProcessSoftwareInstanceList
Tic
SetCurrentSoftwareInstanceS1
SetCurrentSoftwareInstanceS1
Logout
Logout
...
@@ -189,8 +175,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
...
@@ -189,8 +175,6 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
SlapLogout
SlapLogout
LoginDefaultUser
LoginDefaultUser
ProcessSoftwareInstanceList
Tic
SetCurrentSoftwareInstanceS3
SetCurrentSoftwareInstanceS3
Logout
Logout
...
@@ -224,7 +208,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
...
@@ -224,7 +208,7 @@ class TestVifibSlapBang(TestVifibSlapWebServiceMixin):
slap_computer
=
self
.
slap
.
registerComputer
(
slap_computer
=
self
.
slap
.
registerComputer
(
sequence
[
'computer_reference'
])
sequence
[
'computer_reference'
])
slap_computer
.
bang
(
self
.
bang_message
)
slap_computer
.
bang
(
self
.
bang_message
)
sequence
.
edit
(
expected_bang_count
=
5
)
sequence
.
edit
(
expected_bang_count
=
sequence
.
get
(
'expected_bang_count'
,
0
)
+
5
)
def
stepCheckComputerBangMessage
(
self
,
sequence
,
**
kw
):
def
stepCheckComputerBangMessage
(
self
,
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