Updated modules.conf and modules-shards.conf to
[integration/test.git] / test / tools / odl-mdsal-clustering-tests / clustering-functional-test / util.py
index 9bc86b63447e709f4fa182b8fe440b710302abbc..445b5860f683d0e6ba54e67ee8e5737056b81c90 100644 (file)
@@ -4,12 +4,7 @@ __license__ = "New-style BSD"
 __email__ = "syedbahm@cisco.com"
 
 
-import urllib
-from urllib import request
-import json
 import requests
-import socket
-
 
 #
 #Helps in making GET REST calls
@@ -21,10 +16,10 @@ def get(url, userId, password):
     headers['Accept']= 'application/xml'
 
     # Send the GET request
-    req = urllib.request.Request(url, None, headers)
+    req = requests.get(url, None, headers)
 
     # Read the response
-    return urllib.request.urlopen(req).read()
+    return req
 
 #
 #Helps in making POST REST calls without outputs