Migrate request invocations (controller)
[integration/test.git] / csit / libraries / SettingsLibrary.py
index 7e22ade8d8b991638bb0fb1ef3ef9bc9068a1e05..c0325d334f40ec611abae63847b935bc46da5fd6 100644 (file)
@@ -19,49 +19,47 @@ __email__ = "syedbahm@cisco.com"
 
 def getCarsUrl(hostname, port):
     """Cars resource URL for GET"""
-    return "http://" + hostname + ":" + port + "/restconf/config/car:cars"
+    return "http://" + hostname + ":" + port + "/rests/data/car:cars"
 
 
 def getPersonsUrl(hostname, port):
     """People resouce URL for GET"""
-    return "http://" + hostname + ":" + port + "/restconf/config/people:people"
+    return "http://" + hostname + ":" + port + "/rests/data/people:people"
 
 
 def getCarPersonUrl(hostname, port):
     """GET cars persons mapping resource URL"""
-    return "http://" + hostname + ":" + port + "/restconf/config/car-people:car-people"
+    return "http://" + hostname + ":" + port + "/rests/data/car-people:car-people"
 
 
 def getAddCarInitUrl(hostname, port):
     """POST or DELETE URL"""
-    return "http://" + hostname + ":" + port + "/restconf/config"
+    return "http://" + hostname + ":" + port + "/rests/data"
 
 
 def getAddCarUrl(hostname, port):
     """POST or DELETE URL"""
-    return "http://" + hostname + ":" + port + "/restconf/config/car:cars"
+    return "http://" + hostname + ":" + port + "/rests/data/car:cars"
 
 
 def getAddPersonUrl(hostname, port):
     """POST or DELETE URL"""
-    return "http://" + hostname + ":" + port + "/restconf/config"
+    return "http://" + hostname + ":" + port + "/rests/data"
 
 
 def getAddPersonRpcUrl(hostname, port):
     """POST URL -using rpc"""
-    return "http://" + hostname + ":" + port + "/restconf/operations/people:add-person"
+    return "http://" + hostname + ":" + port + "/rests/operations/people:add-person"
 
 
 def getAddCarPersonUrl(hostname, port):
     """POST URL for car person mapping"""
-    return "http://" + hostname + ":" + port + "/restconf/config"
+    return "http://" + hostname + ":" + port + "/rests/data"
 
 
 def getBuyCarRpcUrl(hostname, port):
     """POST URL for buy car rpc"""
-    return (
-        "http://" + hostname + ":" + port + "/restconf/operations/car-purchase:buy-car"
-    )
+    return "http://" + hostname + ":" + port + "/rests/operations/car-purchase:buy-car"
 
 
 def getJolokiaURL(hostname, port, shardIndex, shardName):