Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chromeos / test / data / network / invalid_settings_with_repairs.json
index 34c9ce1..365bb25 100644 (file)
@@ -1,4 +1,63 @@
 {
+    "duplicate-network-guid": {
+          "NetworkConfigurations": [
+             {
+               "GUID": "1",
+                "Type": "WiFi",
+                "Name": "My WiFi Network",
+                "WiFi": {
+                  "Passphrase": "dummy",
+                  "SSID": "dummySSID",
+                  "Security": "WPA-PSK"
+               }
+              },
+              {
+                 "GUID": "1",
+                 "Type": "WiFi",
+                 "Name": "My WiFi Network",
+                 "WiFi": {
+                   "Passphrase": "dummy1",
+                   "SSID": "dummySSID1",
+                   "Security": "WPA-PSK"
+               }
+              }
+          ],
+          "Type": "UnencryptedConfiguration"
+    },
+    "repaired-duplicate-network-guid": {
+          "NetworkConfigurations": [
+             {
+               "GUID": "1",
+                "Type": "WiFi",
+                "Name": "My WiFi Network",
+                "WiFi": {
+                  "Passphrase": "dummy",
+                  "SSID": "dummySSID",
+                  "Security": "WPA-PSK"
+               }
+              }
+          ],
+          "Type": "UnencryptedConfiguration"
+    },
+    "duplicate-cert-guid": {
+      "Type": "UnencryptedConfiguration",
+      "Certificates": [
+        { "GUID": "2",
+          "Type": "Server",
+          "X509": "abc" },
+        { "GUID": "2",
+          "PKCS12": "abc" ,
+          "Type": "Client" }
+       ]
+    },
+    "repaired-duplicate-cert-guid": {
+      "Type": "UnencryptedConfiguration",
+      "Certificates": [
+        { "GUID": "2",
+          "Type": "Server",
+          "X509": "abc" }
+       ]
+    },
     "managed-network-repaired": {
         "Recommended": [],
         "GUID": "guid",
         "GUID": "guid",
         "Type": "Ethernet",
         "Name": "name",
-        "IPConfigs": [
-            "Type": "IPv4",
-              "IPAddress": "127.0.0.1",
-              "RoutingPrefix": 123 }
-        ],
+        "StaticIPConfig": {
+            "Type": "IPv4",
+            "IPAddress": "127.0.0.1",
+            "RoutingPrefix": 123
+        },
         "Ethernet": {
             "Authentication": "None"
         }
         "GUID": "guid",
         "Type": "Ethernet",
         "Name": "name",
-        "IPConfigs": [
-            "Type": "IPv4",
-              "IPAddress": "127.0.0.1",
-              "RoutingPrefix": 123 }
-        ],
+        "StaticIPConfig": {
+            "Type": "IPv4",
+            "IPAddress": "127.0.0.1",
+            "RoutingPrefix": 123
+        },
         "Ethernet": {
             "Authentication": "None"
         }
             "Authentication": "None"
         }
     },
+    "network-with-ipconfigs": {
+        "GUID": "guid",
+        "Type": "Ethernet",
+        "Name": "name",
+        "Ethernet": {
+            "Authentication": "None"
+        },
+        "IPConfigs": [ {
+            "Type": "IPv4",
+            "IPAddress": "127.0.0.1",
+            "RoutingPrefix": 123
+        } ],
+    },
     "network-with-client-cert-pattern": {
         "GUID": "guid",
         "Type": "WiFi",
                         "{58ac1967-a0e7-49e9-be68-123abc}"
                     ],
                     "EnrollmentURI": [
-                        "chrome-extension://delkjfjibodjclmdijflfnimdmgdagfk/generate-cert.html" 
+                        "chrome-extension://delkjfjibodjclmdijflfnimdmgdagfk/generate-cert.html"
                     ]
                 }
             }
         }
     },
+    "ipsec-with-psk-and-cacert": {
+      "AuthenticationType": "PSK",
+      "IKEVersion": 1,
+      "PSK": "some psk",
+      "ServerCARef": "a cert ref"
+    },
+    "ipsec-with-client-cert-missing-cacert": {
+      "AuthenticationType": "Cert",
+      "IKEVersion": 1,
+      "ClientCertType": "Ref",
+      "ClientCertRef": "a cert ref"
+    },
+    "ipsec-with-empty-cacertrefs": {
+      "AuthenticationType": "Cert",
+      "IKEVersion": 1,
+      "ClientCertType": "Ref",
+      "ClientCertRef": "a cert ref",
+      "ServerCARefs": []
+    },
+    "ipsec-with-servercaref-and-servercarefs": {
+      "AuthenticationType": "Cert",
+      "ClientCertType": "Ref",
+      "ClientCertRef": "a cert ref",
+      "IKEVersion": 1,
+      "ServerCARef": "a cert ref",
+      "ServerCARefs": ["ref1", "ref2"]
+    },
+    "openvpn-with-servercaref-and-servercarefs": {
+      "ClientCertType": "None",
+      "ServerCARef": "a cert ref",
+      "ServerCARefs": ["ref1", "ref2"]
+    },
+    "eap-with-servercaref-and-servercarefs": {
+      "ClientCertType": "Ref",
+      "ClientCertRef": "a cert ref",
+      "Outer": "LEAP",
+      "ServerCARef": "a cert ref",
+      "ServerCARefs": ["ref1", "ref2"]
+    },
+    "openvpn-missing-verify-x509-name": {
+      "GUID": "guid",
+      "Type": "VPN",
+      "Name": "name",
+      "VPN": {
+        "Host": "host",
+        "Type": "OpenVPN",
+        "OpenVPN": {
+          "ClientCertType": "None",
+          "VerifyX509": {
+            "Type": "name"
+          }
+        }
+      }
+    },
+    "openvpn-invalid-verify-x509-type": {
+      "GUID": "guid",
+      "Type": "VPN",
+      "Name": "name",
+      "VPN": {
+        "Host": "host",
+        "Type": "OpenVPN",
+        "OpenVPN": {
+          "ClientCertType": "None",
+          "VerifyX509": {
+            "Type": "unknown type"
+          }
+        }
+      }
+    },
     "toplevel-empty": {
         "Type": "UnencryptedConfiguration",
         "NetworkConfigurations": [ ]