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
Jérome Perrin
slapos.core
Commits
95c7d2f0
Commit
95c7d2f0
authored
Oct 12, 2011
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test now uses an explicit sequence parameter for software_type
parent
d3047fab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+12
-2
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
95c7d2f0
...
...
@@ -1368,34 +1368,44 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def
stepSelectYetAnotherRequestedReference
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'yet_another_requested_reference'
)
sequence
.
edit
(
requested_software_type
=
'yet_another_requested_software_type'
)
def
stepSelectAnotherRequestedReference
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'another_requested_reference'
)
sequence
.
edit
(
requested_software_type
=
'another_requested_software_type'
)
def
stepSelectRequestedReference
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'requested_reference'
)
sequence
.
edit
(
requested_software_type
=
'requested_software_type'
)
def
stepSelectRequestedReferenceChildrenA
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'children_a'
)
sequence
.
edit
(
requested_software_type
=
'children_a'
)
def
stepSelectRequestedReferenceChildrenB
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'children_b'
)
sequence
.
edit
(
requested_software_type
=
'children_b'
)
def
stepSelectRequestedReferenceChildrenAChild
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'children_a_child'
)
sequence
.
edit
(
requested_software_type
=
'children_a_child'
)
def
stepSelectRequestedReferenceChildrenBChild
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'children_b_child'
)
sequence
.
edit
(
requested_software_type
=
'children_b_child'
)
def
stepSelectRequestedReferenceRootSoftwareInstanceTitle
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
sequence
[
'root_software_instance_title'
])
sequence
.
edit
(
requested_software_type
=
sequence
[
'root_software_instance_title'
])
def
stepSelectRequestedReferenceB
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'b'
)
sequence
.
edit
(
requested_software_type
=
'b'
)
def
stepSelectRequestedReferenceC
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_reference
=
'c'
)
sequence
.
edit
(
requested_software_type
=
'c'
)
def
stepSelectEmptyRequestedParameterDict
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
requested_parameter_dict
=
None
)
...
...
@@ -1799,7 +1809,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
predecessor_list
=
software_instance
.
getPredecessorValueList
()
self
.
assertEqual
(
1
,
len
(
predecessor_list
))
predecessor
=
predecessor_list
[
0
]
self
.
assertEqual
(
'requested_
referenc
e'
,
predecessor
.
getSourceReference
())
self
.
assertEqual
(
'requested_
software_typ
e'
,
predecessor
.
getSourceReference
())
self
.
assertEqual
(
1
,
len
(
software_instance
.
getPredecessorRelatedValueList
()))
def
stepCheckComputerPartitionChildrenAWithOwnChildren
(
self
,
sequence
,
**
kw
):
...
...
@@ -1829,7 +1839,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
predecessor_list
=
software_instance
.
getPredecessorValueList
()
self
.
assertEqual
(
1
,
len
(
predecessor_list
))
predecessor
=
predecessor_list
[
0
]
self
.
assertEqual
(
'requested_
referenc
e'
,
predecessor
.
getSourceReference
())
self
.
assertEqual
(
'requested_
software_typ
e'
,
predecessor
.
getSourceReference
())
self
.
assertEqual
(
1
,
len
(
software_instance
.
getPredecessorRelatedValueList
()))
def
stepCheckComputerPartitionChildrenBWithOwnChildren
(
self
,
sequence
,
**
kw
):
...
...
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