summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/HTTPKeywords.py
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-06-17 17:04:38 -0400
committerDR695H <dr695h@att.com>2019-06-17 17:04:55 -0400
commit7aeb828932bbf73e4ffb6a35263e3fe2e50bfb80 (patch)
tree177a2da2d646c2759291ddb15407a05d0cdd0687 /robotframework-onap/ONAPLibrary/HTTPKeywords.py
parentcc879bb3f27f6d48fd05a8016442b350ca3b74d3 (diff)
copying openstack keywords to the onap lib
also editing the disable warnings keyword back in Issue-ID: TEST-158 Change-Id: I436e2b53a154171fea83a0707bf3c28602510dd7 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/ONAPLibrary/HTTPKeywords.py')
-rw-r--r--robotframework-onap/ONAPLibrary/HTTPKeywords.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/robotframework-onap/ONAPLibrary/HTTPKeywords.py b/robotframework-onap/ONAPLibrary/HTTPKeywords.py
index f2afe6a..34bee78 100644
--- a/robotframework-onap/ONAPLibrary/HTTPKeywords.py
+++ b/robotframework-onap/ONAPLibrary/HTTPKeywords.py
@@ -14,6 +14,7 @@
from six.moves import urllib
from robot.api.deco import keyword
+import urllib3
class HTTPKeywords(object):
@@ -30,3 +31,8 @@ class HTTPKeywords(object):
def url_parse(self, url):
""" Get pieces of the URL """
return urllib.parse.urlparse(url)
+
+ @keyword
+ def disable_warnings(self):
+ """ Disable all warnings when creating sessions """
+ urllib3.disable_warnings()