Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Léo-Paul Géneau
slapos
Commits
690d4bb6
Commit
690d4bb6
authored
Feb 15, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/erp5/test: test logfiles for families with multiple zopes
parent
e655f031
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
software/erp5/test/test/test_erp5.py
software/erp5/test/test/test_erp5.py
+20
-0
No files found.
software/erp5/test/test/test_erp5.py
View file @
690d4bb6
...
...
@@ -539,6 +539,11 @@ class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin):
"longrequest-logger-interval"
:
1
,
"longrequest-logger-timeout"
:
1
,
},
"multiple"
:
{
"family"
:
"multiple"
,
"instance-count"
:
3
,
"port-base"
:
2210
,
},
},
"wsgi"
:
cls
.
wsgi
,
})
...
...
@@ -853,6 +858,21 @@ class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin):
).
raise_for_status
()
wait_for_activities
(
10
)
def
test_multiple_zope_family_log_files
(
self
):
logfiles
=
[
os
.
path
.
basename
(
p
)
for
p
in
glob
.
glob
(
os
.
path
.
join
(
self
.
getComputerPartitionPath
(
'zope-multiple'
),
'var'
,
'log'
,
'*'
))
]
self
.
assertEqual
(
sorted
([
l
for
l
in
logfiles
if
l
.
startswith
(
'zope'
)]),
[
'zope-0-Z2.log'
,
'zope-0-event.log'
,
'zope-1-Z2.log'
,
'zope-1-event.log'
,
'zope-2-Z2.log'
,
'zope-2-event.log'
,
])
class
TestZopeMedusa
(
ZopeTestMixin
,
ERP5InstanceTestCase
):
wsgi
=
False
...
...
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