From e1c4568680b63c478e8a0e111d8ad9316a96c442 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Tue, 5 Mar 2019 15:38:52 +0300 Subject: [PATCH] Introducing one more large config test, but without sockets. --- test/test_configuration.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/test_configuration.py b/test/test_configuration.py index 67a8946e..de20ac25 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -264,5 +264,30 @@ class TestUnitConfiguration(unit.TestUnitControl): self.assertIn('success', self.conf(conf)) + def test_json_application_many2(self): + self.skip_alerts.extend([ + r'eventfd.+failed', + r'epoll.+failed', + r'failed to apply' + ]) + + conf = { + "applications": + {"app-" + str(a): { + "type": "python", + "processes": { "spare": 0 }, + "path": "/app", + "module": "wsgi" + } for a in range(999) + }, + "listeners": { + "*:7001": { + "application": "app-1" + } + } + } + + self.assertIn('success', self.conf(conf)) + if __name__ == '__main__': TestUnitConfiguration.main()