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

<testCaseList>
  <htmlTabRef>test-tdd-05-if4-5</htmlTabRef>
  <htmlTabName>Test-TDD-05MHz-TM1-IF4.5</htmlTabName>
  <htmlTabIcon>tasks</htmlTabIcon>

  <testCase>
    <class>Custom_Command</class>
    <desc>Reset USRP</desc>
    <node>starsky</node>
    <command>sudo -S b2xx_fx3_utils --reset-device</command>
  </testCase>

  <testCase>
    <class>Custom_Command</class>
    <desc>Disable Sleep States</desc>
    <node>starsky</node>
    <command>sudo cpupower idle-set -D 0</command>
  </testCase>

  <testCase>
    <class>Pull_Local_Registry</class>
    <desc>Pull Images from Local Registry</desc>
    <node>starsky</node>
    <images>oai-enb</images>
  </testCase>

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

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy RRU (TDD/Band40/5MHz/B200) in a container</desc>
    <node>starsky</node>
    <yaml_path>ci-scripts/yaml_files/lte_b200_tdd_05Mhz_if4.5</yaml_path>
    <services>rru_tdd</services>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy RCC (TDD/Band40/5MHz) in a container</desc>
    <node>starsky</node>
    <yaml_path>ci-scripts/yaml_files/lte_b200_tdd_05Mhz_if4.5</yaml_path>
    <services>rcc_tdd</services>
  </testCase>

  <testCase>
    <class>Attach_UE</class>
    <desc>Attach UE</desc>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

  <testCase>
    <class>Ping</class>
    <desc>ping (5MHz - 20 sec)</desc>
    <ping_args>-c 20</ping_args>
    <ping_packetloss_threshold>25</ping_packetloss_threshold>
    <id>adb_ue_1 adb_ue_2</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - DL/6.5Mbps/UDP)(30 sec)(balanced)</desc>
    <iperf_args>-u -b 6.5M -t 30 -R</iperf_args>
    <iperf_packetloss_threshold>50</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>50</iperf_bitrate_threshold>
    <iperf_profile>balanced</iperf_profile>
    <id>adb_ue_1 adb_ue_2</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - DL/6.5Mbps/UDP)(30 sec)(single-ue)</desc>
    <iperf_args>-u -b 6.5M -t 30 -R</iperf_args>
    <iperf_packetloss_threshold>50</iperf_packetloss_threshold>
    <id>adb_ue_1</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - DL/TCP)(30 sec)(single-ue profile)</desc>
    <iperf_args>-t 30 -R</iperf_args>
    <id>adb_ue_1</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - DL/TCP)(30 sec)</desc>
    <iperf_args>-t 30 -R</iperf_args>
    <id>adb_ue_1 adb_ue_2</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - UL/2Mbps/UDP)(30 sec)(balanced)</desc>
    <iperf_args>-u -b 2M -t 30</iperf_args>
    <iperf_packetloss_threshold>50</iperf_packetloss_threshold>
    <iperf_profile>balanced</iperf_profile>
    <id>adb_ue_1 adb_ue_2</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - UL/2Mbps/UDP)(30 sec)(single-ue)</desc>
    <iperf_args>-u -b 2M -t 30</iperf_args>
    <iperf_packetloss_threshold>50</iperf_packetloss_threshold>
    <id>adb_ue_1</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - UL/TCP)(30 sec)(single-ue)</desc>
    <iperf_args>-t 30</iperf_args>
    <id>adb_ue_1</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Iperf</class>
    <desc>iperf (5MHz - UL/TCP)(30 sec)</desc>
    <iperf_args>-t 30</iperf_args>
    <id>adb_ue_1 adb_ue_2</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>Detach_UE</class>
    <always_exec>true</always_exec>
    <desc>Detach UE</desc>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

  <testCase>
    <class>Terminate_UE</class>
    <always_exec>true</always_exec>
    <desc>Terminate UE</desc>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

  <testCase>
    <class>Undeploy_Object</class>
    <always_exec>true</always_exec>
    <desc>Undeploy RRU/RCC</desc>
    <node>starsky</node>
    <yaml_path>ci-scripts/yaml_files/lte_b200_tdd_05Mhz_if4.5</yaml_path>
    <analysis>
      <services>rru_tdd=EndsWithBye rcc_tdd=EndsWithBye</services>
    </analysis>
  </testCase>

  <testCase>
    <class>Custom_Command</class>
    <always_exec>true</always_exec>
    <desc>Enable Sleep States</desc>
    <node>starsky</node>
    <command>sudo cpupower idle-set -E</command>
  </testCase>

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

</testCaseList>
