diff options
author | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-16 20:41:46 +0000 |
---|---|---|
committer | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-16 20:41:46 +0000 |
commit | 6d0f4901873c0a61775dfcb1526e572faf9bac64 (patch) | |
tree | bce215e107fc45d6953a3f91c3f2de24ddeb6ba5 /chromeos/test/data | |
parent | 62f18e79afcf0a1013f3754f5a603a86f79a5ccf (diff) | |
download | chromium_src-6d0f4901873c0a61775dfcb1526e572faf9bac64.zip chromium_src-6d0f4901873c0a61775dfcb1526e572faf9bac64.tar.gz chromium_src-6d0f4901873c0a61775dfcb1526e572faf9bac64.tar.bz2 |
Extending ONC validator's logging. Completing toplevel validation.
Adding also more validation tests.
The logging is in line with https://codereview.chromium.org/11299236/.
BUG=162802
TEST=Unit tests.
TBR=stevenjb@chromium.org,eroman@chromium.org (whitespace change in net_interals.cc)
Review URL: https://chromiumcodereview.appspot.com/11469026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/test/data')
-rw-r--r-- | chromeos/test/data/network/managed_ethernet.onc (renamed from chromeos/test/data/network/valid.onc) | 0 | ||||
-rw-r--r-- | chromeos/test/data/network/managed_toplevel.onc | 47 | ||||
-rw-r--r-- | chromeos/test/data/network/managed_vpn.onc (renamed from chromeos/test/data/network/policy.onc) | 0 | ||||
-rw-r--r-- | chromeos/test/data/network/managed_vpn_without_recommended.onc (renamed from chromeos/test/data/network/policy_without_recommended.onc) | 0 | ||||
-rw-r--r-- | chromeos/test/data/network/recommended_in_unmanaged.onc | 8 |
5 files changed, 55 insertions, 0 deletions
diff --git a/chromeos/test/data/network/valid.onc b/chromeos/test/data/network/managed_ethernet.onc index 56828bc..56828bc 100644 --- a/chromeos/test/data/network/valid.onc +++ b/chromeos/test/data/network/managed_ethernet.onc diff --git a/chromeos/test/data/network/managed_toplevel.onc b/chromeos/test/data/network/managed_toplevel.onc new file mode 100644 index 0000000..a8feabd --- /dev/null +++ b/chromeos/test/data/network/managed_toplevel.onc @@ -0,0 +1,47 @@ +{ "Type": "UnencryptedConfiguration", + "NetworkConfigurations": + [ { "GUID": "123", + "Type": "VPN", + "Name": "testopenvpn", + "IPConfigs": [ + { "Type": "IPv4", + "IPAddress": "127.0.0.1", + "RoutingPrefix": 32 } + ], + "VPN": { + "Host": "policys host", + "Recommended": ["Host"], + "Type": "OpenVPN", + "OpenVPN": { + "Port": 1194, + "Username": "policy user", + "Recommended": [ "Username", "Password" ], + "ClientCertType": "Pattern", + "ClientCertPattern": { + "IssuerCARef": [ "openvpn-test-ca" ], + "Recommended": [ "EnrollmentURI", "IssuerCARef" ] + } + }, + "IPsec": { + "AuthenticationType": "PSK", + "PSK": "sharedkey", + "IKEVersion": 1 + } + } + }, + { "GUID": "guid", + "Type": "Ethernet", + "Name": "name", + "Ethernet": { + "Authentication": "None" + } + } + ], + "Certificates": [ + { + "GUID": "{f998f760-272b-6939-4c2beffe428697ac}", + "PKCS12": "MIIGUQIBAzCCBhcGCSqGSIb3DQEHAaCCBggEggYEMIIGADCCAv8GCSqGSIb3DQEHBqCCAvAwggLsAgEAMIIC5QYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIHnFaWM2Y0BgCAggAgIICuG4ou9mxkhpus8WictLJe+JOnSQrdNXV3FMQr4pPJ6aJJFBMKZ80W2GpR8XNY/SSKkdaNr1puDm1bDBFGaHQuCKXYcWO8ynBQ1uoZaFaTTFxWbbHo89Jrvw+gIrgpoOHQ0KECEbh5vOZCjGHoaQb4QZOkw/6Cuc4QRoCPJAI3pbSPG44kRbOuOaTZvBHSIPkGf3+R6byTvZ3Yiuw7IIzxUp2fYjtpCWd/NvtI70heJCWdb5hwCeNafIEpX+MTVuhUegysIFkOMMlUBIQSI5ky8kjx0Yi82BT/dpz9QgrqFL8NnTMXp0JlKFGLQ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2uitDyNfTiETfug3bFbjwodu9wmt31A2ZFn4JpUrTYoZ3LZXngC3nNTayU0Tkd1ICMep2GbCReL3ajOlgOKGFVoOm/qDnhiH6W/ebtAQXqVpuKut8uY0X0Ocmx7mTpmxlfDSRiBY9rvnrGfnpfLMxtFeF9jv3n8vSwvA0Xn0okAv1FWYLStiCpNxnD6lmXQvcmL/skAlJJpHY9/58qt/e5sGYrkKBw3jnX40zaK4W7GeJvhij0MRr6yUL2lvaEcWDnK6K1F90G/ybKRCTHBCJzyBe7yHhZCc+ZcvKK6DTi83fELTyupy08BkXt7oPdapxmKlZxTldo9FpPXSqrdRtAWhDkEkIEf8dMf8QrQr3glCWfbcQ047URYX45AHRnLTLLkJfdY8+Y3KsHoqL2UrOrct+J1u0mmnLbonN3pB2B4nd9X9vf9/uSFrgvk0iPO0Ro3UPRUIIYEP2Kx51pZZVDd++hl5gXtqe0NIpphGhxLycIdzElMCMGCSqGSIb3DQEJFTEWBBR1uVpGjHRddIEYuJhz/FgG4Onh6jAxMCEwCQYFKw4DAhoFAAQU1M+0WRDkoVGbGg1jj7q2fI67qHIECBzRYESpgt5iAgIIAA==", + "Type": "Client" + } + ] +} diff --git a/chromeos/test/data/network/policy.onc b/chromeos/test/data/network/managed_vpn.onc index 4c52e97..4c52e97 100644 --- a/chromeos/test/data/network/policy.onc +++ b/chromeos/test/data/network/managed_vpn.onc diff --git a/chromeos/test/data/network/policy_without_recommended.onc b/chromeos/test/data/network/managed_vpn_without_recommended.onc index 037bf53..037bf53 100644 --- a/chromeos/test/data/network/policy_without_recommended.onc +++ b/chromeos/test/data/network/managed_vpn_without_recommended.onc diff --git a/chromeos/test/data/network/recommended_in_unmanaged.onc b/chromeos/test/data/network/recommended_in_unmanaged.onc new file mode 100644 index 0000000..33a5010 --- /dev/null +++ b/chromeos/test/data/network/recommended_in_unmanaged.onc @@ -0,0 +1,8 @@ +{ "GUID": "guid", + "Recommended": ["Name"], + "Type": "Ethernet", + "Name": "name", + "Ethernet": { + "Authentication": "None" + } +} |