From 1cddbc70e4799970dc606014ef79e025d6a8e722 Mon Sep 17 00:00:00 2001 From: Alex Shatov Date: Tue, 14 Aug 2018 12:59:52 -0400 Subject: 4.1.0 pass cfy_tenant_name to deployment-handler - pass cfy_tenant_name in query from policy-handler to deployment-handler - new config "query":{"cfy_tenant_name": "default_tenant"} - limits the single policy-handler to a single cfy_tenant_name in cloudify under the deployment-handler Change-Id: I257a9b74be6ddcde77a2b4fceabd4aa628890466 Signed-off-by: Alex Shatov Issue-ID: DCAEGEN2-704 --- tests/test_policyhandler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_policyhandler.py b/tests/test_policyhandler.py index eda1981..dec760a 100644 --- a/tests/test_policyhandler.py +++ b/tests/test_policyhandler.py @@ -293,12 +293,12 @@ def fix_select_latest_policies_boom(monkeypatch): @pytest.fixture() def fix_deploy_handler(monkeypatch, fix_discovery): """monkeyed requests to deployment-handler""" - def monkeyed_deploy_handler_put(full_path, json=None, headers=None): + def monkeyed_deploy_handler_put(full_path, json=None, headers=None, params=None): """monkeypatch for policy-update request.put to deploy_handler""" return MonkeyedResponse(full_path, MockDeploymentHandler.default_response(), json, headers) - def monkeyed_deploy_handler_get(full_path, headers=None): + def monkeyed_deploy_handler_get(full_path, headers=None, params=None): """monkeypatch policy-update request.get to deploy_handler""" return MonkeyedResponse(full_path, MockDeploymentHandler.get_deployed_policies(), None, headers) @@ -319,7 +319,7 @@ def fix_deploy_handler(monkeypatch, fix_discovery): @pytest.fixture() def fix_deploy_handler_fail(monkeypatch, fix_discovery): """monkeyed failed discovery request.get""" - def monkeyed_deploy_handler_put(full_path, json=None, headers=None): + def monkeyed_deploy_handler_put(full_path, json=None, headers=None, params=None): """monkeypatch for deploy_handler""" res = MonkeyedResponse( full_path, @@ -329,7 +329,7 @@ def fix_deploy_handler_fail(monkeypatch, fix_discovery): res.status_code = 413 return res - def monkeyed_deploy_handler_get(full_path, headers=None): + def monkeyed_deploy_handler_get(full_path, headers=None, params=None): """monkeypatch policy-update request.get to deploy_handler""" return MonkeyedResponse(full_path, MockDeploymentHandler.default_response(), None, headers) -- cgit 1.2.3-korg