Restore TAPI feat install w/ Karaf client in tests
[transportpce.git] / tests / transportpce_tests / tapi / test03_tapi_device_change_notifications.py
index f4b3be42e6d0756d262012a0d8eb29d5d5383020..2a4f3f2925851ee1dc588861eb8ab7db9c89c81a 100644 (file)
@@ -113,18 +113,17 @@ class TransportPCEFulltesting(unittest.TestCase):
         os.environ['JAVA_MAX_MEM'] = '4096M'
         cls.processes = test_utils.start_tpce()
         # TAPI feature is not installed by default in Karaf
-# FIXME: https://jira.opendaylight.org/browse/TRNSPRTPCE-701
-#        if "USE_LIGHTY" not in os.environ or os.environ['USE_LIGHTY'] != 'True':
-#            print("installing tapi feature...")
-#            result = test_utils.install_karaf_feature("odl-transportpce-tapi")
-#            if result.returncode != 0:
-#                cls.init_failed = True
-#            print("Restarting OpenDaylight...")
-#            test_utils.shutdown_process(cls.processes[0])
-#            cls.processes[0] = test_utils.start_karaf()
-#            test_utils.process_list[0] = cls.processes[0]
-#            cls.init_failed = not test_utils.wait_until_log_contains(
-#                test_utils.KARAF_LOG, test_utils.KARAF_OK_START_MSG, time_to_wait=60)
+        if "USE_LIGHTY" not in os.environ or os.environ['USE_LIGHTY'] != 'True':
+            print("installing tapi feature...")
+            result = test_utils.install_karaf_feature("odl-transportpce-tapi")
+            if result.returncode != 0:
+                cls.init_failed = True
+            print("Restarting OpenDaylight...")
+            test_utils.shutdown_process(cls.processes[0])
+            cls.processes[0] = test_utils.start_karaf()
+            test_utils.process_list[0] = cls.processes[0]
+            cls.init_failed = not test_utils.wait_until_log_contains(
+                test_utils.KARAF_LOG, test_utils.KARAF_OK_START_MSG, time_to_wait=60)
         if cls.init_failed:
             print("tapi installation feature failed...")
             test_utils.shutdown_process(cls.processes[0])