Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chromeos / test / data / network / invalid_settings_with_repairs.json
blobefdc9dc7916965c3e7376c1ddef3f43b49ac3c17
2     "global-disabled-technologies": {
3          "DisableNetworkTypes": ["WiMAX"]
4     },
5     "duplicate-network-guid": {
6           "NetworkConfigurations": [
7              {
8                "GUID": "1",
9                 "Type": "WiFi",
10                 "Name": "My WiFi Network",
11                 "WiFi": {
12                   "Passphrase": "dummy",
13                   "SSID": "dummySSID",
14                   "Security": "WPA-PSK"
15                }
16               },
17               {
18                  "GUID": "1",
19                  "Type": "WiFi",
20                  "Name": "My WiFi Network",
21                  "WiFi": {
22                    "Passphrase": "dummy1",
23                    "SSID": "dummySSID1",
24                    "Security": "WPA-PSK"
25                }
26               }
27           ],
28           "Type": "UnencryptedConfiguration"
29     },
30     "repaired-duplicate-network-guid": {
31           "NetworkConfigurations": [
32              {
33                "GUID": "1",
34                 "Type": "WiFi",
35                 "Name": "My WiFi Network",
36                 "WiFi": {
37                   "Passphrase": "dummy",
38                   "SSID": "dummySSID",
39                   "Security": "WPA-PSK"
40                }
41               }
42           ],
43           "Type": "UnencryptedConfiguration"
44     },
45     "duplicate-cert-guid": {
46       "Type": "UnencryptedConfiguration",
47       "Certificates": [
48         { "GUID": "2",
49           "Type": "Server",
50           "X509": "abc" },
51         { "GUID": "2",
52           "PKCS12": "abc" ,
53           "Type": "Client" }
54        ]
55     },
56     "repaired-duplicate-cert-guid": {
57       "Type": "UnencryptedConfiguration",
58       "Certificates": [
59         { "GUID": "2",
60           "Type": "Server",
61           "X509": "abc" }
62        ]
63     },
64     "managed-network-repaired": {
65         "Recommended": [],
66         "GUID": "guid",
67         "Type": "Ethernet",
68         "Name": "name",
69         "Ethernet": {
70             "Authentication": "None"
71         }
72     },
73     "managed-network-unknown-fieldname": {
74         "abc": "def",
75         "Recommended": [],
76         "GUID": "guid",
77         "Type": "Ethernet",
78         "Name": "name",
79         "Ethernet": {
80             "Authentication": "None"
81         }
82     },
83     "managed-network-unknown-value": {
84         "GUID": "guid",
85         "Type": "LTE",
86         "Name": "name",
87         "Ethernet": {
88             "Authentication": "None"
89         }
90     },
91     "managed-network-value-out-of-range": {
92         "GUID": "guid",
93         "Type": "Ethernet",
94         "Name": "name",
95         "StaticIPConfig": {
96             "Type": "IPv4",
97             "IPAddress": "127.0.0.1",
98             "RoutingPrefix": 123
99         },
100         "Ethernet": {
101             "Authentication": "None"
102         }
103     },
104     "managed-network-wrong-type": {
105         "GUID": "guid",
106         "Type": "LTE",
107         "Name": "name",
108         "Ethernet": {
109             "Authentication": 123
110         }
111     },
112     "managed-network-unknown-recommended": {
113         "Recommended": ["abc"],
114         "GUID": "guid",
115         "Type": "Ethernet",
116         "Name": "name",
117         "Ethernet": {
118             "Authentication": "None"
119         }
120     },
121     "managed-network-dict-recommended": {
122         "Recommended": ["Ethernet"],
123         "GUID": "guid",
124         "Type": "Ethernet",
125         "Name": "name",
126         "Ethernet": {
127             "Authentication": "None"
128         }
129     },
130     "managed-network-missing-required": {
131         "Recommended": [],
132         "Type": "Ethernet",
133         "Name": "name",
134         "Ethernet": {
135             "Authentication": "None"
136         }
137     },
138     "network-repaired": {
139         "GUID": "guid",
140         "Type": "Ethernet",
141         "Name": "name",
142         "Ethernet": {
143             "Authentication": "None"
144         }
145     },
146     "network-unknown-fieldname": {
147         "GUID": "guid",
148         "abc": "def",
149         "Type": "Ethernet",
150         "Name": "name",
151         "Ethernet": {
152             "Authentication": "None"
153         }
154     },
155     "network-state-field": {
156         "GUID": "guid",
157         "Type": "Ethernet",
158         "Name": "name",
159         "Ethernet": {
160             "Authentication": "None"
161         },
162         "ConnectionState": "NotConnected"
163     },
164     "wifi-hexssid-invalid-length": {
165         "GUID": "guid",
166         "Type": "WiFi",
167         "Name": "name",
168         "WiFi": {
169             "Passphrase": "some passphrase",
170             "HexSSID": "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFAB",
171             "Security": "WPA-PSK"
172         }
173     },
174     "wifi-ssid-invalid-length": {
175         "GUID": "guid",
176         "Type": "WiFi",
177         "Name": "name",
178         "WiFi": {
179             "Passphrase": "some passphrase",
180             "SSID": "a ssid longer than 32 bytes is invalid",
181             "Security": "WPA-PSK"
182         }
183     },
184     "wifi-invalid-hexssid": {
185         "GUID": "guid",
186         "Type": "WiFi",
187         "Name": "name",
188         "WiFi": {
189             "Passphrase": "some passphrase",
190             "HexSSID": "invalidhex",
191             "Security": "WPA-PSK"
192         }
193     },
194     "wifi-ssid-and-hexssid-inconsistent": {
195         "GUID": "guid",
196         "Type": "WiFi",
197         "Name": "name",
198         "WiFi": {
199             "Passphrase": "some passphrase",
200             "SSID": "ssid",
201             "HexSSID": "FFFFFF",
202             "Security": "WPA-PSK"
203         }
204     },
205     "wifi-ssid-and-hexssid-partially-invalid": {
206         "GUID": "guid",
207         "Type": "WiFi",
208         "Name": "name",
209         "WiFi": {
210             "Passphrase": "some passphrase",
211             "SSID": "a ssid longer than 32 bytes is invalid",
212             "HexSSID": "FFFFFF",
213             "Security": "WPA-PSK"
214         }
215     },
216     "wifi-ssid-and-hexssid-repaired": {
217         "GUID": "guid",
218         "Type": "WiFi",
219         "Name": "name",
220         "WiFi": {
221             "Passphrase": "some passphrase",
222             "HexSSID": "FFFFFF",
223             "Security": "WPA-PSK"
224         }
225     },
226     "network-unknown-value": {
227         "GUID": "guid",
228         "Type": "LTE",
229         "Name": "name",
230         "Ethernet": {
231             "Authentication": "None"
232         }
233     },
234     "network-value-out-of-range": {
235         "GUID": "guid",
236         "Type": "Ethernet",
237         "Name": "name",
238         "StaticIPConfig": {
239             "Type": "IPv4",
240             "IPAddress": "127.0.0.1",
241             "RoutingPrefix": 123
242         },
243         "Ethernet": {
244             "Authentication": "None"
245         }
246     },
247     "network-wrong-type": {
248         "GUID": "guid",
249         "Type": "LTE",
250         "Name": "name",
251         "Ethernet": {
252             "Authentication": 123
253         }
254     },
255     "network-missing-required": {
256         "Type": "Ethernet",
257         "Name": "name",
258         "Ethernet": {
259             "Authentication": "None"
260         }
261     },
262     "network-missing-required-type": {
263         "Name": "name",
264         "Ethernet": {
265             "Authentication": "None"
266         }
267     },
268     "network-nested-state-field-repaired": {
269         "GUID": "guid",
270         "Type": "WiFi",
271         "Name": "name",
272         "WiFi": {
273             "Passphrase": "some passphrase",
274             "SSID": "ssid",
275             "Security": "WPA-PSK"
276         }
277     },
278     "network-nested-state-field": {
279         "GUID": "guid",
280         "Type": "WiFi",
281         "Name": "name",
282         "WiFi": {
283             "Passphrase": "some passphrase",
284             "SSID": "ssid",
285             "Security": "WPA-PSK",
286             "SignalStrength": 123
287         }
288     },
289     "network-with-illegal-recommended": {
290         "GUID": "guid",
291         "Recommended": ["Name"],
292         "Type": "Ethernet",
293         "Name": "name",
294         "Ethernet": {
295             "Authentication": "None"
296         }
297     },
298     "network-with-ipconfigs": {
299         "GUID": "guid",
300         "Type": "Ethernet",
301         "Name": "name",
302         "Ethernet": {
303             "Authentication": "None"
304         },
305         "IPConfigs": [ {
306             "Type": "IPv4",
307             "IPAddress": "127.0.0.1",
308             "RoutingPrefix": 123
309         } ],
310     },
311     "network-with-client-cert-pattern": {
312         "GUID": "guid",
313         "Type": "WiFi",
314         "Name": "name",
315         "WiFi": {
316             "SSID": "ssid",
317             "Security": "WPA-EAP",
318             "EAP": {
319                 "Outer": "EAP-TLS",
320                 "Identity": "abc ${LOGIN_ID}@my.domain.com",
321                 "ClientCertType": "Pattern",
322                 "ClientCertPattern": {
323                     "IssuerCARef": [
324                         "{58ac1967-a0e7-49e9-be68-123abc}"
325                     ],
326                     "EnrollmentURI": [
327                         "chrome-extension://delkjfjibodjclmdijflfnimdmgdagfk/generate-cert.html"
328                     ]
329                 }
330             }
331         }
332     },
333     "ipsec-with-psk-and-cacert": {
334       "AuthenticationType": "PSK",
335       "IKEVersion": 1,
336       "PSK": "some psk",
337       "ServerCARef": "a cert ref"
338     },
339     "ipsec-with-client-cert-missing-cacert": {
340       "AuthenticationType": "Cert",
341       "IKEVersion": 1,
342       "ClientCertType": "Ref",
343       "ClientCertRef": "a cert ref"
344     },
345     "ipsec-with-empty-cacertrefs": {
346       "AuthenticationType": "Cert",
347       "IKEVersion": 1,
348       "ClientCertType": "Ref",
349       "ClientCertRef": "a cert ref",
350       "ServerCARefs": []
351     },
352     "ipsec-with-servercaref-and-servercarefs": {
353       "AuthenticationType": "Cert",
354       "ClientCertType": "Ref",
355       "ClientCertRef": "a cert ref",
356       "IKEVersion": 1,
357       "ServerCARef": "a cert ref",
358       "ServerCARefs": ["ref1", "ref2"]
359     },
360     "openvpn-with-servercaref-and-servercarefs": {
361       "ClientCertType": "None",
362       "ServerCARef": "a cert ref",
363       "ServerCARefs": ["ref1", "ref2"]
364     },
365     "eap-with-servercaref-and-servercarefs": {
366       "ClientCertType": "Ref",
367       "ClientCertRef": "a cert ref",
368       "Outer": "LEAP",
369       "ServerCARef": "a cert ref",
370       "ServerCARefs": ["ref1", "ref2"]
371     },
372     "openvpn-missing-verify-x509-name": {
373       "GUID": "guid",
374       "Type": "VPN",
375       "Name": "name",
376       "VPN": {
377         "Host": "host",
378         "Type": "OpenVPN",
379         "OpenVPN": {
380           "ClientCertType": "None",
381           "VerifyX509": {
382             "Type": "name"
383           }
384         }
385       }
386     },
387     "openvpn-invalid-verify-x509-type": {
388       "GUID": "guid",
389       "Type": "VPN",
390       "Name": "name",
391       "VPN": {
392         "Host": "host",
393         "Type": "OpenVPN",
394         "OpenVPN": {
395           "ClientCertType": "None",
396           "VerifyX509": {
397             "Type": "unknown type"
398           }
399         }
400       }
401     },
402     "third-party-vpn-missing-extension-id": {
403       "GUID": "guid",
404       "Name": "third-party VPN",
405       "Type": "VPN",
406       "VPN": {
407         "Type": "ThirdPartyVPN",
408         "ThirdPartyVPN": { }
409       }
410     },
411     "toplevel-empty": {
412         "Type": "UnencryptedConfiguration",
413         "NetworkConfigurations": [ ]
414     },
415     "toplevel-repaired": {
416         "Type": "UnencryptedConfiguration",
417         "NetworkConfigurations":
418         [ { "GUID": "guid",
419             "Type": "Ethernet",
420             "Name": "eth0",
421             "Ethernet": {
422                 "Authentication": "None"
423             }
424           }
425         ]
426     },
427     "toplevel-with-vpn": {
428         "Type": "UnencryptedConfiguration",
429         "NetworkConfigurations":
430         [ { "GUID": "guid",
431             "Type": "VPN",
432             "Name": "name",
433             "VPN": {
434                 "Host": "host",
435                 "Type": "OpenVPN",
436                 "OpenVPN": {
437                   "ClientCertType": "None"
438                 }
439             }
440           }
441         ]
442     },
443     "toplevel-with-nested-warning": {
444         "Type": "UnencryptedConfiguration",
445         "NetworkConfigurations":
446         [ { "GUID": "guid",
447             "Type": "Ethernet",
448             "unknown-field": "abc",
449             "Name": "eth0",
450             "Ethernet": {
451                 "Authentication": "None"
452             }
453           }
454         ]
455     },
456     "toplevel-invalid-network": {
457         "Type": "UnencryptedConfiguration",
458         "NetworkConfigurations":
459         [ { "GUID": "guid",
460             "Type": "unknown",
461             "Name": "unknown name",
462             "Ethernet": {
463                 "Authentication": "None"
464             }
465           },
466           { "GUID": "guid",
467             "Type": "Ethernet",
468             "Name": "eth0",
469             "Ethernet": {
470                 "Authentication": "None"
471             }
472           }
473         ]
474     },
475     "toplevel-server-and-ca-cert-dropped": {
476       "Type": "UnencryptedConfiguration",
477       "Certificates":
478       [ { "GUID": "3",
479           "PKCS12": "abc" ,
480           "Type": "Client" } ]
481     },
482     "toplevel-with-server-and-ca-cert": {
483       "Type": "UnencryptedConfiguration",
484       "Certificates":
485       [ { "TrustBits": ["Web"],
486           "GUID": "1",
487           "Type": "Authority",
488           "X509": "abc" },
489         { "GUID": "2",
490           "Type": "Server",
491           "X509": "abc" },
492         { "GUID": "3",
493           "PKCS12": "abc" ,
494           "Type": "Client" } ]
495     },
496     "toplevel-with-repaired-networks": {
497       "NetworkConfigurations":
498       [ { "GUID": "{485d6076-dd44-6b6d-69787465725f5045}",
499           "Type": "WiFi",
500           "Name": "My WiFi Network",
501           "WiFi": {
502             "SSID": "ssid-none",
503             "Security": "None" }
504         },
505         { "GUID": "{485d6076-dd44-6b6d-69787465725f5046}",
506           "Type": "WiFi",
507           "Name": "My WiFi Network2",
508           "WiFi": {
509             "Passphrase": "12345678",
510             "SSID": "ssid-wpa",
511             "Security": "WPA-PSK" }
512         }
513       ],
514       "Certificates": [],
515       "Type": "UnencryptedConfiguration",
516     },
517     "toplevel-with-repairable-networks": {
518       "NetworkConfigurations":
519       [ { "GUID": "{485d6076-dd44-6b6d-69787465725f5045}",
520           "Type": "WiFi",
521           "Name": "My WiFi Network",
522           "UnknownField1": "Value1",
523           "UnknownField2": {
524             "UnknownSubField": "Value2" },
525           "WiFi": {
526             "SSID": "ssid-none",
527             "Security": "None" }
528         },
529         { "GUID": "{485d6076-dd44-6b6d-69787465725f5046}",
530           "Type": "WiFi",
531           "Name": "My WiFi Network2",
532           "WiFi": {
533             "Passphrase": "12345678",
534             "SSID": "ssid-wpa",
535             "UnknownField1": "Value1",
536             "Security": "WPA-PSK" }
537         }
538       ],
539       "Certificates": [],
540       "Type": "UnencryptedConfiguration",
541       "UnknownField3": [],
542     }