diff options
author | Schmalzried, Terry (ts862m) <ts862m@att.com> | 2019-11-14 13:07:56 -0500 |
---|---|---|
committer | Schmalzried, Terry (ts862m) <ts862m@att.com> | 2019-11-14 15:26:45 -0500 |
commit | 77e27adeab5ff155b690f2e058c06f0a7812e225 (patch) | |
tree | c67450b92793ba2b503ddc596188e8f1319f43fe /dcae-policy/tests/test_tasks.py | |
parent | 6b7857037b8c82471395a929aba950677693d151 (diff) |
DCAEGEN2-1920 enhance policy plugin for error conditions
Issue-ID: DCAEGEN2-1920
Change-Id: I7e1b08cb008f60d7f08ed2db41236a03b8490287
Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
Diffstat (limited to 'dcae-policy/tests/test_tasks.py')
-rw-r--r-- | dcae-policy/tests/test_tasks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dcae-policy/tests/test_tasks.py b/dcae-policy/tests/test_tasks.py index f2ca205..dc89d65 100644 --- a/dcae-policy/tests/test_tasks.py +++ b/dcae-policy/tests/test_tasks.py @@ -1,5 +1,5 @@ # ================================================================================ -# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ from tests.mock_setup import (CONFIG_NAME, MONKEYED_POLICY_ID, POLICY_BODY, LATEST_POLICIES = "latest_policies" -def monkeyed_policy_handler_get(full_path, headers=None): +def monkeyed_policy_handler_get(full_path, headers=None, **kwargs): """monkeypatch for the GET to policy-engine""" return MonkeyedResponse(full_path, headers, MonkeyedPolicyBody.create_policy(MONKEYED_POLICY_ID)) @@ -105,7 +105,7 @@ def test_policy_get_fail(monkeypatch): current_ctx.clear() -def monkeyed_policy_handler_find(full_path, json, headers): +def monkeyed_policy_handler_find(full_path, json, headers, **kwargs): """monkeypatch for the GET to policy-engine""" return MonkeyedResponse( full_path, headers, |