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

<testCaseList>
  <htmlTabRef>test-fdd-05-rrc-inactivity</htmlTabRef>
  <htmlTabName>Test-FDD-05MHz-TM1-RRC-Inactivity</htmlTabName>
  <htmlTabIcon>tasks</htmlTabIcon>

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

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

  <testCase>
    <class>Initialize_UE</class>
    <desc>Initialize UE</desc>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

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

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy eNB (FDD/Band7/5MHz/B200) in a container</desc>
    <node>hutch</node>
    <yaml_path>ci-scripts/yaml_files/lte_b200_fdd_05Mhz_tm1_no_rrc_activity</yaml_path>
  </testCase>

  <testCase>
    <class>CheckStatusUE</class>
    <desc>Check UE(s) status before attachment</desc>
    <expectedNbOfConnectedUEs>0</expectedNbOfConnectedUEs>
    <id>adb_ue_1 adb_ue_2</id>
  </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>5</ping_packetloss_threshold>
    <id>adb_ue_1 adb_ue_2</id>
    <svr_id>ltebox-nano</svr_id>
  </testCase>

  <testCase>
    <class>CheckStatusUE</class>
    <desc>Check UE(s) status before data disabling</desc>
    <expectedNbOfConnectedUEs>2</expectedNbOfConnectedUEs>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

  <testCase>
    <class>DataDisable_UE</class>
    <desc>Disabling Data Service on UE</desc>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

  <testCase>
    <class>IdleSleep</class>
    <desc>Waiting for 55 seconds</desc>
    <idle_sleep_time_in_sec>55</idle_sleep_time_in_sec>
  </testCase>

  <testCase>
    <class>CheckStatusUE</class>
    <desc>Check UE(s) status after data disabling</desc>
    <expectedNbOfConnectedUEs>0</expectedNbOfConnectedUEs>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

  <testCase>
    <class>DataEnable_UE</class>
    <desc>Enabling Data Service on UE</desc>
    <id>adb_ue_1 adb_ue_2</id>
  </testCase>

  <testCase>
    <class>IdleSleep</class>
    <desc>Waiting for 10 seconds</desc>
    <idle_sleep_time_in_sec>10</idle_sleep_time_in_sec>
  </testCase>

  <testCase>
    <class>CheckStatusUE</class>
    <desc>Check UE(s) status after data re-enabling</desc>
    <expectedNbOfConnectedUEs>2</expectedNbOfConnectedUEs>
    <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>5</ping_packetloss_threshold>
    <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 eNB</desc>
    <node>hutch</node>
    <yaml_path>ci-scripts/yaml_files/lte_b200_fdd_05Mhz_tm1_no_rrc_activity</yaml_path>
    <analysis>
      <services>enb_mono_fdd=EndsWithBye</services>
    </analysis>
  </testCase>

  <testCase>
    <class>Custom_Command</class>
    <always_exec>true</always_exec>
    <desc>Enable Sleep States</desc>
    <node>hutch</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>hutch</node>
    <images>oai-enb</images>
  </testCase>

</testCaseList>
