From 3b573798878839a5ae7ef65a05b8ed1eea880ce8 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Wed, 6 Aug 2025 17:12:03 +0200 Subject: [PATCH] CI AW2S-Amarisoft: verify RedCap'edness of a UE Since the parent commit, UE 1 is normal (no RedCap), UE 2 is RedCap. Verify that the gNB agrees with that and detects the second UE as RedCap by analyzing some logs. The first check is a bit elaborate, but basically is [ $(docker logs | grep XYZ | wc -l) -eq 0 ] ^ ^ ^ ^ ^ 1 2 3 4 5 (1) is the if statement, that compares (4) the number of occurrences (3) of "RedCap" in the (2) docker logs (5) to being equal to Note for all UEs which number, and whether it is RedCap (so this need to be kept in sync with the Amarisoft UE sim configuration file in use!). --- .../xml_files/container_sa_aw2s_asue.xml | 48 ++++++++++++------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/ci-scripts/xml_files/container_sa_aw2s_asue.xml b/ci-scripts/xml_files/container_sa_aw2s_asue.xml index 88ab941e31..f6a2bde823 100644 --- a/ci-scripts/xml_files/container_sa_aw2s_asue.xml +++ b/ci-scripts/xml_files/container_sa_aw2s_asue.xml @@ -32,7 +32,9 @@ 120000 102000 102001 + 302001 102002 + 302002 102003 102004 102005 @@ -92,91 +94,105 @@ Attach_UE - Attach UE + Attach UE 1 amarisoft_ue_1 + + Custom_Command + Verify UE 1 is normal (no RedCap) + avra + [ $(docker logs oai-gnb-aw2s | grep -E "UE with RNTI [0-9a-f]{4} is RedCap" | wc -l) -eq 0 ] + + Attach_UE - Attach UE + Attach (RedCap) UE 2 amarisoft_ue_2 + + Custom_Command + Verify UE 2 is RedCap + avra + [ $(docker logs oai-gnb-aw2s | grep -m1 -E "UE with RNTI [0-9a-f]{4} is RedCap" | wc -l) -eq 1 ] + + Attach_UE - Attach UE + Attach UE 3 amarisoft_ue_3 Attach_UE - Attach UE + Attach UE 4 amarisoft_ue_4 Attach_UE - Attach UE + Attach (RedCap) UE 5 amarisoft_ue_5 Attach_UE - Attach UE + Attach (RedCap) UE 6 amarisoft_ue_6 Attach_UE - Attach UE + Attach UE 7 amarisoft_ue_7 Attach_UE - Attach UE + Attach UE 8 amarisoft_ue_8 Attach_UE - Attach UE + Attach UE 9 amarisoft_ue_9 Attach_UE - Attach UE + Attach (RedCap) UE 10 amarisoft_ue_10 Attach_UE - Attach UE + Attach (RedCap) UE 11 amarisoft_ue_11 Attach_UE - Attach UE + Attach (RedCap) UE 12 amarisoft_ue_12 Attach_UE - Attach UE + Attach UE 13 amarisoft_ue_13 Attach_UE - Attach UE + Attach UE 14 amarisoft_ue_14 Attach_UE - Attach UE + Attach (RedCap) UE 15 amarisoft_ue_15 @@ -233,7 +249,7 @@ Attach_UE - Attach UE + Attach (RedCap) UE 16 amarisoft_ue_16