Update Functional tests for SP1.6
[transportpce.git] / tests / transportpce_tests / test_pce.py
index 2c3f330d526b8e45069b557e3146d54d14228c6c..8d60017be414ce7c2879e2e8b82370bc5169afb7 100644 (file)
@@ -24,7 +24,7 @@ class TransportPCEtesting(unittest.TestCase):
     odl_process = None
     simple_data = None
     complex_data = None
-    restconf_baseurl = "http://127.0.0.1:8181/restconf"
+    restconf_baseurl = "http://localhost:8181/restconf"
 
     @classmethod
     def _get_file(cls):
@@ -42,7 +42,7 @@ class TransportPCEtesting(unittest.TestCase):
         executable = "../karaf/target/assembly/bin/karaf"
         with open('odl.log', 'w') as outfile:
             cls.odl_process = subprocess.Popen(
-                ["bash", executable], stdout=outfile,
+                ["bash", executable, "server"], stdout=outfile,
                 stdin=open(os.devnull))
 
     @classmethod
@@ -107,7 +107,7 @@ class TransportPCEtesting(unittest.TestCase):
 
     # Path Computation success
     def test_04_path_computation(self):
-        url = ("{}/operations/pce:path-computation-request"
+        url = ("{}/operations/transportpce-pce:path-computation-request"
               .format(self.restconf_baseurl))
         body = {"input": {
                 "service-name": "service-1",
@@ -191,7 +191,7 @@ class TransportPCEtesting(unittest.TestCase):
 
     # Test failed path computation
     def test_09_fail_path_computation(self):
-        url = ("{}/operations/pce:path-computation-request"
+        url = ("{}/operations/transportpce-pce:path-computation-request"
               .format(self.restconf_baseurl))
         body = {"input": {
                 "service-handler-header": {
@@ -212,7 +212,7 @@ class TransportPCEtesting(unittest.TestCase):
 
     # Test1 success path computation
     def test_10_success1_path_computation(self):
-        url = ("{}/operations/pce:path-computation-request"
+        url = ("{}/operations/transportpce-pce:path-computation-request"
               .format(self.restconf_baseurl))
         body = {"input": {
                 "service-name": "service1",
@@ -313,7 +313,7 @@ class TransportPCEtesting(unittest.TestCase):
 
     # Test2 success path computation with path description
     def test_11_success2_path_computation(self):
-        url = ("{}/operations/pce:path-computation-request"
+        url = ("{}/operations/transportpce-pce:path-computation-request"
               .format(self.restconf_baseurl))
         body = {"input": {
                 "service-name": "service 1",
@@ -349,7 +349,7 @@ class TransportPCEtesting(unittest.TestCase):
 
     # Test3 success path computation with hard-constraints exclude
     def test_12_success3_path_computation(self):
-        url = ("{}/operations/pce:path-computation-request"
+        url = ("{}/operations/transportpce-pce:path-computation-request"
               .format(self.restconf_baseurl))
         body = {"input": {
                 "service-name": "service 1",