Commit Graph

4 Commits

Author SHA1 Message Date
Sean McGinnis 45fd25c572 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I6245a207ec65df0ef11a798b4cffe3157abccb73
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: Spyros Trigazis <spyridon.trigazis@cern.ch>
2020-04-29 17:10:23 +03:00
wangbo b462a3b8cd Support magnum-api multiple process workers
Multiple process workers support for magnum-api.
Adds new option 'workers' to group [api] of magnum.conf.

Change-Id: I0e8327ada6926602d577d1f36d384dd49426c7ee
Implements: blueprint magnum-multiple-process-workers
2017-01-09 20:25:55 +08:00
Hieu LE 70c803bfc1 Use werkzeug to run Magnum API with SSL
wsgiref.simple_server is mono threaded process that can not
support SSL context. This patch aim to replace wsgiref.simple_server
with werkzeug for running development API server supporting SSL.

Change-Id: Ib4360d77030e4cce8abf5ea543d87b7982e0e285
Closes-Bug: #1614596
2016-08-24 03:57:30 +00:00
Hieu LE 1f18d9e17b Improve unit test coverage for cmd/api.py
Add new unit tests for cmd/api.py.
Increase the coverage for cmd/api.py from 0 to 100%.

Change-Id: I2409ed9ff11b55ae761d4f0b5768f65ca1bec9e3
Partial-Bug: #1511667
2016-08-12 01:41:43 +00:00