executable = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'..', '..', '..', KARAF_INSTALLDIR, 'target', 'assembly', 'bin', 'client')
+# FIXME: https://jira.opendaylight.org/browse/TRNSPRTPCE-701
+# -b option needed below because of Karaf client bug reporte in the JIRA ticket mentioned above
return subprocess.run([executable, '-b'],
input='feature:install ' + feature_name + '\n feature:list | grep '
+ feature_name + ' \n logout \n',
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])
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])
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])
OLM_TIMER2=2000
commands =
- ./add_tapi_feature_to_tests221.sh
+# ./add_tapi_feature_to_tests221.sh
./launch_tests.sh tapi {posargs:}
[testenv:with_docker]