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
Léo-Paul Géneau
slapos.core
Commits
b54fd17d
Commit
b54fd17d
authored
Oct 02, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always store requested_slap_computer_partition.
parent
59d43eb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+12
-6
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
b54fd17d
...
...
@@ -314,13 +314,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
partition_parameter_kw
=
sequence
.
get
(
'requested_parameter_dict'
,
{}),
filter_kw
=
sequence
.
get
(
'requested_filter_dict'
,
{}),
state
=
sequence
.
get
(
'requested_state'
))
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
)
try
:
requested_slap_computer_partition
.
getId
()
except
slap
.
ResourceNotReady
:
pass
sequence
.
edit
(
requested_computer_partition_reference
=
None
)
else
:
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
,
requested_computer_partition_reference
=
\
requested_slap_computer_partition
.
getId
())
...
...
@@ -2000,13 +2002,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
# tic as request is done on slap level library
self
.
stepTic
()
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
)
try
:
requested_slap_computer_partition
.
getId
()
except
slap
.
ResourceNotReady
:
pass
sequence
.
edit
(
requested_computer_partition_reference
=
None
)
else
:
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
,
requested_computer_partition_reference
=
\
requested_slap_computer_partition
.
getId
())
...
...
@@ -2074,13 +2078,15 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
requested_slap_computer_partition
=
slap_computer_partition
.
request
(
**
kw
)
self
.
stepTic
()
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
)
try
:
requested_slap_computer_partition
.
getId
()
except
slap
.
ResourceNotReady
:
pass
sequence
.
edit
(
requested_computer_partition_reference
=
None
)
else
:
sequence
.
edit
(
requested_slap_computer_partition
=
requested_slap_computer_partition
,
requested_computer_partition_reference
=
\
requested_slap_computer_partition
.
getId
())
...
...
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