Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
Boxiang Sun
wendelin
Commits
dee19d7d
Commit
dee19d7d
authored
Mar 02, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make script more generic so both scalability and deployment tests could use it.
parent
f27a9a0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/ERP5Site_bootstrapScalabilityTest.py
...lin_scalability_test/ERP5Site_bootstrapScalabilityTest.py
+6
-3
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/ERP5Site_bootstrapScalabilityTest.xml
...in_scalability_test/ERP5Site_bootstrapScalabilityTest.xml
+1
-1
No files found.
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/ERP5Site_bootstrapScalabilityTest.py
View file @
dee19d7d
...
@@ -11,7 +11,8 @@ portal_catalog = portal.portal_catalog
...
@@ -11,7 +11,8 @@ portal_catalog = portal.portal_catalog
status_code
=
0
status_code
=
0
error_message
=
"No error."
error_message
=
"No error."
context
.
ERP5Site_setUpActivityTool
()
if
setup_activity_tool
:
context
.
ERP5Site_setUpActivityTool
()
if
user_quantity
is
None
:
if
user_quantity
is
None
:
return
json
.
dumps
({
"status_code"
:
1
,
return
json
.
dumps
({
"status_code"
:
1
,
...
@@ -42,10 +43,12 @@ if configurator.getSimulationState() == "draft":
...
@@ -42,10 +43,12 @@ if configurator.getSimulationState() == "draft":
# create users if installation is done
# create users if installation is done
try
:
try
:
context
.
portal_categories
.
activate
(
after_method_id
=
(
'ERP5Site_afterConfigurationSetup'
,
if
create_test_data
:
context
.
portal_categories
.
activate
(
after_method_id
=
(
'ERP5Site_afterConfigurationSetup'
,
'immediateReindexObject'
)
'immediateReindexObject'
)
).
ERP5Site_createTestData
(
user_quantity
,
password
)
).
ERP5Site_createTestData
(
user_quantity
,
password
)
context
.
portal_categories
.
activate
(
after_method_id
=
(
'ERP5Site_afterConfigurationSetup'
,
if
set_id_generator
:
context
.
portal_categories
.
activate
(
after_method_id
=
(
'ERP5Site_afterConfigurationSetup'
,
'immediateReindexObject'
)
'immediateReindexObject'
)
).
ERP5Site_setIdGenerator
()
).
ERP5Site_setIdGenerator
()
except
Exception
as
e
:
except
Exception
as
e
:
...
...
bt5/erp5_wendelin_scalability_test/SkinTemplateItem/portal_skins/erp5_wendelin_scalability_test/ERP5Site_bootstrapScalabilityTest.xml
View file @
dee19d7d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
user_quantity=None
</string>
</value>
<value>
<string>
user_quantity=None
, setup_activity_tool=True, create_test_data=True, set_id_generator=True
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
guard
</string>
</key>
<key>
<string>
guard
</string>
</key>
...
...
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