SAIP: declare used templates in header GFSTEList
Populate eUICC-Mandatory-GFSTEList with the MF and USIM template OIDs the profile depends on (was empty). 109 tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
9a36b1a5fa
commit
d58a0bf915
|
|
@ -106,7 +106,8 @@ def create_saip_profile(
|
||||||
"profileType": (profile_name or "Emergency 5G")[:100],
|
"profileType": (profile_name or "Emergency 5G")[:100],
|
||||||
"iccid": enc_iccid(iccid),
|
"iccid": enc_iccid(iccid),
|
||||||
"eUICC-Mandatory-services": {"usim": None, "milenage": None},
|
"eUICC-Mandatory-services": {"usim": None, "milenage": None},
|
||||||
"eUICC-Mandatory-GFSTEList": [],
|
# Declare the file-system templates this profile depends on.
|
||||||
|
"eUICC-Mandatory-GFSTEList": [MF_TEMPLATE_OID, USIM_TEMPLATE_OID],
|
||||||
})
|
})
|
||||||
mf = ("mf", {
|
mf = ("mf", {
|
||||||
"mf-header": {"identification": 1},
|
"mf-header": {"identification": 1},
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,8 @@ class TestSaipEncoding:
|
||||||
by = dict(pes)
|
by = dict(pes)
|
||||||
assert by["header"]["iccid"] == enc_iccid(iccid)
|
assert by["header"]["iccid"] == enc_iccid(iccid)
|
||||||
assert by["header"]["major-version"] == 3
|
assert by["header"]["major-version"] == 3
|
||||||
|
assert by["header"]["eUICC-Mandatory-GFSTEList"] == [
|
||||||
|
saip.MF_TEMPLATE_OID, saip.USIM_TEMPLATE_OID]
|
||||||
assert by["mf"]["ef-iccid"] == [("fillFileContent", enc_iccid(iccid))]
|
assert by["mf"]["ef-iccid"] == [("fillFileContent", enc_iccid(iccid))]
|
||||||
|
|
||||||
@saip_required
|
@saip_required
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user