<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->

<testCaseList>
  <htmlTabRef>TEST-5G-NRUE</htmlTabRef>
  <htmlTabName>40 MHz TDD SA</htmlTabName>
  <htmlTabIcon>tasks</htmlTabIcon>

  <testCase>
    <class>DeployCoreNetwork</class>
    <desc>Initialize 5G Core</desc>
    <cn_id>oc-cn5g</cn_id>
  </testCase>

  <testCase>
    <class>Pull_Cluster_Image</class>
    <desc>Pull Images from Cluster</desc>
    <images>oai-gnb</images>
    <node>avra</node>
  </testCase>

  <testCase>
    <class>Pull_Cluster_Image</class>
    <desc>Pull Images from Cluster</desc>
    <images>oai-nr-ue</images>
    <node>caracal</node>
  </testCase>

  <testCase>
    <class>Create_Workspace</class>
    <desc>Create new Workspace</desc>
    <node>avra</node>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy gNB (TDD/Band78/40MHz/N310) in a container</desc>
    <node>avra</node>
    <yaml_path>ci-scripts/yaml_files/5g_sa_n310_gnb</yaml_path>
    <num_attempts>3</num_attempts>
  </testCase>

  <testCase>
    <class>Create_Workspace</class>
    <desc>Create new Workspace</desc>
    <node>caracal</node>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy nrUE (TDD/Band78/40MHz/N310) in a container</desc>
    <yaml_path>ci-scripts/yaml_files/5g_sa_n310_nrue</yaml_path>
    <node>caracal</node>
    <num_attempts>3</num_attempts>
  </testCase>

  <testCase>
    <class>Attach_UE</class>
    <desc>Attach OAIUE</desc>
    <id>oai_ue_caracal</id>
  </testCase>

  <testCase>
    <class>Ping</class>
    <desc>Ping: 20pings in 20sec</desc>
    <id>oai_ue_caracal</id>
    <svr_id>oc-cn5g</svr_id>
    <ping_args>-c 20</ping_args>
    <ping_packetloss_threshold>1</ping_packetloss_threshold>
    <ping_rttavg_threshold>25</ping_rttavg_threshold>
  </testCase>

  <testCase>
    <class>Ping</class>
    <desc>Ping: 100pings in 20sec</desc>
    <id>oai_ue_caracal</id>
    <svr_id>oc-cn5g</svr_id>
    <ping_args>-c 100 -i 0.2</ping_args>
    <ping_packetloss_threshold>1</ping_packetloss_threshold>
    <ping_rttavg_threshold>30</ping_rttavg_threshold>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (DL/60Mbps/UDP)(30 sec)</desc>
    <iperf_args>-u -b 60M -t 30 -i 1 -R</iperf_args>
    <id>oai_ue_caracal</id>
    <svr_id>oc-cn5g</svr_id>
    <iperf_packetloss_threshold>25</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>80</iperf_bitrate_threshold>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (UL/20Mbps/UDP)(30 sec)</desc>
    <iperf_args>-u -b 20M -t 30 -i 1</iperf_args>
    <id>oai_ue_caracal</id>
    <svr_id>oc-cn5g</svr_id>
    <iperf_packetloss_threshold>25</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>80</iperf_bitrate_threshold>
  </testCase>

  <testCase>
    <class>Undeploy_Object</class>
    <always_exec>true</always_exec>
    <desc>Undeploy nr UE</desc>
    <node>caracal</node>
    <yaml_path>ci-scripts/yaml_files/5g_sa_n310_nrue</yaml_path>
    <analysis>
      <services>oai-nr-ue</services>
    </analysis>
  </testCase>

  <testCase>
    <class>Undeploy_Object</class>
    <always_exec>true</always_exec>
    <desc>Undeploy gNB</desc>
    <node>avra</node>
    <yaml_path>ci-scripts/yaml_files/5g_sa_n310_gnb</yaml_path>
    <analysis>
      <services>oai-gnb=RetxCheck=20,100,100,100 oai-gnb=EndsWithBye</services>
    </analysis>
  </testCase>

  <testCase>
    <class>Clean_Test_Server_Images</class>
    <always_exec>true</always_exec>
    <desc>Clean Test Images on Test Server</desc>
    <node>avra</node>
    <images>oai-gnb</images>
  </testCase>

  <testCase>
    <class>Clean_Test_Server_Images</class>
    <always_exec>true</always_exec>
    <desc>Clean Test Images on Test Server</desc>
    <node>caracal</node>
    <images>oai-nr-ue</images>
  </testCase>

  <testCase>
    <class>UndeployCoreNetwork</class>
    <desc>Terminate 5G Core</desc>
    <always_exec>true</always_exec>
    <cn_id>oc-cn5g</cn_id>
  </testCase>

</testCaseList>
