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 <sathishkumar.selvam@capgemini.com>
This commit is contained in:
Sathishkumar Selvam 2026-06-27 07:26:06 +00:00 committed by FAOUZI YAHYA
parent bde3f23fc4
commit 9690210d99

View File

@ -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'"