Update Testtools to Nitrogen
[transportpce.git] / tests / transportpce_tests / test_portmapping.py
index 2e12b7edf5c04dd2e9bee91f2b04ef7df69234b8..f386abf0db94239d7292f671075c2c02b4dcd457 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+
 ##############################################################################
 #Copyright (c) 2017 Orange, Inc. and others.  All rights reserved.
 #
@@ -28,7 +29,7 @@ class TransportPCEtesting(unittest.TestCase):
     @classmethod
     def __start_testtools(cls):
         executable = ("./netconf/netconf/tools/netconf-testtool/target/"
-                      "netconf-testtool-1.3.0-SNAPSHOT-executable.jar")
+                      "netconf-testtool-1.3.1-SNAPSHOT-executable.jar")
         if os.path.isfile(executable):
             with open('testtools.log', 'w') as outfile:
                 cls.testtools_process = subprocess.Popen(
@@ -48,7 +49,7 @@ class TransportPCEtesting(unittest.TestCase):
     def setUpClass(cls):
         cls.__start_testtools()
         cls.__start_odl()
-        time.sleep(30)
+        time.sleep(60)
 
     @classmethod
     def tearDownClass(cls):
@@ -80,7 +81,7 @@ class TransportPCEtesting(unittest.TestCase):
             "PUT", url, data=json.dumps(data), headers=headers,
             auth=('admin', 'admin'))
         self.assertEqual(response.status_code, requests.codes.created)
-        time.sleep(10)
+        time.sleep(20)
 
     def test_02_device_connected(self):
         url = ("{}/operational/network-topology:"
@@ -94,7 +95,7 @@ class TransportPCEtesting(unittest.TestCase):
         self.assertEqual(
             res['node'][0]['netconf-node-topology:connection-status'],
             'connected')
-        time.sleep(2)
+        time.sleep(10)
 
     def test_03_portmapping_SRG1_PP3_TXRX(self):
         url = ("{}/config/portmapping:network/"