diff options
Diffstat (limited to 'moon_authz')
-rw-r--r-- | moon_authz/Changelog | 30 | ||||
-rw-r--r-- | moon_authz/moon_authz/__init__.py | 2 | ||||
-rw-r--r-- | moon_authz/moon_authz/http_server.py | 4 | ||||
-rw-r--r-- | moon_authz/tests/unit_python/mock_pods.py | 10 |
4 files changed, 38 insertions, 8 deletions
diff --git a/moon_authz/Changelog b/moon_authz/Changelog new file mode 100644 index 00000000..59d7f8e4 --- /dev/null +++ b/moon_authz/Changelog @@ -0,0 +1,30 @@ +# Copyright 2018 Open Platform for NFV Project, Inc. and its contributors +# This software is distributed under the terms and conditions of the 'Apache-2.0' +# license which can be found in the file 'LICENSE' in this package distribution +# or at 'http://www.apache.org/licenses/LICENSE-2.0'. + + +CHANGES +======= + +1.0.0 +----- +- First version of the manager + +2.0.0 +----- +- Version built inside the Keystone component + +3.0.0 +----- +- Version built outside the Keystone component + +4.0.0 +----- +- First micro-architecture version + +4.3.3 +----- +- use the threading capability of Flask app +- set the number of manager to 1 +- update to the latest version of the python-moondb library diff --git a/moon_authz/moon_authz/__init__.py b/moon_authz/moon_authz/__init__.py index 6f964a63..0fb32055 100644 --- a/moon_authz/moon_authz/__init__.py +++ b/moon_authz/moon_authz/__init__.py @@ -3,4 +3,4 @@ # license which can be found in the file 'LICENSE' in this package distribution # or at 'http://www.apache.org/licenses/LICENSE-2.0'. -__version__ = "4.3.2" +__version__ = "4.3.3" diff --git a/moon_authz/moon_authz/http_server.py b/moon_authz/moon_authz/http_server.py index b6ac6426..7d3b1ec3 100644 --- a/moon_authz/moon_authz/http_server.py +++ b/moon_authz/moon_authz/http_server.py @@ -94,7 +94,7 @@ class Root(Resource): class HTTPServer(Server): - def __init__(self, host="0.0.0.0", port=38001, **kwargs): + def __init__(self, host="localhost", port=38001, **kwargs): super(HTTPServer, self).__init__(host=host, port=port, **kwargs) self.component_data = kwargs.get("component_data", {}) logger.info("HTTPServer port={} {}".format(port, kwargs)) @@ -135,4 +135,4 @@ class HTTPServer(Server): ) def run(self): - self.app.run(host=self._host, port=self._port) # nosec + self.app.run(host=self._host, port=self._port, threaded=True) # nosec diff --git a/moon_authz/tests/unit_python/mock_pods.py b/moon_authz/tests/unit_python/mock_pods.py index 74801cd1..9e05e335 100644 --- a/moon_authz/tests/unit_python/mock_pods.py +++ b/moon_authz/tests/unit_python/mock_pods.py @@ -87,7 +87,7 @@ subject_mock = { "name": "testuser", "email": "mail", "id": "89ba91c18dd54abfbfde7a66936c51a6", - "partner_id": "" + "extra": {} } }, "policy_id_1": { @@ -141,7 +141,7 @@ object_mock = { "name": "vm1", "description": "test", "id": "9089b3d2ce5b4e929ffc7e35b55eba1a", - "partner_id": "", + "extra": {}, "policy_list": [ "f8f49a779ceb47b3ac810f01ef71b4e0", "636cd473324f4c0bbd9102cb5b62a16d" @@ -195,7 +195,7 @@ action_mock = { "name": "boot", "description": "test", "id": "cdb3df220dc04a6ea3334b994827b068", - "partner_id": "", + "extra": {}, "policy_list": [ "f8f49a779ceb47b3ac810f01ef71b4e0", "636cd473324f4c0bbd9102cb5b62a16d" @@ -205,7 +205,7 @@ action_mock = { "name": "stop", "description": "test", "id": "cdb3df220dc04a6ea3334b994827b068", - "partner_id": "", + "extra": {}, "policy_list": [ "f8f49a779ceb47b3ac810f01ef71b4e0", "636cd473324f4c0bbd9102cb5b62a16d" @@ -215,7 +215,7 @@ action_mock = { "name": "start", "description": "test", "id": "9f5112afe9b34a6c894eb87246ccb7aa", - "partner_id": "", + "extra": {}, "policy_list": [ "f8f49a779ceb47b3ac810f01ef71b4e0", "636cd473324f4c0bbd9102cb5b62a16d" |