diff options
author | Alex Shatov <alexs@att.com> | 2018-08-14 12:59:52 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2018-08-14 12:59:52 -0400 |
commit | 1cddbc70e4799970dc606014ef79e025d6a8e722 (patch) | |
tree | aa671017d895f8c1942dab520abe241381fec5e9 /tests | |
parent | 1c4c6626f2abb24bcb35af581c6e57130f0ccae2 (diff) |
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 <alexs@att.com>
Issue-ID: DCAEGEN2-704
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_policyhandler.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |