diff options
author | DR695H <dr695h@att.com> | 2019-06-17 13:31:29 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-06-17 13:31:35 -0400 |
commit | 88f5696f95de46790afb5899cfd1ebdde96fd41b (patch) | |
tree | 68b72a03923c36b342f0cc583e98e76e4ad0cf94 /robotframework-onap/eteutils | |
parent | 294f996db033c0f8be6143dad201dc9d8b4b6959 (diff) |
moving http to new keyword format
Issue-ID: TEST-158
Change-Id: Ib0accb92a39a50fdc63227768a5fe628930c91df
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/eteutils')
-rw-r--r-- | robotframework-onap/eteutils/HTTPUtils.py | 20 | ||||
-rw-r--r-- | robotframework-onap/eteutils/OSUtils.py | 14 |
2 files changed, 0 insertions, 34 deletions
diff --git a/robotframework-onap/eteutils/HTTPUtils.py b/robotframework-onap/eteutils/HTTPUtils.py deleted file mode 100644 index f5c8fe4..0000000 --- a/robotframework-onap/eteutils/HTTPUtils.py +++ /dev/null @@ -1,20 +0,0 @@ -from six.moves.urllib.parse import urlparse -from six.moves import urllib - -import urllib3 - - -class HTTPUtils: - """HTTPUtils is common resource for simple http helper keywords.""" - - def url_encode_string(self, barestring): - """URL Encode String takes in a string and converts it into fully 'percent-encoded' string""" - return urllib.parse.quote(barestring) - - def disable_warnings(self): - """ Disable all warnings when creating sessions """ - urllib3.disable_warnings() - - def url_parse(self, url): - """ Get pieces of the URL """ - return urlparse(url) diff --git a/robotframework-onap/eteutils/OSUtils.py b/robotframework-onap/eteutils/OSUtils.py deleted file mode 100644 index 78968f0..0000000 --- a/robotframework-onap/eteutils/OSUtils.py +++ /dev/null @@ -1,14 +0,0 @@ -from sys import platform - -class OSUtils: - """ Utilities useful for constructing OpenStack HEAT requests """ - - def get_normalized_os(self): - os = platform - if platform == "linux" or platform == "linux2": - os = 'linux64' - elif platform == "darwin": - os = 'mac64' - elif platform == "win32": - os = platform - return os |