+ wait(lambda: is_rapp_up(chart_name), sleep_seconds=5, timeout_seconds=300, waiting_for="Oru app to be up")
+
+def test_cl_odu_app_smo_deploy():
+ chart_version = "1.0.0"
+ chart_name = "odu-app"
+ release_name = "odu-app"
+ global app_name
+ app_name = chart_name
+ """The O-DU Slice Assurance SMO Version use case."""
+ logger.info("Upload tosca to commissioning")
+ commissioning_payload = jinja_env().get_template("commission_k8s.json.j2").render(chartmuseumIp=chartmuseum_ip, chartmuseumPort=chartmuseum_port, chartVersion=chart_version, chartName=chart_name, releaseName=release_name)
+ instance_payload = jinja_env().get_template("create_instance_k8s.json.j2").render(chartmuseumIp=chartmuseum_ip, chartmuseumPort=chartmuseum_port, chartVersion=chart_version, chartName=chart_name, releaseName=release_name, instanceName=usecase_name)
+ assert clcommissioning_utils.create_instance(usecase_name, commissioning_payload, instance_payload) is True
+
+ logger.info("Check if odu-app smo version is up")
+ wait(lambda: is_rapp_up(chart_name), sleep_seconds=5, timeout_seconds=300, waiting_for="Odu app smo version to be up")
+
+def test_cl_odu_app_ics_deploy():
+ chart_version = "1.0.0"
+ chart_name = "odu-app-ics-version"
+ release_name = "odu-app-ics-version"
+ global app_name
+ app_name = chart_name
+ """The O-DU Slice Assurance ICS Version use case."""
+ logger.info("Upload tosca to commissioning")
+ commissioning_payload = jinja_env().get_template("commission_k8s.json.j2").render(chartmuseumIp=chartmuseum_ip, chartmuseumPort=chartmuseum_port, chartVersion=chart_version, chartName=chart_name, releaseName=release_name)
+ instance_payload = jinja_env().get_template("create_instance_k8s.json.j2").render(chartmuseumIp=chartmuseum_ip, chartmuseumPort=chartmuseum_port, chartVersion=chart_version, chartName=chart_name, releaseName=release_name, instanceName=usecase_name)
+ assert clcommissioning_utils.create_instance(usecase_name, commissioning_payload, instance_payload) is True
+
+ logger.info("Check if odu-app ics version is up")
+ wait(lambda: is_rapp_up(chart_name), sleep_seconds=5, timeout_seconds=300, waiting_for="Odu app ics version to be up")