From 14411ac0ec0df8a32ab5d360c5a7fdb87ca51e26 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Tue, 20 Mar 2018 10:55:03 -0400 Subject: 2.4.0 dns based discovery of deployment-handler - policy-handler uses dns based discovery of deployment-handler - driven by config - new data structure for deploy_handler section of config -- changed from string "deployment_handler" in 2.3.1 to structure in 2.4.0 deploy_handler : # name of deployment-handler service # used by policy-handler for logging target_entity : "deployment_handler" # url of the deployment-handler service # for policy-handler to direct the policy-updates to # - expecting dns to resolve the name # deployment_handler to ip address url : "http://deployment_handler:8188" - logic is backwards compatible with 2.3.1 format - removed import pip from audit -- import pip broken in pip 9.0.2 (2018-03-19) -- import pip conflicts with requests -- pip API is not officially supported -- see links for more https://github.com/pypa/pip/issues/5079 https://github.com/pypa/pip/issues/5081 Change-Id: Ifcaba6cfd714f3099ab7a25fe979a3696a6460fc Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-404 --- tests/test_policyhandler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_policyhandler.py') diff --git a/tests/test_policyhandler.py b/tests/test_policyhandler.py index b52e718..307a355 100644 --- a/tests/test_policyhandler.py +++ b/tests/test_policyhandler.py @@ -28,6 +28,7 @@ import uuid from datetime import datetime import pytest + import cherrypy from cherrypy.test.helper import CPWebCase @@ -47,7 +48,7 @@ from policyhandler.policy_rest import PolicyRest from policyhandler.policy_utils import PolicyUtils, Utils from policyhandler.web_server import _PolicyWeb -POLICY_HANDLER_VERSION = "2.2.0" +POLICY_HANDLER_VERSION = "2.4.0" class MonkeyHttpResponse(object): """Monkey http reposne""" -- cgit 1.2.3-korg