Introducing one more large config test, but without sockets.

This commit is contained in:
Max Romanov
2019-03-05 15:38:52 +03:00
parent ddd2e8cc36
commit e1c4568680

View File

@@ -264,5 +264,30 @@ class TestUnitConfiguration(unit.TestUnitControl):
self.assertIn('success', self.conf(conf)) 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__': if __name__ == '__main__':
TestUnitConfiguration.main() TestUnitConfiguration.main()