From 9690210d995ddfa2574355dc148d56fcd9da4884 Mon Sep 17 00:00:00 2001 From: Sathishkumar Selvam Date: Sat, 27 Jun 2026 07:26:06 +0000 Subject: [PATCH] ci: cram: 018-cellular-trusted-elements.t: Added validation on Trusted SIM with Active IMSI prepopulated As part of PCF-2632, when no default Trusted Element is available, the TrustedElement.SIM data model is now populated using the active IMSI obtained from the modem. Since a prepopulated Trusted SIM is now available, removed the creation of a new Trusted Element during validation. This prevents duplicate entries and resolves the cram test failure. Updated 018-cellular-trusted-elements.t to validate Trusted SIM based on the prepopulated active IMSI. References: PCF-2632 Signed-off-by: Sathishkumar Selvam --- .../018-cellular-trusted-elements.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab/tests/cram/generic/acceleration-plan-components/018-cellular-trusted-elements.t b/.gitlab/tests/cram/generic/acceleration-plan-components/018-cellular-trusted-elements.t index 248d89416f..8b038a6f20 100644 --- a/.gitlab/tests/cram/generic/acceleration-plan-components/018-cellular-trusted-elements.t +++ b/.gitlab/tests/cram/generic/acceleration-plan-components/018-cellular-trusted-elements.t @@ -10,10 +10,10 @@ Read the IMSI value using mmcli: $ R logger -t cram "Setting IMSI value to: $IMSI" -Add SIM to TrustedElements using the IMSI value found: +Verify TrustedElements already available using the IMSI value found: - $ R "ba-cli -l -j 'TrustedElements.SIM+{IMSI=$IMSI}' | sed '/^$/d'" - \{"TrustedElements.SIM.\d+.":\{"IMSI":"\d{15}","Alias":".+"\}\} (re) + $ R "ba-cli -l -j 'TrustedElements.SIM.[IMSI==$IMSI].IMSI?' | sed '/^$/d'" + \[\{"TrustedElements.SIM.\d+.":\{"IMSI":"\d{15}"\}\}\] (re) Set the SIM preference list: $ R "ba-cli Cellular.Interface.[Name==\'wwan0\'].SIMReferenceList=\'Device.TrustedElements.SIM.1.\' | sed '/^$/d'"