summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-03-05 15:38:52 +0300
committerMax Romanov <max.romanov@nginx.com>2019-03-05 15:38:52 +0300
commite1c4568680b63c478e8a0e111d8ad9316a96c442 (patch)
tree6b20d43dd1027370d5e7c6b5ba34075db8a44ce0
parentddd2e8cc3676e81abd098baa2b8d262a74be8cee (diff)
downloadunit-e1c4568680b63c478e8a0e111d8ad9316a96c442.tar.gz
unit-e1c4568680b63c478e8a0e111d8ad9316a96c442.tar.bz2
Introducing one more large config test, but without sockets.
Diffstat (limited to '')
-rw-r--r--test/test_configuration.py25
1 files changed, 25 insertions, 0 deletions
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()