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
Titouan Soulard
slapos.core
Commits
78fe4bf0
Commit
78fe4bf0
authored
Mar 08, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: SimulationMovement_buildSlapOS search by specialise
parent
e0549949
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
.../portal_components/test.erp5.testSlapOSAccountingAlarm.py
+16
-8
No files found.
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
View file @
78fe4bf0
...
...
@@ -198,13 +198,15 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
root_applied_rule
=
self
.
portal
.
portal_simulation
.
newContent
(
portal_type
=
'Applied Rule'
)
simulation_movement
=
root_applied_rule
.
newContent
(
causality
=
root_business_link
.
getRelativeUrl
(),
causality_value
=
root_business_link
,
specialise_value
=
business_process
,
ledger
=
'automated'
,
portal_type
=
'Simulation Movement'
)
applied_rule
=
simulation_movement
.
newContent
(
portal_type
=
'Applied Rule'
)
lower_simulation_movement
=
applied_rule
.
newContent
(
causality
=
business_link
.
getRelativeUrl
(),
causality_value
=
business_link
,
specialise_value
=
business_process
,
ledger
=
'automated'
,
portal_type
=
'Simulation Movement'
)
...
...
@@ -225,15 +227,18 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
self
.
assertEqual
([{
'recmethod'
:
'build'
,
'recargs'
:
(),
'reckwargs'
:
{
'path'
:
'%s/%%'
%
root_applied_rule
.
getPath
(),
'activate_kw'
:
{
'tag'
:
'root_tag'
}}}],
'reckwargs'
:
{
'ledger__uid'
:
self
.
portal
.
portal_categories
.
ledger
.
automated
.
getUid
(),
'specialise__uid'
:
business_process
.
getUid
(),
'activate_kw'
:
{
'tag'
:
'root_tag'
}
}}],
build_value
)
self
.
assertEqual
([{
'recmethod'
:
'activate'
,
'recargs'
:
(),
'reckwargs'
:
{
'tag'
:
'build_in_progress_%s_%s'
%
(
root_business_link
.
getUid
(),
root_applied_rule
.
getUid
()),
root_business_link
.
getUid
(),
business_process
.
getUid
()),
'after_tag'
:
'root_tag'
,
'activity'
:
'SQLQueue'
}}],
activate_value
)
...
...
@@ -247,15 +252,18 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
self
.
assertEqual
([{
'recmethod'
:
'build'
,
'recargs'
:
(),
'reckwargs'
:
{
'path'
:
'%s/%%'
%
root_applied_rule
.
getPath
(),
'activate_kw'
:
{
'tag'
:
'lower_tag'
}}}],
'reckwargs'
:
{
'ledger__uid'
:
self
.
portal
.
portal_categories
.
ledger
.
automated
.
getUid
(),
'specialise__uid'
:
business_process
.
getUid
(),
'activate_kw'
:
{
'tag'
:
'lower_tag'
}
}}],
build_value
)
self
.
assertEqual
([{
'recmethod'
:
'activate'
,
'recargs'
:
(),
'reckwargs'
:
{
'tag'
:
'build_in_progress_%s_%s'
%
(
business_link
.
getUid
(),
root_applied_rule
.
getUid
()),
business_link
.
getUid
(),
business_process
.
getUid
()),
'after_tag'
:
'lower_tag'
,
'activity'
:
'SQLQueue'
}}],
activate_value
)
...
...
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