summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/RequestsDecorators.py
diff options
context:
space:
mode:
Diffstat (limited to 'robotframework-onap/ONAPLibrary/RequestsDecorators.py')
-rw-r--r--robotframework-onap/ONAPLibrary/RequestsDecorators.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/robotframework-onap/ONAPLibrary/RequestsDecorators.py b/robotframework-onap/ONAPLibrary/RequestsDecorators.py
index 1bb8b3b..0ad0fb7 100644
--- a/robotframework-onap/ONAPLibrary/RequestsDecorators.py
+++ b/robotframework-onap/ONAPLibrary/RequestsDecorators.py
@@ -1,5 +1,20 @@
+# Copyright 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
from robot.api import logger
+
def log_wrapped(func):
def _log_wrapped(*args, **kwargs):
if 'endpoint' in kwargs:
@@ -13,6 +28,7 @@ def log_wrapped(func):
return _log_wrapped
+
def default_keywords(func):
def _default_keywords(*args, **kwargs):
dicts = _keyword_defaults(**kwargs)
@@ -42,4 +58,3 @@ def default_keywords(func):
return kwargs
return _default_keywords
-