X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-functional-test%2Futil.py;fp=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-functional-test%2Futil.py;h=0000000000000000000000000000000000000000;hb=59e81c38620fa1b61e15771191e35771450b9499;hp=1c81235c691865b1f75c21970931c198edbf9b9a;hpb=072f6e3a8d1bdf8f4c663843589c22d93ba07791;p=integration%2Ftest.git diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-functional-test/util.py b/test/tools/odl-mdsal-clustering-tests/clustering-functional-test/util.py deleted file mode 100644 index 1c81235c69..0000000000 --- a/test/tools/odl-mdsal-clustering-tests/clustering-functional-test/util.py +++ /dev/null @@ -1,52 +0,0 @@ -__author__ = "Basheeruddin Ahmed" -__copyright__ = "Copyright(c) 2014, Cisco Systems, Inc." -__license__ = "New-style BSD" -__email__ = "syedbahm@cisco.com" - - -import requests - - -def get(url, userId, password): - """Helps in making GET REST calls""" - headers = {} - headers['Accept'] = 'application/xml' - - # Send the GET request - req = requests.get(url, None, headers) - - # Read the response - return req - - -def nonprintpost(url, userId, password, data): - """Helps in making POST REST calls without outputs""" - headers = {} - headers['Content-Type'] = 'application/json' - # headers['Accept']= 'application/xml' - - resp = requests.post(url, data.encode(), headers=headers) - - return resp - - -def post(url, userId, password, data): - """Helps in making POST REST calls""" - print("post request with url " + url) - print("post request with data " + data) - headers = {} - headers['Content-Type'] = 'application/json' - # headers['Accept']= 'application/xml' - - resp = requests.post(url, data.encode(), headers=headers) - - # print (resp.raise_for_status()) - print(resp.headers) - - return resp - - -def delete(url, userId, password): - """Helps in making DELET REST calls""" - print("delete all resources belonging to url" + url) - resp = requests.delete(url) # noqa