<!--

 Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The OpenAirInterface Software Alliance licenses this file to You under
 the OAI Public License, Version 1.1  (the "License"); you may not use this file
 except in compliance with the License.
 You may obtain a copy of the License at

      http://www.openairinterface.org/?page_id=698

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 For more information about the OpenAirInterface (OAI) Software Alliance:
      contact@openairinterface.org

-->
<testCaseList>
  <htmlTabRef>LONGRUN-5G-NRUE</htmlTabRef>
  <htmlTabName>Longrun 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>Iperf</class>
    <desc>iperf (DL/10Mbps/UDP)(10 min)</desc>
    <iperf_args>-u -b 10M -t 600 -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>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>Iperf</class>
    <desc>iperf (DL/10Mbps/UDP)(10 min)</desc>
    <iperf_args>-u -b 10M -t 600 -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>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>Iperf</class>
    <desc>iperf (DL/10Mbps/UDP)(10 min)</desc>
    <iperf_args>-u -b 10M -t 600 -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>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>Iperf</class>
    <desc>iperf (UL/2Mbps/UDP)(10 min)</desc>
    <iperf_args>-u -b 2M -t 600 -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>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>Iperf</class>
    <desc>iperf (UL/2Mbps/UDP)(10 min)</desc>
    <iperf_args>-u -b 2M -t 600 -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>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>Iperf</class>
    <desc>iperf (UL/2Mbps/UDP)(10 min)</desc>
    <iperf_args>-u -b 2M -t 600 -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>
  </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>
    <d_retx_th>20,100,100,100</d_retx_th>
    <u_retx_th>20,100,100,100</u_retx_th>
  </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>
