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
99ab8293
Commit
99ab8293
authored
Nov 15, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel_ui_test: add basic payable service test
parent
0171793c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
420 additions
and
2 deletions
+420
-2
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
...tem/portal_components/extension.erp5.SlapOSPanelUiTest.py
+11
-2
master/bt5/slapos_panel_ui_test/PathTemplateItem/portal_tests/slapos_panel_zuite/testAccountingScenario.xml
...ortal_tests/slapos_panel_zuite/testAccountingScenario.xml
+58
-0
master/bt5/slapos_panel_ui_test/PathTemplateItem/portal_tests/slapos_panel_zuite/testAccountingScenario.zpt
...ortal_tests/slapos_panel_zuite/testAccountingScenario.zpt
+351
-0
No files found.
master/bt5/slapos_panel_ui_test/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSPanelUiTest.py
View file @
99ab8293
...
@@ -6,7 +6,7 @@ from AccessControl.SecurityManagement import newSecurityManager
...
@@ -6,7 +6,7 @@ from AccessControl.SecurityManagement import newSecurityManager
def
ERP5Site_bootstrapSlapOSPanelTest
(
self
,
scenario
):
def
ERP5Site_bootstrapSlapOSPanelTest
(
self
,
scenario
):
if
scenario
not
in
[
'customer'
,
'customer_shared'
]:
if
scenario
not
in
[
'
accounting'
,
'
customer'
,
'customer_shared'
]:
raise
ValueError
(
'Unsupported bootstrap scenario: %s'
%
scenario
)
raise
ValueError
(
'Unsupported bootstrap scenario: %s'
%
scenario
)
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
...
@@ -14,10 +14,19 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, scenario):
...
@@ -14,10 +14,19 @@ def ERP5Site_bootstrapSlapOSPanelTest(self, scenario):
try
:
try
:
newSecurityManager
(
None
,
portal
.
acl_users
.
getUser
(
SUPER_USER
))
newSecurityManager
(
None
,
portal
.
acl_users
.
getUser
(
SUPER_USER
))
if
scenario
==
'accounting'
:
organisation
=
portal
.
organisation_module
.
newContent
(
portal_type
=
"Organisation"
,
title
=
"Test accounting organisation"
)
else
:
organisation
=
None
# Create Project
# Create Project
project
=
portal
.
project_module
.
newContent
(
project
=
portal
.
project_module
.
newContent
(
portal_type
=
"Project"
,
portal_type
=
"Project"
,
title
=
'Test Project'
title
=
'Test Project'
,
destination_section_value
=
organisation
)
)
project
.
validate
()
project
.
validate
()
...
...
master/bt5/slapos_panel_ui_test/PathTemplateItem/portal_tests/slapos_panel_zuite/testAccountingScenario.xml
0 → 100644
View file @
99ab8293
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
testAccountingScenario
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_panel_ui_test/PathTemplateItem/portal_tests/slapos_panel_zuite/testAccountingScenario.zpt
0 → 100644
View file @
99ab8293
This diff is collapsed.
Click to expand it.
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