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!).
This commit is contained in:
Robert Schmidt
2025-08-12 17:33:14 +02:00
parent 4a41df2788
commit 3b57379887
+32 -16
View File
@@ -32,7 +32,9 @@
120000
102000
102001
302001
102002
302002
102003
102004
102005
@@ -92,91 +94,105 @@
<testCase id="102001">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 1</desc>
<id>amarisoft_ue_1</id>
</testCase>
<testCase id="302001">
<class>Custom_Command</class>
<desc>Verify UE 1 is normal (no RedCap)</desc>
<node>avra</node>
<command>[ $(docker logs oai-gnb-aw2s | grep -E "UE with RNTI [0-9a-f]{4} is RedCap" | wc -l) -eq 0 ]</command>
</testCase>
<testCase id="102002">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 2</desc>
<id>amarisoft_ue_2</id>
</testCase>
<testCase id="302002">
<class>Custom_Command</class>
<desc>Verify UE 2 is RedCap</desc>
<node>avra</node>
<command>[ $(docker logs oai-gnb-aw2s | grep -m1 -E "UE with RNTI [0-9a-f]{4} is RedCap" | wc -l) -eq 1 ]</command>
</testCase>
<testCase id="102003">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 3</desc>
<id>amarisoft_ue_3</id>
</testCase>
<testCase id="102004">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 4</desc>
<id>amarisoft_ue_4</id>
</testCase>
<testCase id="102005">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 5</desc>
<id>amarisoft_ue_5</id>
</testCase>
<testCase id="102006">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 6</desc>
<id>amarisoft_ue_6</id>
</testCase>
<testCase id="102007">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 7</desc>
<id>amarisoft_ue_7</id>
</testCase>
<testCase id="102008">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 8</desc>
<id>amarisoft_ue_8</id>
</testCase>
<testCase id="102009">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 9</desc>
<id>amarisoft_ue_9</id>
</testCase>
<testCase id="102010">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 10</desc>
<id>amarisoft_ue_10</id>
</testCase>
<testCase id="102011">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 11</desc>
<id>amarisoft_ue_11</id>
</testCase>
<testCase id="102012">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 12</desc>
<id>amarisoft_ue_12</id>
</testCase>
<testCase id="102013">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 13</desc>
<id>amarisoft_ue_13</id>
</testCase>
<testCase id="102014">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach UE 14</desc>
<id>amarisoft_ue_14</id>
</testCase>
<testCase id="102015">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 15</desc>
<id>amarisoft_ue_15</id>
</testCase>
@@ -233,7 +249,7 @@
<testCase id="102016">
<class>Attach_UE</class>
<desc>Attach UE</desc>
<desc>Attach (RedCap) UE 16</desc>
<id>amarisoft_ue_16</id>
</testCase>