<!--

 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>
        <repeatCount>1</repeatCount>
        <TestCaseRequestedList>
 111110
 111111
 111112
 000001
 000002
 000003
 010000
 000004
 333333
 010001
 010002
 010003
 020005
 002006
 444444
 100002
 100001
 222221
 222222
        </TestCaseRequestedList>
        <TestCaseExclusionList></TestCaseExclusionList>

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

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

        <testCase id="222221">
                <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 id="222222">
                <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>

        <testCase id="111112">
                <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 id="000001">
                <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 id="000002">
                <class>Deploy_Object</class>
                <desc>Deploy OAI FlexRIC</desc>
                <node>localhost</node>
                <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
                <services>oai-flexric</services>
        </testCase>

        <testCase id="000003">
                <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 id="000004">
                <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 id="020005">
                <class>Ping</class>
                <desc>Ping ext-dn from both UEs</desc>
                <id>rfsim5g_ue rfsim5g_ue2</id>
                <nodes>carabe carabe</nodes>
                <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 id="333333">
                <class>Attach_UE</class>
                <desc>Attach OAI UE 1 and 2</desc>
                <id>rfsim5g_ue rfsim5g_ue2</id>
                <nodes>carabe carabe</nodes>
        </testCase>

        <testCase id="444444">
                <class>Detach_UE</class>
                <desc>Detach OAI UE 1 and 2</desc>
                <id>rfsim5g_ue rfsim5g_ue2</id>
                <nodes>carabe carabe</nodes>
        </testCase>

        <testCase id="100001">
                <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 id="100002">
                <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 id="010000">
                <class>Deploy_Object</class>
                <desc>RC monitoring</desc>
                <node>localhost</node>
                <yaml_path>ci-scripts/yaml_files/5g_rfsimulator_flexric</yaml_path>
                <services>xapp-rc-moni</services>
        </testCase>

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

        <testCase id="010002">
                <class>Deploy_Object</class>
                <desc>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 id="010003">
                <class>Deploy_Object</class>
                <desc>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>

</testCaseList>
