Deleted Added
1import unittest
2import unit
3
4class TestUnitConfiguration(unit.TestUnitControl):
5
6 def setUpClass():
7 unit.TestUnit().check_modules('python')
8

--- 250 unchanged lines hidden (view full) ---

259 "*:" + str(7000 + a): {
260 "application": "app-" + str(a)
261 } for a in range(apps)
262 }
263 }
264
265 self.assertIn('success', self.conf(conf))
266
267 def test_json_application_many2(self):
268 self.skip_alerts.extend([
269 r'eventfd.+failed',
270 r'epoll.+failed',
271 r'failed to apply'
272 ])
273
274 conf = {
275 "applications":
276 {"app-" + str(a): {
277 "type": "python",
278 "processes": { "spare": 0 },
279 "path": "/app",
280 "module": "wsgi"
281 } for a in range(999)
282 },
283 "listeners": {
284 "*:7001": {
285 "application": "app-1"
286 }
287 }
288 }
289
290 self.assertIn('success', self.conf(conf))
291
292if __name__ == '__main__':
293 TestUnitConfiguration.main()