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
@@ -24,85 +24,43 @@
<htmlTabRef>TEST-SA-FR1-F1-B200</htmlTabRef>
<htmlTabName>10 MHz FDD F1 SA</htmlTabName>
<htmlTabIcon>tasks</htmlTabIcon>
<TestCaseRequestedList>
111111
100000
110002
800813
130101
130102
100001
110000
110001
100001
150000
150001
110011
110001
150001
160001
100002
160002
150001
110011
110001
150000
170001
170000
170002
170003
170004
110011
110002
100001
130201
200000
222222
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase id="111111">
<testCase>
<class>Pull_Local_Registry</class>
<desc>Pull Images from Local Registry</desc>
<node>ofqot</node>
<images>oai-gnb</images>
</testCase>
<testCase id="110000">
<class>Initialize_UE</class>
<desc>Initialize Quectel</desc>
<id>idefix</id>
<testCase>
<class>Custom_Command</class>
<desc>Disable Sleep States</desc>
<node>ofqot</node>
<command>sudo cpupower idle-set -D 0</command>
</testCase>
<testCase id="110002">
<testCase>
<class>Terminate_UE</class>
<always_exec>true</always_exec>
<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>
<always_exec>true</always_exec>
<desc>Detach Quectel</desc>
<id>idefix</id>
</testCase>
<testCase id="800813">
<testCase>
<class>Create_Workspace</class>
<desc>Create new Workspace</desc>
<node>ofqot</node>
</testCase>
<testCase id="130101">
<testCase>
<class>Deploy_Object</class>
<desc>Deploy gNB-CU in a container</desc>
<node>ofqot</node>
<yaml_path>ci-scripts/yaml_files/sa_f1_b200_gnb</yaml_path>
<services>gnb_cu</services>
</testCase>
<testCase id="130102">
<testCase>
<class>Deploy_Object</class>
<desc>Deploy gNB-DU (FDD/Band1/10MHz/B200) in a container</desc>
<node>ofqot</node>
@@ -110,36 +68,31 @@
<services>gnb_du_fdd</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>
<always_exec>true</always_exec>
<desc>Enable Sleep States</desc>
<node>ofqot</node>
<command>sudo cpupower idle-set -E</command>
</testCase>
<testCase id="100001">
<testCase>
<class>IdleSleep</class>
<desc>Sleep</desc>
<idle_sleep_time_in_sec>5</idle_sleep_time_in_sec>
</testCase>
<testCase id="100002">
<class>Ping</class>
<desc>Ping: 20pings</desc>
<testCase>
<class>Initialize_UE</class>
<desc>Initialize Quectel</desc>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<ping_args>-c 20 -i0.5 -w25</ping_args>
<ping_packetloss_threshold>80</ping_packetloss_threshold>
</testCase>
<testCase id="150000">
<testCase>
<class>Attach_UE</class>
<desc>Attach Quectel</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>IdleSleep</class>
<desc>Sleep</desc>
<idle_sleep_time_in_sec>5</idle_sleep_time_in_sec>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 20pings in 20sec</desc>
<id>idefix</id>
@@ -149,7 +102,7 @@
<ping_rttavg_threshold>25</ping_rttavg_threshold>
</testCase>
<testCase id="150001">
<testCase>
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
@@ -159,37 +112,86 @@
<ping_rttavg_threshold>110</ping_rttavg_threshold>
</testCase>
<testCase id="150002">
<testCase>
<class>Detach_UE</class>
<always_exec>true</always_exec>
<desc>Detach Quectel</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>Attach_UE</class>
<desc>Attach Quectel</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<ping_args>-c 100 -i 0.2</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>110</ping_rttavg_threshold>
</testCase>
<testCase>
<class>Custom_Command</class>
<desc>Trigger Reestablishment (on DU)</desc>
<node>ofqot</node>
<command>echo ci force_reestab | nc -N 127.0.0.1 9091 | grep -E 'Reset RLC counters of UE RNTI [0-9a-f]{4} to trigger reestablishment'</command>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 20pings</desc>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<ping_args>-c 20 -i0.5 -w25</ping_args>
<ping_packetloss_threshold>80</ping_packetloss_threshold>
</testCase>
<testCase>
<class>Custom_Command</class>
<desc>Verify Reestablishment (on CU)</desc>
<node>ofqot</node>
<command>echo ci get_reestab_count | nc -N 127.0.0.1 9090 | grep -E 'UE RNTI [0-9a-f]{4} reestab 1'</command>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<ping_args>-c 100 -i 0.2</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>110</ping_rttavg_threshold>
</testCase>
<testCase>
<class>Detach_UE</class>
<always_exec>true</always_exec>
<desc>Detach Quectel</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>Attach_UE</class>
<desc>Attach Quectel</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>Ping</class>
<desc>Ping: 20pings in 20sec</desc>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<ping_args>-c 20</ping_args>
<ping_packetloss_threshold>1</ping_packetloss_threshold>
<ping_rttavg_threshold>110</ping_rttavg_threshold>
<ping_rttavg_threshold>25</ping_rttavg_threshold>
</testCase>
<testCase id="150003">
<class>Ping</class>
<desc>Ping: 100pings in 20sec</desc>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<ping_args>-c 100 -i 0.2</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/50Mbps/UDP)(30 sec)</desc>
<iperf_args>-u -b 50M -t 30 -R</iperf_args>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<iperf_packetloss_threshold>10</iperf_packetloss_threshold>
<iperf_bitrate_threshold>95</iperf_bitrate_threshold>
</testCase>
<testCase id="170001">
<testCase>
<class>Iperf</class>
<desc>iperf (UL/25Mbps/UDP)(30 sec)</desc>
<iperf_args>-u -b 25M -t 30</iperf_args>
@@ -199,7 +201,17 @@
<iperf_bitrate_threshold>95</iperf_bitrate_threshold>
</testCase>
<testCase id="170002">
<testCase>
<class>Iperf</class>
<desc>iperf (DL/50Mbps/UDP)(30 sec)</desc>
<iperf_args>-u -b 50M -t 30 -R</iperf_args>
<id>idefix</id>
<svr_id>sabox-nepes</svr_id>
<iperf_packetloss_threshold>10</iperf_packetloss_threshold>
<iperf_bitrate_threshold>95</iperf_bitrate_threshold>
</testCase>
<testCase>
<class>Iperf</class>
<desc>iperf (BIDIR TCP)(60 sec)(single-ue profile)</desc>
<iperf_args>-t 60 --bidir</iperf_args>
@@ -207,7 +219,7 @@
<svr_id>sabox-nepes</svr_id>
</testCase>
<testCase id="170003">
<testCase>
<class>Iperf</class>
<desc>iperf (DL/TCP)(30 sec)(single-ue profile)</desc>
<iperf_args>-t 30 -R</iperf_args>
@@ -216,7 +228,7 @@
<iperf_tcp_rate_target>45</iperf_tcp_rate_target>
</testCase>
<testCase id="170004">
<testCase>
<class>Iperf</class>
<desc>iperf (UL/TCP)(30 sec)(single-ue profile)</desc>
<iperf_args>-t 30</iperf_args>
@@ -225,20 +237,27 @@
<iperf_tcp_rate_target>25</iperf_tcp_rate_target>
</testCase>
<testCase id="160001">
<class>Custom_Command</class>
<desc>Trigger Reestablishment (on DU)</desc>
<node>ofqot</node>
<command>echo ci force_reestab | nc -N 127.0.0.1 9091 | grep -E 'Reset RLC counters of UE RNTI [0-9a-f]{4} to trigger reestablishment'</command>
</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 127.0.0.1 9090 | grep -E 'UE RNTI [0-9a-f]{4} reestab 1'</command>
<testCase>
<class>Detach_UE</class>
<always_exec>true</always_exec>
<desc>Detach Quectel</desc>
<id>idefix</id>
</testCase>
<testCase id="130201">
<testCase>
<class>Terminate_UE</class>
<always_exec>true</always_exec>
<desc>Terminate Quectel</desc>
<id>idefix</id>
</testCase>
<testCase>
<class>IdleSleep</class>
<desc>Sleep</desc>
<idle_sleep_time_in_sec>5</idle_sleep_time_in_sec>
</testCase>
<testCase>
<class>Undeploy_Object</class>
<always_exec>true</always_exec>
<desc>Undeploy CU-DU</desc>
@@ -248,7 +267,15 @@
<u_retx_th>10,100,100,100</u_retx_th>
</testCase>
<testCase id="222222">
<testCase>
<class>Custom_Command</class>
<always_exec>true</always_exec>
<desc>Enable Sleep States</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>
@@ -257,4 +284,3 @@
</testCase>
</testCaseList>