X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Ftransportpce_tests%2Fcommon%2Ftest_utils.py;h=1026df7e0583d20f743b32f57bd84a11fa224be5;hb=b601698d2006ad583b26e3a11a83a4799b88da89;hp=d9b9ee09a400661b19feb550cab0b5a1f88bb31b;hpb=3cb0866be6bc8b477849b6ad61e152e565254058;p=transportpce.git diff --git a/tests/transportpce_tests/common/test_utils.py b/tests/transportpce_tests/common/test_utils.py index d9b9ee09a..1026df7e0 100644 --- a/tests/transportpce_tests/common/test_utils.py +++ b/tests/transportpce_tests/common/test_utils.py @@ -45,6 +45,7 @@ URL_CONFIG_CLLI_NET = "{}/config/ietf-network:networks/network/clli-network/" URL_CONFIG_ORDM_NET = "{}/config/ietf-network:networks/network/openroadm-network/" URL_PORTMAPPING = "{}/config/transportpce-portmapping:network/nodes/" URL_OPER_SERV_LIST = "{}/operational/org-openroadm-service:service-list/" +URL_GET_NBINOTIFICATIONS_SERV = "{}/operations/nbi-notifications:get-notifications-service/" URL_SERV_CREATE = "{}/operations/org-openroadm-service:service-create" URL_SERV_DELETE = "{}/operations/org-openroadm-service:service-delete" URL_SERVICE_PATH = "{}/operations/transportpce-device-renderer:service-path" @@ -137,7 +138,8 @@ def install_karaf_feature(feature_name: str): os.path.dirname(os.path.realpath(__file__)), "..", "..", "..", "karaf", "target", "assembly", "bin", "client") return subprocess.run([executable], - input='feature:install ' + feature_name + '\n feature:list | grep tapi \n logout \n', + input='feature:install ' + feature_name + '\n feature:list | grep ' + + feature_name + ' \n logout \n', universal_newlines=True, check=False) @@ -336,6 +338,10 @@ def portmapping_request(suffix: str): return get_request(url) +def get_notifications_service_request(attr): + return post_request(URL_GET_NBINOTIFICATIONS_SERV, attr) + + def get_service_list_request(suffix: str): url = URL_OPER_SERV_LIST + suffix return get_request(url)