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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
f99f7124
Commit
f99f7124
authored
Jan 06, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_slap_tool: getSoftwareReleaseListFromSoftwareProduct requires a project reference
parent
38890225
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
master/bt5/slapos_slap_tool/TestTemplateItem/portal_components/test.erp5.testSlapOSSlapTool.py
...ateItem/portal_components/test.erp5.testSlapOSSlapTool.py
+8
-4
No files found.
master/bt5/slapos_slap_tool/TestTemplateItem/portal_components/test.erp5.testSlapOSSlapTool.py
View file @
f99f7124
...
@@ -2321,7 +2321,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -2321,7 +2321,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
self
.
tic
()
self
.
tic
()
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
software_product
.
getReference
())
self
.
project
.
getReference
(),
software_product_reference
=
software_product
.
getReference
())
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
expected_xml
=
"""
\
expected_xml
=
"""
\
...
@@ -2357,7 +2358,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -2357,7 +2358,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
self
.
tic
()
self
.
tic
()
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
software_product
.
getReference
())
self
.
project
.
getReference
(),
software_product_reference
=
software_product
.
getReference
())
# check returned XML
# check returned XML
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
...
@@ -2380,7 +2382,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -2380,7 +2382,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
,
new_id
=
new_id
)
software_product
=
self
.
_makeSoftwareProduct
(
self
.
project
,
new_id
=
new_id
)
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
software_product
.
getReference
())
self
.
project
.
getReference
(),
software_product_reference
=
software_product
.
getReference
())
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
expected_xml
=
"""
\
expected_xml
=
"""
\
...
@@ -2394,7 +2397,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -2394,7 +2397,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
def
test_getSoftwareReleaseListFromSoftwareProduct_NoSoftwareProduct
(
self
):
def
test_getSoftwareReleaseListFromSoftwareProduct_NoSoftwareProduct
(
self
):
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
response
=
self
.
portal_slap
.
getSoftwareReleaseListFromSoftwareProduct
(
'Can I has a nonexistent software product?'
)
self
.
project
.
getReference
(),
software_product_reference
=
'Can I has a nonexistent software product?'
)
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
got_xml
=
etree
.
tostring
(
etree
.
fromstring
(
response
),
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
pretty_print
=
True
,
encoding
=
"UTF-8"
,
xml_declaration
=
True
)
expected_xml
=
"""
\
expected_xml
=
"""
\
...
...
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