From 7aeb828932bbf73e4ffb6a35263e3fe2e50bfb80 Mon Sep 17 00:00:00 2001 From: DR695H Date: Mon, 17 Jun 2019 17:04:38 -0400 Subject: 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 --- robotframework-onap/ONAPLibrary/HTTPKeywords.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'robotframework-onap/ONAPLibrary/HTTPKeywords.py') 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() -- cgit 1.2.3-korg