<!--

 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

Replaces xml_files/enb_usrp210_band7_test_05mhz_tm1_rrc_inactivity_no_flexran.xml

-->
<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>
  </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>
