<!--

 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>TEST-SA-FR1-F1-B200</htmlTabRef>
  <htmlTabName>40 MHz TDD F1 SA</htmlTabName>
  <htmlTabIcon>tasks</htmlTabIcon>
  <repeatCount>1</repeatCount>
  <TestCaseRequestedList>
    100000
    110002
    130101
    130102
    100001
    110000
    110001
    100001
    150000
    150001
    110011
    110001
    150001
    160001
    100002
    160002
    150001
    110011
    110001
    150000
    170001
    170000
    170002
    110011
    110002
    100001
    130201
    200000
  </TestCaseRequestedList>
  <TestCaseExclusionList></TestCaseExclusionList>

  <testCase id="110000">
    <class>Initialize_UE</class>
    <desc>Initialize Quectel</desc>
    <id>idefix</id>
  </testCase>
  <testCase id="110002">
    <class>Terminate_UE</class>
    <desc>Terminate Quectel</desc>
    <id>idefix</id>
  </testCase>
  <testCase id="110001">
    <class>Attach_UE</class>
    <desc>Attach Quectel</desc>
    <id>idefix</id>
  </testCase>
  <testCase id="110011">
    <class>Detach_UE</class>
    <desc>Detach Quectel</desc>
    <id>idefix</id>
  </testCase>

  <testCase id="130101">
    <class>Deploy_Object</class>
    <desc>Deploy gNB-CU in a container</desc>
    <yaml_path>ci-scripts/yaml_files/sa_f1_b200_gnb</yaml_path>
    <eNB_instance>0</eNB_instance>
    <eNB_serverId>0</eNB_serverId>
    <services>gnb_cu</services>
  </testCase>

  <testCase id="130102">
    <class>Deploy_Object</class>
    <desc>Deploy gNB-DU (TDD/Band78/40MHz/B200) in a container</desc>
    <yaml_path>ci-scripts/yaml_files/sa_f1_b200_gnb</yaml_path>
    <eNB_instance>0</eNB_instance>
    <eNB_serverId>0</eNB_serverId>
    <services>gnb_du_tdd</services>
  </testCase>

  <testCase id="100000">
    <class>Custom_Command</class>
    <desc>Disable Sleep States</desc>
    <node>ofqot</node>
    <command>sudo cpupower idle-set -D 0</command>
  </testCase>
  <testCase id="200000">
    <class>Custom_Command</class>
    <desc>Enable Sleep States</desc>
    <node>ofqot</node>
    <command>sudo cpupower idle-set -E</command>
  </testCase>

  <testCase id="100001">
    <class>IdleSleep</class>
    <desc>Sleep</desc>
    <idle_sleep_time_in_sec>5</idle_sleep_time_in_sec>
  </testCase>

  <testCase id="100002">
    <class>IdleSleep</class>
    <desc>Sleep</desc>
    <idle_sleep_time_in_sec>10</idle_sleep_time_in_sec>
  </testCase>

  <testCase id="150000">
    <class>Ping</class>
    <desc>Ping: 20pings in 20sec</desc>
    <id>idefix</id>
    <ping_args>-c 20 %cn_ip%</ping_args>
    <ping_packetloss_threshold>1</ping_packetloss_threshold>
    <ping_rttavg_threshold>25</ping_rttavg_threshold>
  </testCase>

  <testCase id="150001">
    <class>Ping</class>
    <desc>Ping: 100pings in 20sec</desc>
    <id>idefix</id>
    <ping_args>-c 100 -i 0.2 %cn_ip%</ping_args>
    <ping_packetloss_threshold>1</ping_packetloss_threshold>
    <ping_rttavg_threshold>110</ping_rttavg_threshold>
  </testCase>

  <testCase id="150002">
    <class>Ping</class>
    <desc>Ping: 20pings in 20sec</desc>
    <id>idefix</id>
    <ping_args>-c 20 %cn_ip%</ping_args>
    <ping_packetloss_threshold>1</ping_packetloss_threshold>
    <ping_rttavg_threshold>110</ping_rttavg_threshold>
  </testCase>

  <testCase id="150003">
    <class>Ping</class>
    <desc>Ping: 100pings in 20sec</desc>
    <id>idefix</id>
    <ping_args>-c 100 -i 0.2 %cn_ip%</ping_args>
    <ping_packetloss_threshold>1</ping_packetloss_threshold>
    <ping_rttavg_threshold>110</ping_rttavg_threshold>
  </testCase>

  <testCase id="170000">
    <class>Iperf</class>
    <desc>iperf (DL/80Mbps/UDP)(30 sec)</desc>
    <iperf_args>-u -b 80M -t 30 -i 1 -fm</iperf_args>
    <direction>DL</direction>
    <id>idefix</id>
    <iperf_packetloss_threshold>10</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>95</iperf_bitrate_threshold>
    <iperf_profile>single-ue</iperf_profile>
  </testCase>

  <testCase id="170001">
    <class>Iperf</class>
    <desc>iperf (UL/8Mbps/UDP)(30 sec)</desc>
    <iperf_args>-u -b 8M -t 30 -i 1 -fm</iperf_args>
    <direction>UL</direction>
    <id>idefix</id>
    <iperf_packetloss_threshold>1</iperf_packetloss_threshold>
    <iperf_bitrate_threshold>95</iperf_bitrate_threshold>
    <iperf_profile>single-ue</iperf_profile>
  </testCase>

  <testCase id="170002">
    <class>Iperf</class>
    <desc>iperf (BIDIR TCP)(20 sec)(single-ue profile)</desc>
    <iperf_args>-t 20 --bidir</iperf_args>
    <direction>BIDIR</direction>
    <id>idefix</id>
    <iperf_profile>single-ue</iperf_profile>
  </testCase>

  <testCase id="160001">
    <class>Custom_Command</class>
    <desc>Trigger Reestablishment (on DU)</desc>
    <node>ofqot</node>
    <command>echo ci force_reestab | nc -N 192.168.68.195 9090 | grep -E 'Reset RLC counters of UE RNTI [0-9a-f]{4} to trigger reestablishment'</command>
    <command_fail>yes</command_fail>
  </testCase>
  <testCase id="160002">
    <class>Custom_Command</class>
    <desc>Verify Reestablishment (on CU)</desc>
    <node>ofqot</node>
    <command>echo ci get_reestab_count | nc -N 192.168.68.194 9090 | grep -E 'UE RNTI [0-9a-f]{4} reestab 1'</command>
    <command_fail>yes</command_fail>
  </testCase>

  <testCase id="130201">
    <class>Undeploy_Object</class>
    <desc>Undeploy CU-DU</desc>
    <yaml_path>ci-scripts/yaml_files/sa_f1_b200_gnb</yaml_path>
    <eNB_instance>0</eNB_instance>
    <eNB_serverId>0</eNB_serverId>
    <d_retx_th>10,100,100,100</d_retx_th>
    <u_retx_th>10,100,100,100</u_retx_th>
  </testCase>

</testCaseList>

