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

<testCaseList>
  <htmlTabRef>test-5g-fhi72-vvdn</htmlTabRef>
  <htmlTabName>100 MHz TDD SA VVDN</htmlTabName>
  <htmlTabIcon>tasks</htmlTabIcon>

  <testCase>
    <class>Custom_Script</class>
    <desc>Configure system for low-latency RT performance</desc>
    <node>cacofonix</node>
    <script>yaml_files/sa_fhi_7.2_vvdn_gnb/setup_config.sh</script>
  </testCase>

  <testCase>
    <class>Pull_Local_Registry</class>
    <desc>Pull Images from Local Registry</desc>
    <node>cacofonix</node>
    <images>oai-gnb-fhi72</images>
  </testCase>

  <testCase>
    <class>Create_Workspace</class>
    <desc>Create new Workspace for server 0</desc>
    <node>cacofonix</node>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy gNB (TDD/Band78/100MHz/VVDN) in a container</desc>
    <node>cacofonix</node>
    <yaml_path>ci-scripts/yaml_files/sa_fhi_7.2_vvdn_gnb</yaml_path>
  </testCase>

  <testCase>
    <class>Attach_UE</class>
    <desc>Attach UE</desc>
    <id>up2-fhi72</id>
  </testCase>

  <testCase>
    <class>Ping</class>
    <desc>Ping: 100 pings in 10 sec</desc>
    <id>up2-fhi72</id>
    <svr_id>oc-cn5g-20897</svr_id>
    <ping_args>-c 100 -i 0.1</ping_args>
    <ping_packetloss_threshold>1</ping_packetloss_threshold>
    <ping_rttavg_threshold>15</ping_rttavg_threshold>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (DL/600Mbps/UDP)(30 sec)</desc>
    <iperf_args>-u -b 600M -t 30 -R</iperf_args>
    <id>up2-fhi72</id>
    <iperf_packetloss_threshold>20</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>80</iperf_bitrate_threshold>
    <iperf_profile>balanced</iperf_profile>
    <svr_id>oc-cn5g-20897</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (UL/80Mbps/UDP)(30 sec)</desc>
    <iperf_args>-u -b 80M -t 30</iperf_args>
    <id>up2-fhi72</id>
    <iperf_packetloss_threshold>20</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>80</iperf_bitrate_threshold>
    <iperf_profile>balanced</iperf_profile>
    <svr_id>oc-cn5g-20897</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (DL/TCP)(30 sec)</desc>
    <iperf_args>-t 30 -R</iperf_args>
    <id>up2-fhi72</id>
    <iperf_tcp_rate_target>40</iperf_tcp_rate_target>
    <svr_id>oc-cn5g-20897</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (UL/TCP)(30 sec)</desc>
    <iperf_args>-t 30</iperf_args>
    <id>up2-fhi72</id>
    <iperf_tcp_rate_target>10</iperf_tcp_rate_target>
    <svr_id>oc-cn5g-20897</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>Optional iperf (DL/700Mbps/UDP)(30 sec)</desc>
    <may_fail>true</may_fail>
    <iperf_args>-u -b 700M -t 30 -R</iperf_args>
    <id>up2-fhi72</id>
    <iperf_packetloss_threshold>10</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>95</iperf_bitrate_threshold>
    <svr_id>oc-cn5g-20897</svr_id>
  </testCase>

  <testCase>
    <class>Detach_UE</class>
    <always_exec>true</always_exec>
    <desc>Detach UE</desc>
    <id>up2-fhi72</id>
  </testCase>

  <testCase>
    <class>IdleSleep</class>
    <desc>Sleep</desc>
    <idle_sleep_time_in_sec>5</idle_sleep_time_in_sec>
  </testCase>

  <testCase>
    <class>Undeploy_Object</class>
    <always_exec>true</always_exec>
    <desc>Undeploy gNB</desc>
    <node>cacofonix</node>
    <yaml_path>ci-scripts/yaml_files/sa_fhi_7.2_vvdn_gnb</yaml_path>
    <analysis>
      <services>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>cacofonix</node>
    <images>oai-gnb-fhi72</images>
  </testCase>

  <testCase>
    <class>Custom_Script</class>
    <always_exec>true</always_exec>
    <desc>Set CPU to idle state, set kernel parameters to default values</desc>
    <node>cacofonix</node>
    <script>yaml_files/sa_fhi_7.2_vvdn_gnb/setup_cleanup.sh</script>
  </testCase>

</testCaseList>
