<!--

 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>rfsim-5gnr-flexric</htmlTabRef>
  <htmlTabName>Monolithic SA TDD gNB and FlexRic Integration</htmlTabName>
  <htmlTabIcon>wrench</htmlTabIcon>

  <testCase>
    <class>Pull_Local_Registry</class>
    <desc>Pull Images from Local Registry</desc>
    <node>localhost</node>
    <images>oai-gnb oai-nr-ue</images>
  </testCase>

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

  <testCase>
    <class>Custom_Command</class>
    <desc>Updating CN5G images</desc>
    <node>localhost</node>
    <command>docker compose -f ../doc/tutorial_resources/oai-cn5g/docker-compose.yaml pull</command>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy OAI 5G CoreNetwork</desc>
    <node>localhost</node>
    <yaml_path>doc/tutorial_resources/oai-cn5g</yaml_path>
    <services>mysql oai-nrf oai-udr oai-udm oai-ausf oai-amf oai-smf oai-upf oai-ext-dn</services>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy OAI nearRT-RIC</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>nearRT-RIC</services>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy OAI 5G gNB in RF sim SA</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>oai-gnb</services>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy RC monitoring</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-rc-moni</services>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy 2 OAI 5G NR-UEs in RF sim SA</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>oai-nr-ue oai-nr-ue2</services>
  </testCase>

  <testCase>
    <class>Attach_UE</class>
    <desc>Attach OAI UE 1 and 2</desc>
    <id>rfsim5g_ue rfsim5g_ue2</id>
    <node>carabe</node>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy KPM monitoring</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-kpm-moni</services>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy KPM monitoring and RC control</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-kpm-rc</services>
  </testCase>

  <testCase>
    <class>Deploy_Object</class>
    <desc>Deploy custom SMs monitoring</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-gtp-mac-rlc-pdcp-moni</services>
  </testCase>

  <testCase>
    <class>Ping</class>
    <desc>Ping ext-dn from both UEs</desc>
    <id>rfsim5g_ue rfsim5g_ue2</id>
    <node>carabe</node>
    <svr_id>oai_ext_dn</svr_id>
    <svr_node>carabe</svr_node>
    <ping_args>-c 20</ping_args>
    <ping_packetloss_threshold>5</ping_packetloss_threshold>
  </testCase>

  <testCase>
    <class>Detach_UE</class>
    <desc>Detach OAI UE 1 and 2</desc>
    <id>rfsim5g_ue rfsim5g_ue2</id>
    <node>carabe</node>
  </testCase>

  <testCase>
    <class>Stop_Object</class>
    <desc>Stop RC monitoring xApp</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-rc-moni</services>
  </testCase>

  <testCase>
    <class>Stop_Object</class>
    <desc>Stop KPM monitoring xApp</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-kpm-moni</services>
  </testCase>

  <testCase>
    <class>Stop_Object</class>
    <desc>Stop KPM monitoring and RC control xApp</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-kpm-rc</services>
  </testCase>

  <testCase>
    <class>Stop_Object</class>
    <desc>Stop custom SMs monitoring xApp</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>xapp-gtp-mac-rlc-pdcp-moni</services>
  </testCase>

  <testCase>
    <class>Stop_Object</class>
    <desc>Stop OAI UEs</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>oai-nr-ue oai-nr-ue2</services>
  </testCase>

  <testCase>
    <class>Stop_Object</class>
    <desc>Stop OAI gNB</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>oai-gnb</services>
  </testCase>

  <testCase>
    <class>Stop_Object</class>
    <desc>Stop nearRT-RIC</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <services>nearRT-RIC</services>
  </testCase>

  <testCase>
    <class>Undeploy_Object</class>
    <desc>Undeploy RAN and FlexRIC</desc>
    <node>localhost</node>
    <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
    <always_exec>true</always_exec>
  </testCase>

  <testCase>
    <class>Undeploy_Object</class>
    <desc>Undeploy Core Network</desc>
    <node>localhost</node>
    <yaml_path>doc/tutorial_resources/oai-cn5g</yaml_path>
    <always_exec>true</always_exec>
  </testCase>

  <testCase>
    <class>Clean_Test_Server_Images</class>
    <desc>Clean Test Images on Test Server</desc>
    <node>localhost</node>
    <images>oai-gnb oai-nr-ue</images>
    <always_exec>true</always_exec>
  </testCase>

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

</testCaseList>
