CI: Automatically enumerate test cases, remove hardcoded IDs

Update all XML files in ci-scripts folder, using Python script
attached in MR !3844.
https://gitlab.eurecom.fr/oai/openairinterface5g/-/merge_requests/3844#note_198132
This commit is contained in:
Jaroslava Fiedlerova
2026-01-14 23:43:03 +01:00
parent 9b0bb594f0
commit 12f4167f99
100 changed files with 7124 additions and 7806 deletions
@@ -21,261 +21,226 @@
-->
<testCaseList>
<htmlTabRef>TEST-NSA-FR1-TM1-B200</htmlTabRef>
<htmlTabName>NSA SanityCheck with QUECTEL</htmlTabName>
<htmlTabIcon>tasks</htmlTabIcon>
<TestCaseRequestedList>
200000
100000
500000
111110
111111
000100
010000
800833
030101
800834
030102
010001
050000
050001
070001
070000
070002
050002
050003
010010
010002
030202
030201
060000
300000
600000
222220
222221
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<htmlTabRef>TEST-NSA-FR1-TM1-B200</htmlTabRef>
<htmlTabName>NSA SanityCheck with QUECTEL</htmlTabName>
<htmlTabIcon>tasks</htmlTabIcon>
<testCase id="111110">
<class>Pull_Local_Registry</class>
<desc>Pull Images from Local Registry</desc>
<node>nepes</node>
<images>oai-enb</images>
</testCase>
<testCase>
<class>Custom_Command</class>
<desc>Disable Sleep States (nepes)</desc>
<node>nepes</node>
<command>sudo cpupower idle-set -D 0</command>
</testCase>
<testCase id="111111">
<class>Pull_Local_Registry</class>
<desc>Pull Images from Local Registry</desc>
<node>ofqot</node>
<images>oai-gnb</images>
</testCase>
<testCase>
<class>Custom_Command</class>
<desc>Reset USRP on nepes</desc>
<node>nepes</node>
<command>sudo -S /usr/local/lib/uhd/utils/b2xx_fx3_utils --reset-device</command>
</testCase>
<testCase id = "100000">
<class>Custom_Command</class>
<desc>Reset USRP on nepes</desc>
<node>nepes</node>
<command>sudo -S /usr/local/lib/uhd/utils/b2xx_fx3_utils --reset-device</command>
</testCase>
<testCase>
<class>Custom_Command</class>
<desc>Disable Sleep States (ofqot)</desc>
<node>ofqot</node>
<command>sudo cpupower idle-set -D 0</command>
</testCase>
<testCase id="200000">
<class>Custom_Command</class>
<desc>Disable Sleep States (nepes)</desc>
<node>nepes</node>
<command>sudo cpupower idle-set -D 0</command>
</testCase>
<testCase id="300000">
<class>Custom_Command</class>
<testCase>
<class>Pull_Local_Registry</class>
<desc>Pull Images from Local Registry</desc>
<node>nepes</node>
<images>oai-enb</images>
</testCase>
<testCase>
<class>Pull_Local_Registry</class>
<desc>Pull Images from Local Registry</desc>
<node>ofqot</node>
<images>oai-gnb</images>
</testCase>
<testCase>
<class>DeployCoreNetwork</class>
<desc>Start EPC</desc>
<cn_id>ltebox-nepes</cn_id>
</testCase>
<testCase>
<class>Initialize_UE</class>
<desc>Initialize Quectel</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>Create_Workspace</class>
<desc>Create new Workspace</desc>
<node>nepes</node>
</testCase>
<testCase>
<class>Deploy_Object</class>
<desc>Deploy eNB (FDD/Band7/5MHz/B200) in a container</desc>
<node>nepes</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_enb</yaml_path>
</testCase>
<testCase>
<class>Create_Workspace</class>
<desc>Create new Workspace</desc>
<node>ofqot</node>
</testCase>
<testCase>
<class>Deploy_Object</class>
<desc>Deploy gNB (TDD/Band78/40MHz/B200) in a container</desc>
<node>ofqot</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_gnb</yaml_path>
</testCase>
<testCase>
<class>Attach_UE</class>
<desc>Attach UE</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 20pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 20</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 100 -i 0.2</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase>
<class>Iperf</class>
<desc>iperf (UL/8Mbps/UDP)(60 sec)(single-ue profile)</desc>
<iperf_args>-u -b 8M -t 60</iperf_args>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<iperf_packetloss_threshold>1</iperf_packetloss_threshold>
<iperf_bitrate_threshold>95</iperf_bitrate_threshold>
</testCase>
<testCase>
<class>Iperf</class>
<desc>iperf (DL/70Mbps/UDP)(60 sec)(single-ue profile)</desc>
<iperf_args>-u -b 70M -t 60 -R</iperf_args>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<iperf_packetloss_threshold>25</iperf_packetloss_threshold>
<iperf_bitrate_threshold>80</iperf_bitrate_threshold>
</testCase>
<testCase>
<class>Iperf</class>
<desc>iperf (BIDIR TCP)(10 sec)(single-ue profile)</desc>
<iperf_args>-t 10 --bidir</iperf_args>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 20pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 20</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 100 -i 0.2</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase>
<class>Detach_UE</class>
<always_exec>true</always_exec>
<desc>Enable Sleep States (nepes)</desc>
<node>nepes</node>
<command>sudo cpupower idle-set -E</command>
</testCase>
<testCase id="500000">
<class>Custom_Command</class>
<desc>Disable Sleep States (ofqot)</desc>
<node>ofqot</node>
<command>sudo cpupower idle-set -D 0</command>
</testCase>
<testCase id="600000">
<class>Custom_Command</class>
<desc>Detach UE</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>Terminate_UE</class>
<always_exec>true</always_exec>
<desc>Enable Sleep States (ofqot)</desc>
<node>ofqot</node>
<command>sudo cpupower idle-set -E</command>
</testCase>
<desc>Terminate Quectel</desc>
<id>idefix</id>
</testCase>
<testCase id="000100">
<class>DeployCoreNetwork</class>
<desc>Start EPC</desc>
<cn_id>ltebox-nepes</cn_id>
</testCase>
<testCase id="010000">
<class>Initialize_UE</class>
<desc>Initialize Quectel</desc>
<id>idefix</id>
</testCase>
<testCase id="010002">
<class>Terminate_UE</class>
<testCase>
<class>Undeploy_Object</class>
<always_exec>true</always_exec>
<desc>Terminate Quectel</desc>
<id>idefix</id>
</testCase>
<testCase id="010001">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<id>idefix</id>
</testCase>
<testCase id= "010010">
<class>Detach_UE</class>
<desc>Undeploy gNB</desc>
<node>ofqot</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_gnb</yaml_path>
<d_retx_th>10,100,100,100</d_retx_th>
<u_retx_th>10,100,100,100</u_retx_th>
</testCase>
<testCase>
<class>Undeploy_Object</class>
<always_exec>true</always_exec>
<desc>Detach UE</desc>
<id>idefix</id>
</testCase>
<testCase id="800833">
<class>Create_Workspace</class>
<desc>Create new Workspace</desc>
<node>nepes</node>
</testCase>
<testCase id="030101">
<class>Deploy_Object</class>
<desc>Deploy eNB (FDD/Band7/5MHz/B200) in a container</desc>
<node>nepes</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_enb</yaml_path>
</testCase>
<testCase id="800834">
<class>Create_Workspace</class>
<desc>Create new Workspace</desc>
<node>ofqot</node>
</testCase>
<testCase id="030102">
<class>Deploy_Object</class>
<desc>Deploy gNB (TDD/Band78/40MHz/B200) in a container</desc>
<node>ofqot</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_gnb</yaml_path>
</testCase>
<desc>Undeploy eNB</desc>
<node>nepes</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_enb</yaml_path>
</testCase>
<testCase id="000001">
<class>IdleSleep</class>
<desc>Sleep</desc>
<idle_sleep_time_in_sec>5</idle_sleep_time_in_sec>
</testCase>
<testCase id="000002">
<class>IdleSleep</class>
<desc>Sleep</desc>
<idle_sleep_time_in_sec>20</idle_sleep_time_in_sec>
</testCase>
<testCase id="050000">
<class>Ping</class>
<desc>Ping: 20pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 20</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase id="050001">
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 100 -i 0.2</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase id="050002">
<class>Ping</class>
<desc>Ping: 20pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 20</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase id="050003">
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<ping_args>-c 100 -i 0.2</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>15</ping_rttavg_threshold>
</testCase>
<testCase id="070000">
<class>Iperf</class>
<desc>iperf (DL/70Mbps/UDP)(60 sec)(single-ue profile)</desc>
<iperf_args>-u -b 70M -t 60 -R</iperf_args>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<iperf_packetloss_threshold>25</iperf_packetloss_threshold>
<iperf_bitrate_threshold>80</iperf_bitrate_threshold>
</testCase>
<testCase id="070001">
<class>Iperf</class>
<desc>iperf (UL/8Mbps/UDP)(60 sec)(single-ue profile)</desc>
<iperf_args>-u -b 8M -t 60</iperf_args>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
<iperf_packetloss_threshold>1</iperf_packetloss_threshold>
<iperf_bitrate_threshold>95</iperf_bitrate_threshold>
</testCase>
<testCase id="070002">
<class>Iperf</class>
<desc>iperf (BIDIR TCP)(10 sec)(single-ue profile)</desc>
<iperf_args>-t 10 --bidir</iperf_args>
<id>idefix</id>
<svr_id>ltebox-nepes</svr_id>
</testCase>
<testCase id="030201">
<class>Undeploy_Object</class>
<always_exec>true</always_exec>
<desc>Undeploy eNB</desc>
<node>nepes</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_enb</yaml_path>
</testCase>
<testCase id="060000">
<class>UndeployCoreNetwork</class>
<desc>Terminate EPC</desc>
<always_exec>true</always_exec>
<cn_id>ltebox-nepes</cn_id>
</testCase>
<testCase id="030202">
<class>Undeploy_Object</class>
<always_exec>true</always_exec>
<desc>Undeploy gNB</desc>
<node>ofqot</node>
<yaml_path>ci-scripts/yaml_files/nsa_b200_gnb</yaml_path>
<d_retx_th>10,100,100,100</d_retx_th>
<u_retx_th>10,100,100,100</u_retx_th>
</testCase>
<testCase id="222220">
<class>Clean_Test_Server_Images</class>
<testCase>
<class>UndeployCoreNetwork</class>
<desc>Terminate EPC</desc>
<always_exec>true</always_exec>
<desc>Clean Test Images on Test Server</desc>
<node>nepes</node>
<images>oai-enb</images>
</testCase>
<cn_id>ltebox-nepes</cn_id>
</testCase>
<testCase id="222221">
<class>Clean_Test_Server_Images</class>
<testCase>
<class>Custom_Command</class>
<always_exec>true</always_exec>
<desc>Clean Test Images on Test Server</desc>
<node>ofqot</node>
<images>oai-gnb</images>
</testCase>
<desc>Enable Sleep States (nepes)</desc>
<node>nepes</node>
<command>sudo cpupower idle-set -E</command>
</testCase>
<testCase>
<class>Custom_Command</class>
<always_exec>true</always_exec>
<desc>Enable Sleep States (ofqot)</desc>
<node>ofqot</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>nepes</node>
<images>oai-enb</images>
</testCase>
<testCase>
<class>Clean_Test_Server_Images</class>
<always_exec>true</always_exec>
<desc>Clean Test Images on Test Server</desc>
<node>ofqot</node>
<images>oai-gnb</images>
</testCase>
</testCaseList>