Commit ee19f997 authored by Jérome Perrin's avatar Jérome Perrin

software/erp5/test: test logfiles for families with multiple zopes

parent 76de7041
...@@ -529,6 +529,11 @@ class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin): ...@@ -529,6 +529,11 @@ class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin):
"longrequest-logger-interval": 1, "longrequest-logger-interval": 1,
"longrequest-logger-timeout": 1, "longrequest-logger-timeout": 1,
}, },
"multiple": {
"family": "multiple",
"instance-count": 3,
"port-base": 2210,
},
}, },
}), }),
} }
...@@ -842,6 +847,21 @@ class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin): ...@@ -842,6 +847,21 @@ class ZopeTestMixin(ZopeSkinsMixin, CrontabMixin):
).raise_for_status() ).raise_for_status()
wait_for_activities(10) 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 TestZopeWSGI(ZopeTestMixin, ERP5InstanceTestCase): class TestZopeWSGI(ZopeTestMixin, ERP5InstanceTestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment