| [ |
| { |
| "os": [ |
| "chromeos" |
| ], |
| "policy_pref_mapping_tests": [ |
| { |
| "note": "Check default values (no policies set)", |
| "prefs": { |
| "required_client_certificate_for_device": { |
| "default_value": [], |
| "location": "local_state" |
| } |
| } |
| }, |
| { |
| "note": "Simple value", |
| "policies": { |
| "RequiredClientCertificateForDevice": [ |
| { |
| "cert_profile_id": "cert_profile_id_1", |
| "enable_remote_attestation_check": true, |
| "key_algorithm": "rsa", |
| "name": "Certificate Profile 1", |
| "policy_version": "some_hash", |
| "renewal_period_seconds": 2592000 |
| } |
| ] |
| }, |
| "prefs": { |
| "required_client_certificate_for_device": { |
| "location": "local_state", |
| "value": [ |
| { |
| "cert_profile_id": "cert_profile_id_1", |
| "enable_remote_attestation_check": true, |
| "key_algorithm": "rsa", |
| "name": "Certificate Profile 1", |
| "policy_version": "some_hash", |
| "renewal_period_seconds": 2592000 |
| } |
| ] |
| } |
| } |
| }, |
| { |
| "note": "Simple value with dynamic protocol and RSA keys", |
| "policies": { |
| "RequiredClientCertificateForUser": [ |
| { |
| "cert_profile_id": "cert_profile_id_1", |
| "enable_remote_attestation_check": true, |
| "key_algorithm": "rsa", |
| "name": "Certificate Profile 1", |
| "policy_version": "some_hash", |
| "protocol_version": 2, |
| "renewal_period_seconds": 2592000 |
| } |
| ] |
| }, |
| "prefs": { |
| "required_client_certificate_for_user": { |
| "value": [ |
| { |
| "cert_profile_id": "cert_profile_id_1", |
| "enable_remote_attestation_check": true, |
| "key_algorithm": "rsa", |
| "name": "Certificate Profile 1", |
| "policy_version": "some_hash", |
| "protocol_version": 2, |
| "renewal_period_seconds": 2592000 |
| } |
| ] |
| } |
| } |
| }, |
| { |
| "note": "Simple value with dynamic protocol and EC keys", |
| "policies": { |
| "RequiredClientCertificateForUser": [ |
| { |
| "cert_profile_id": "cert_profile_id_1", |
| "enable_remote_attestation_check": true, |
| "key_algorithm": "ec", |
| "name": "Certificate Profile 1", |
| "policy_version": "some_hash", |
| "protocol_version": 2, |
| "renewal_period_seconds": 2592000 |
| } |
| ] |
| }, |
| "prefs": { |
| "required_client_certificate_for_user": { |
| "value": [ |
| { |
| "cert_profile_id": "cert_profile_id_1", |
| "enable_remote_attestation_check": true, |
| "key_algorithm": "ec", |
| "name": "Certificate Profile 1", |
| "policy_version": "some_hash", |
| "protocol_version": 2, |
| "renewal_period_seconds": 2592000 |
| } |
| ] |
| } |
| } |
| } |
| ] |
| } |
| ] |