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