@@ -47,12 +47,12 @@ def sample_attestation_result():
4747
4848def test_attestation_result_to_dict (sample_attestation_result ):
4949 expected = {
50- "profile " : "test_profile" ,
51- "issued_at " : 1234567890 ,
52- "verifier_id " : {"developer" : "Acme Inc." , "build" : "v1" },
50+ "eat_profile " : "test_profile" ,
51+ "iat " : 1234567890 ,
52+ "ear.verifier-id " : {"developer" : "Acme Inc." , "build" : "v1" },
5353 "submods" : {
5454 "submod1" : {
55- "trust_vector " : {
55+ "ear.trustworthiness-vector " : {
5656 "instance_identity" : TRUSTWORTHY_INSTANCE_CLAIM .value ,
5757 "configuration" : APPROVED_CONFIG_CLAIM .value ,
5858 "executables" : APPROVED_RUNTIME_CLAIM .value ,
@@ -62,7 +62,7 @@ def test_attestation_result_to_dict(sample_attestation_result):
6262 "storage_opaque" : HW_KEYS_ENCRYPTED_SECRETS_CLAIM .value ,
6363 "sourced_data" : TRUSTED_SOURCES_CLAIM .value ,
6464 },
65- "status" : TRUST_TIER_AFFIRMING .value ,
65+ "ear. status" : TRUST_TIER_AFFIRMING .value ,
6666 }
6767 },
6868 }
@@ -77,12 +77,12 @@ def test_attestation_result_to_json(sample_attestation_result):
7777
7878def test_attestation_result_from_dict ():
7979 data = {
80- "profile " : "test_profile" ,
81- "issued_at " : 1234567890 ,
82- "verifier_id " : {"developer" : "Acme Inc." , "build" : "v1" },
80+ "eat_profile " : "test_profile" ,
81+ "iat " : 1234567890 ,
82+ "ear.verifier-id " : {"developer" : "Acme Inc." , "build" : "v1" },
8383 "submods" : {
8484 "submod1" : {
85- "trust_vector " : {
85+ "ear.trustworthiness-vector " : {
8686 "instance_identity" : TRUSTWORTHY_INSTANCE_CLAIM .value ,
8787 "configuration" : APPROVED_CONFIG_CLAIM .value ,
8888 "executables" : APPROVED_RUNTIME_CLAIM .value ,
@@ -92,7 +92,7 @@ def test_attestation_result_from_dict():
9292 "storage_opaque" : HW_KEYS_ENCRYPTED_SECRETS_CLAIM .value ,
9393 "sourced_data" : TRUSTED_SOURCES_CLAIM .value ,
9494 },
95- "status" : TRUST_TIER_AFFIRMING .value ,
95+ "ear. status" : TRUST_TIER_AFFIRMING .value ,
9696 }
9797 },
9898 }
0 commit comments