Commit e81b76b4 authored by Joanne Hugé's avatar Joanne Hugé

wip

parent c1b9265c
...@@ -13,6 +13,11 @@ class WebsocketTestClass(e2e.EndToEndTestCase): ...@@ -13,6 +13,11 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
cls.enb_instance_name = 'e2e-ors70-enb-1733404208' cls.enb_instance_name = 'e2e-ors70-enb-1733404208'
cls.ue_instance_name = 'e2e-sb005-ue-1733403458' cls.ue_instance_name = 'e2e-sb005-ue-1733403458'
cls.ue_cell_instance_name = 'e2e-sb005-ue-cell-1733403899'
# Retry configurations
cls.max_retries = 1
cls.retry_delay = 1 # seconds
cls.update_parameters("enb", cls.update_parameters("enb",
{ {
...@@ -21,7 +26,8 @@ class WebsocketTestClass(e2e.EndToEndTestCase): ...@@ -21,7 +26,8 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
"enb_drb_stats_enabled": False, "enb_drb_stats_enabled": False,
"xlog_forwarding_enabled": False "xlog_forwarding_enabled": False
}) })
cls.update_parameters("ue", cls.update_parameters("ue", {"amarisoft_version": "v2022-12-16.1733497882"})
cls.update_parameters("ue#cell",
{ {
"cell_type": "lte", "cell_type": "lte",
"cell_kind": "ue", "cell_kind": "ue",
...@@ -81,15 +87,17 @@ class WebsocketTestClass(e2e.EndToEndTestCase): ...@@ -81,15 +87,17 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
@classmethod @classmethod
def update_parameters(cls, name, parameters): def update_parameters(cls, name, parameters):
instance_name = cls.get(f"{name}_instance_name") sr_type = name.split('#')[0]
instance_infos = cls.getInstanceInfos() shared = '#' in name
name = name.replace('#', '_')
cls.logger.info(f"Update parameters for {instance_name}") instance_name = getattr(cls, f"{name}_instance_name")
instance_infos = cls.getInstanceInfos(instance_name)
json_parameters = json.dumps(parameters) json_parameters = json.dumps(parameters)
cls.logger.info(f"Update parameters for {instance_name}")
cls.retry_request(cls.request, instance_infos.software_url, cls.retry_request(cls.request, instance_infos.software_url,
instance_name instance_name,
shared=shared,
partition_parameter_kw={'_': json_parameters}, partition_parameter_kw={'_': json_parameters},
software_type=name) software_type=name)
@classmethod @classmethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment