saip/personalization: add EuiccMandatoryServiceParam for 3 services

Even though the eUICC-Mandatory-services are always set by
saip.PES.rebuild_mandatory_services(), these new params are useful to
audit and validate the values as present in a given DER.

Change-Id: Icddeb2488c4a024c6ee5afcc1b6c8cc0e436c43c
This commit is contained in:
Neels Hofmeyr
2026-06-12 02:23:36 +02:00
parent 664d69db65
commit 0d8a43904f
4 changed files with 137 additions and 1 deletions
@@ -279,6 +279,33 @@ class ConfigurableParameterTest(unittest.TestCase):
val=3,
expect_clean_val=3,
expect_val='3'),
Paramtest(param_cls=p13n.EuiccMandatoryServiceGetIdentity,
val='mandatory',
expect_clean_val=True,
expect_val='mandatory'),
Paramtest(param_cls=p13n.EuiccMandatoryServiceGetIdentity,
val='optional',
expect_clean_val=False,
expect_val='optional'),
Paramtest(param_cls=p13n.EuiccMandatoryServiceProfileA,
val='mandatory',
expect_clean_val=True,
expect_val='mandatory'),
Paramtest(param_cls=p13n.EuiccMandatoryServiceProfileA,
val='optional',
expect_clean_val=False,
expect_val='optional'),
Paramtest(param_cls=p13n.EuiccMandatoryServiceProfileB,
val='mandatory',
expect_clean_val=True,
expect_val='mandatory'),
Paramtest(param_cls=p13n.EuiccMandatoryServiceProfileB,
val='optional',
expect_clean_val=False,
expect_val='optional'),
]
Paramtest.iff_present_default = True
@@ -214,6 +214,36 @@ ok: TS48v5_SAIP2.1B_NoBERTLV.der MncLen(val=3:int)
previous value: ['2']
read_back_val={'MNC-LEN': '3'}:{str}
ok: TS48v5_SAIP2.1B_NoBERTLV.der EuiccMandatoryServiceGetIdentity(val='mandatory':str)
clean_val=True:bool
previous value: ['optional']
read_back_val={'5G-eUICC-get-identity': 'mandatory'}:{str}
ok: TS48v5_SAIP2.1B_NoBERTLV.der EuiccMandatoryServiceGetIdentity(val='optional':str)
clean_val=False:bool
previous value: ['optional']
read_back_val={'5G-eUICC-get-identity': 'optional'}:{str}
ok: TS48v5_SAIP2.1B_NoBERTLV.der EuiccMandatoryServiceProfileA(val='mandatory':str)
clean_val=True:bool
previous value: ['optional']
read_back_val={'5G-eUICC-profile-a-x25519': 'mandatory'}:{str}
ok: TS48v5_SAIP2.1B_NoBERTLV.der EuiccMandatoryServiceProfileA(val='optional':str)
clean_val=False:bool
previous value: ['optional']
read_back_val={'5G-eUICC-profile-a-x25519': 'optional'}:{str}
ok: TS48v5_SAIP2.1B_NoBERTLV.der EuiccMandatoryServiceProfileB(val='mandatory':str)
clean_val=True:bool
previous value: ['optional']
read_back_val={'5G-eUICC-profile-b-p256': 'mandatory'}:{str}
ok: TS48v5_SAIP2.1B_NoBERTLV.der EuiccMandatoryServiceProfileB(val='optional':str)
clean_val=False:bool
previous value: ['optional']
read_back_val={'5G-eUICC-profile-b-p256': 'optional'}:{str}
ok: TS48v5_SAIP2.1B_NoBERTLV.der SuciActive(val='SUCI-on':str)
clean_val=True:bool
previous value: ['SUCI-on']
@@ -1134,6 +1164,36 @@ ok: TS48v5_SAIP2.3_NoBERTLV.der MncLen(val=3:int)
previous value: ['2']
read_back_val={'MNC-LEN': '3'}:{str}
ok: TS48v5_SAIP2.3_NoBERTLV.der EuiccMandatoryServiceGetIdentity(val='mandatory':str)
clean_val=True:bool
previous value: ['mandatory']
read_back_val={'5G-eUICC-get-identity': 'mandatory'}:{str}
ok: TS48v5_SAIP2.3_NoBERTLV.der EuiccMandatoryServiceGetIdentity(val='optional':str)
clean_val=False:bool
previous value: ['mandatory']
read_back_val={'5G-eUICC-get-identity': 'optional'}:{str}
ok: TS48v5_SAIP2.3_NoBERTLV.der EuiccMandatoryServiceProfileA(val='mandatory':str)
clean_val=True:bool
previous value: ['mandatory']
read_back_val={'5G-eUICC-profile-a-x25519': 'mandatory'}:{str}
ok: TS48v5_SAIP2.3_NoBERTLV.der EuiccMandatoryServiceProfileA(val='optional':str)
clean_val=False:bool
previous value: ['mandatory']
read_back_val={'5G-eUICC-profile-a-x25519': 'optional'}:{str}
ok: TS48v5_SAIP2.3_NoBERTLV.der EuiccMandatoryServiceProfileB(val='mandatory':str)
clean_val=True:bool
previous value: ['mandatory']
read_back_val={'5G-eUICC-profile-b-p256': 'mandatory'}:{str}
ok: TS48v5_SAIP2.3_NoBERTLV.der EuiccMandatoryServiceProfileB(val='optional':str)
clean_val=False:bool
previous value: ['mandatory']
read_back_val={'5G-eUICC-profile-b-p256': 'optional'}:{str}
ok: TS48v5_SAIP2.3_NoBERTLV.der SuciActive(val='SUCI-on':str)
clean_val=True:bool
previous value: ['SUCI-on']