Skip to content

Commit 4a0a9d3

Browse files
committed
ci,e2e: add ping test with ciphering
1 parent adc8a3e commit 4a0a9d3

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.gitlab/ci/e2e/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GNB_REMOTE_PATH=/usr/local/bin/gnb
22
GNB_IS_EXECUTABLE=true
33
SRSGNB_REGISTRY_URI=registry.gitlab.com/softwareradiosystems/srsgnb
44
RETINA_REGISTRY_PREFIX=registry.gitlab.com/softwareradiosystems/ci/retina
5-
RETINA_VERSION=0.50.9
5+
RETINA_VERSION=0.50.10
66
UBUNTU_VERSION=24.04
77
AMARISOFT_VERSION=2023-09-08
88
SRSUE_VERSION=23.11

tests/e2e/tests/ping.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,17 @@ def test_android_hp(
136136

137137

138138
@mark.parametrize(
139-
"band, common_scs, bandwidth",
139+
"band, common_scs, bandwidth, ciphering",
140140
(
141-
param(3, 15, 5, id="band:%s-scs:%s-bandwidth:%s"),
142-
param(3, 15, 10, marks=mark.test, id="band:%s-scs:%s-bandwidth:%s"),
143-
param(3, 15, 20, id="band:%s-scs:%s-bandwidth:%s"),
144-
param(3, 15, 50, id="band:%s-scs:%s-bandwidth:%s"),
145-
param(41, 30, 10, id="band:%s-scs:%s-bandwidth:%s"),
146-
param(41, 30, 20, id="band:%s-scs:%s-bandwidth:%s"),
147-
param(41, 30, 50, id="band:%s-scs:%s-bandwidth:%s"),
141+
param(3, 15, 5, False, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
142+
param(3, 15, 10, False, marks=mark.test, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
143+
param(3, 15, 20, False, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
144+
param(3, 15, 50, False, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
145+
param(3, 15, 50, True, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
146+
param(41, 30, 10, False, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
147+
param(41, 30, 20, False, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
148+
param(41, 30, 50, False, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
149+
param(41, 30, 50, True, id="band:%s-scs:%s-bandwidth:%s-ciphering:%s"),
148150
),
149151
)
150152
@mark.zmq
@@ -167,6 +169,7 @@ def test_zmq(
167169
band: int,
168170
common_scs: int,
169171
bandwidth: int,
172+
ciphering: bool,
170173
):
171174
"""
172175
ZMQ Pings
@@ -185,6 +188,7 @@ def test_zmq(
185188
global_timing_advance=0,
186189
time_alignment_calibration=0,
187190
ue_stop_timeout=1,
191+
enable_security_mode=ciphering,
188192
post_command="cu_cp --inactivity_timer=600",
189193
)
190194

@@ -343,6 +347,7 @@ def _ping(
343347
gnb_stop_timeout: int = 0,
344348
ue_stop_timeout: int = 0,
345349
plmn: Optional[PLMN] = None,
350+
enable_security_mode: bool = False,
346351
):
347352
logging.info("Ping Test")
348353

@@ -357,6 +362,7 @@ def _ping(
357362
time_alignment_calibration=time_alignment_calibration,
358363
n3_enable=True,
359364
log_ip_level="debug",
365+
enable_security_mode=enable_security_mode,
360366
)
361367
configure_artifacts(
362368
retina_data=retina_data,

tests/e2e/tests/steps/configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def configure_test_parameters(
3939
enable_qos_reestablishment: bool = False,
4040
num_cells: int = 1,
4141
cell_position_offset: Tuple[float, float, float] = (1000, 0, 0),
42+
enable_security_mode: bool = False,
4243
):
4344
"""
4445
Configure test parameters
@@ -71,6 +72,7 @@ def configure_test_parameters(
7172
"enable_channel_noise": noise_spd != 0,
7273
"enable_qos_reestablishment": enable_qos_reestablishment,
7374
"num_cells": num_cells,
75+
"enable_security_mode": enable_security_mode,
7476
},
7577
},
7678
}

0 commit comments

Comments
 (0)