diff --git a/test/all_nfs.robot b/test/all_nfs.robot new file mode 100644 index 0000000000000000000000000000000000000000..b2bff66f242a0d21ccbe27af6dae89bddca08df0 --- /dev/null +++ b/test/all_nfs.robot @@ -0,0 +1,42 @@ +# 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 +# --------------------------------------------------------------------- + +*** Settings *** +Library Process +Library CNTestLib.py +Library GNBSimTestLib.py +Resource common.robot + +Variables vars.py + +Suite Setup Launch NRF CN With PCF HTTP1 +Suite Teardown Suite Teardown Default + +Test Setup Test Setup With Gnbsim +Test Teardown Test Teardown With Gnbsim + +*** Test Cases *** + +Attach and Ping HTTP1 + [Tags] AMF SMF UDM NRF UDR AUSF UPF PCF + Start Gnbsim ${GNBSIM_IN_USE} + ${ip} = Check Gnbsim IP ${GNBSIM_IN_USE} + + Ping From Gnbsim ${GNBSIM_IN_USE} ${EXT_DN1_IP} diff --git a/test/common.robot b/test/common.robot index 9208ae8396402b9dab3a424b1a2a81dfc9020a8f..8c3f0ef31c5934b8ea861ce8b0dd8a7be496aa28 100644 --- a/test/common.robot +++ b/test/common.robot @@ -42,6 +42,20 @@ Launch NRF CN with PCF Start CN Check Core Network Health Status +Launch NRF CN with PCF HTTP1 + @{list} = Create List oai-amf oai-smf oai-udm oai-nrf oai-udr oai-ausf mysql oai-ext-dn oai-upf oai-pcf + Prepare Scenario ${list} nrf-cn-pcf + @{replace_list} = Create List smf support_features use_local_pcc_rules + Replace In Config ${replace_list} no + @{replace_list} = Create List smf support_features use_local_subscription_info + Replace In Config ${replace_list} no + @{replace_list} = Create List http_version + Replace In Config ${replace_list} 1 + + Start Trace core_network + Start CN + Check Core Network Health Status + Launch NRF CN For QoS @{list} = Create List oai-amf oai-smf oai-udm oai-nrf oai-udr oai-ausf mysql oai-ext-dn oai-ext-dn-2 oai-ext-dn-3 oai-upf oai-pcf Prepare Scenario ${list} nrf-cn-qos @@ -152,3 +166,14 @@ Deactive NF Registration in CN Config Replace In Config ${replace_list} no @{replace_list} = Create List amf support_features_options enable_smf_selection Replace In Config ${replace_list} no + +Test Setup With Gnbsim + ${gnbsim_name} = Prepare Gnbsim + Set Test Variable ${GNBSIM_IN_USE} ${gnbsim_name} + Start Trace ${TEST_NAME} + +Test Teardown With Gnbsim + Stop Gnbsim ${GNBSIM_IN_USE} + Collect All Gnbsim Logs + Down Gnbsim ${GNBSIM_IN_USE} + Stop Trace ${TEST_NAME} diff --git a/test/qos_tests.robot b/test/qos_tests.robot index 56624e8c910ed8cf6ccf128b9b4f487acbd987f4..1055a66152779c4eb1759ff5caf3fc728f09f2ed 100644 --- a/test/qos_tests.robot +++ b/test/qos_tests.robot @@ -29,8 +29,8 @@ Variables vars.py Suite Setup Launch NRF CN For QoS Suite Teardown Suite Teardown Default -Test Setup Test Setup QoS Tests -Test Teardown Test Teardown QoS Tests +Test Setup Test Setup With Gnbsim +Test Teardown Test Teardown With Gnbsim *** Test Cases *** @@ -125,15 +125,3 @@ QoS Flow GBR Session AMBR 2 Wait And Verify Iperf3 Result ${EXT_DN2_NAME} 5 Wait And Verify Iperf3 Result ${EXT_DN3_NAME} 10 -*** Keywords *** - -Test Setup QoS Tests - ${gnbsim_name} = Prepare Gnbsim - Set Test Variable ${GNBSIM_IN_USE} ${gnbsim_name} - Start Trace ${TEST_NAME} - -Test Teardown QoS Tests - Stop Gnbsim ${GNBSIM_IN_USE} - Collect All Gnbsim Logs - Down Gnbsim ${GNBSIM_IN_USE} - Stop Trace ${TEST_NAME}