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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
7bb4864f
Commit
7bb4864f
authored
Dec 29, 2023
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_configurator: Test if bt5 dependency resolution gives the expected bt5 list.
See merge request
nexedi/slapos.core!592
parents
be4a936c
ea72a267
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
master/bt5/slapos_configurator/TestTemplateItem/portal_components/test.erp5.testSlapOSConfigurator.py
...tem/portal_components/test.erp5.testSlapOSConfigurator.py
+17
-0
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
...Item/portal_components/test.erp5.testSlapOSCodingStyle.py
+0
-1
No files found.
master/bt5/slapos_configurator/TestTemplateItem/portal_components/test.erp5.testSlapOSConfigurator.py
View file @
7bb4864f
...
...
@@ -272,3 +272,20 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
self
.
assertSameSet
(
expected_business_template_list
,
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplateTitleList
())
def
testConfiguredExpectedBusinessTemplateDependencyList
(
self
):
""" Make sure TemplateTool_getSlapOSMasterBusinessTemplateList dependency resolution
provides the expected bt5 list. """
expected_business_template_list
=
self
.
getExpectedBusinessTemplateInstalledAfterConfiguration
()
# If mixin contains a custom definition that introduce new business templated from
# the project scope, them include it on expected list.
expected_business_template_list
.
extend
(
self
.
_custom_additional_bt5_list
)
bt5_to_resolve
,
_
,
_
=
self
.
portal
.
portal_templates
.
TemplateTool_getSlapOSMasterBusinessTemplateList
()
bt5_list
=
[
i
[
1
]
for
i
in
self
.
portal
.
portal_templates
.
resolveBusinessTemplateListDependency
(
template_title_list
=
bt5_to_resolve
,
with_test_dependency_list
=
True
)]
self
.
assertSameSet
(
expected_business_template_list
,
bt5_list
)
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
View file @
7bb4864f
...
...
@@ -179,7 +179,6 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
'slapos_accounting/SubscriptionRequest_setAggregatedConsumptionDelivery'
,
'slapos_configurator/BusinessConfiguration_runPostUpgradeConsistency'
,
'slapos_configurator/BusinessConfiguration_setupSlapOSMasterStandardBT5'
,
'slapos_configurator/TemplateTool_getSlapOSMasterBusinessTemplateList'
,
'slapos_consumption/Base_getConsumptionListAsODSReport'
,
'slapos_consumption/Base_getResourceServiceTitleUitList'
,
'slapos_consumption/Base_getUserConsumptionDetailList'
,
...
...
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