Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Side by Side Diff: chromeos/test/data/network/invalid_settings_with_repairs.json

Issue 11970012: Add a check for server and CA certificates in device policies to the ONC validator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unit tests. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/network/onc/onc_validator_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "managed-network-repaired": { 2 "managed-network-repaired": {
3 "Recommended": [], 3 "Recommended": [],
4 "GUID": "guid", 4 "GUID": "guid",
5 "Type": "Ethernet", 5 "Type": "Ethernet",
6 "Name": "name", 6 "Name": "name",
7 "Ethernet": { 7 "Ethernet": {
8 "Authentication": "None" 8 "Authentication": "None"
9 } 9 }
10 }, 10 },
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 }, 128 },
129 "network-with-illegal-recommended": { 129 "network-with-illegal-recommended": {
130 "GUID": "guid", 130 "GUID": "guid",
131 "Recommended": ["Name"], 131 "Recommended": ["Name"],
132 "Type": "Ethernet", 132 "Type": "Ethernet",
133 "Name": "name", 133 "Name": "name",
134 "Ethernet": { 134 "Ethernet": {
135 "Authentication": "None" 135 "Authentication": "None"
136 } 136 }
137 }, 137 },
138 "network-with-client-cert-pattern": {
139 "GUID": "guid",
140 "Type": "WiFi",
141 "Name": "name",
142 "WiFi": {
143 "SSID": "ssid",
144 "Security": "WPA-EAP",
145 "EAP": {
146 "Outer": "EAP-TLS",
147 "Identity": "abc ${LOGIN_ID}@my.domain.com",
148 "ClientCertType": "Pattern",
149 "ClientCertPattern": {
150 "IssuerCARef": [
151 "{58ac1967-a0e7-49e9-be68-123abc}"
152 ],
153 "EnrollmentURI": [
154 "chrome-extension://delkjfjibodjclmdijflfnimdmgdagfk/gen erate-cert.html"
155 ]
156 }
157 }
158 }
159 },
138 "toplevel-empty": { 160 "toplevel-empty": {
139 "Type": "UnencryptedConfiguration", 161 "Type": "UnencryptedConfiguration",
140 "NetworkConfigurations": [ ] 162 "NetworkConfigurations": [ ]
141 }, 163 },
142 "toplevel-repaired": { 164 "toplevel-repaired": {
143 "Type": "UnencryptedConfiguration", 165 "Type": "UnencryptedConfiguration",
144 "NetworkConfigurations": 166 "NetworkConfigurations":
145 [ { "GUID": "guid", 167 [ { "GUID": "guid",
146 "Type": "Ethernet", 168 "Type": "Ethernet",
147 "Name": "eth0", 169 "Name": "eth0",
148 "Ethernet": { 170 "Ethernet": {
149 "Authentication": "None" 171 "Authentication": "None"
150 } 172 }
151 } 173 }
152 ] 174 ]
153 }, 175 },
176 "toplevel-with-vpn": {
177 "Type": "UnencryptedConfiguration",
178 "NetworkConfigurations":
179 [ { "GUID": "guid",
180 "Type": "VPN",
181 "Name": "name",
182 "VPN": {
183 "Host": "host",
184 "Type": "OpenVPN",
185 "OpenVPN": {
186 "ClientCertType": "None"
187 }
188 }
189 }
190 ]
191 },
154 "toplevel-with-nested-warning": { 192 "toplevel-with-nested-warning": {
155 "Type": "UnencryptedConfiguration", 193 "Type": "UnencryptedConfiguration",
156 "NetworkConfigurations": 194 "NetworkConfigurations":
157 [ { "GUID": "guid", 195 [ { "GUID": "guid",
158 "Type": "Ethernet", 196 "Type": "Ethernet",
159 "unknown-field": "abc", 197 "unknown-field": "abc",
160 "Name": "eth0", 198 "Name": "eth0",
161 "Ethernet": { 199 "Ethernet": {
162 "Authentication": "None" 200 "Authentication": "None"
163 } 201 }
(...skipping 12 matching lines...) Expand all
176 }, 214 },
177 { "GUID": "guid", 215 { "GUID": "guid",
178 "Type": "Ethernet", 216 "Type": "Ethernet",
179 "Name": "eth0", 217 "Name": "eth0",
180 "Ethernet": { 218 "Ethernet": {
181 "Authentication": "None" 219 "Authentication": "None"
182 } 220 }
183 } 221 }
184 ] 222 ]
185 }, 223 },
224 "toplevel-server-and-ca-cert-dropped": {
225 "Type": "UnencryptedConfiguration",
226 "Certificates":
227 [ { "GUID": "3",
228 "PKCS12": "abc" ,
229 "Type": "Client" } ]
230 },
231 "toplevel-with-server-and-ca-cert": {
232 "Type": "UnencryptedConfiguration",
233 "Certificates":
234 [ { "Trust": ["Web"],
235 "GUID": "1",
236 "Type": "Authority",
237 "X509": "abc" },
238 { "GUID": "2",
239 "Type": "Server",
240 "X509": "abc" },
241 { "GUID": "3",
242 "PKCS12": "abc" ,
243 "Type": "Client" } ]
244 }
186 } 245 }
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_validator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698