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

Unified Diff: server/site_tests/network_VPN/055StrongSwanBadPSK

Issue 6765030: Add automated StrongSwan test (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: After fixing all merge issues from Paul Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: server/site_tests/network_VPN/055StrongSwanBadPSK
diff --git a/server/site_tests/network_VPN/055StrongSwanBadPSK b/server/site_tests/network_VPN/055StrongSwanBadPSK
new file mode 100644
index 0000000000000000000000000000000000000000..6d710748f19e70f66cecbeff7e4b3eaf96d378cb
--- /dev/null
+++ b/server/site_tests/network_VPN/055StrongSwanBadPSK
@@ -0,0 +1,34 @@
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# StrongSwan VPN, with bad PSK credentials.
+#
+
+{ "name" : "VPNStrongSwanBadPSK",
+ "steps":[
+ # Create WiFi connection from Client to Router.
+ [ "create", { "type" : "hostap" } ],
+ [ "config", { "channel" : "2412", "mode" : "11b" } ],
+ [ "connect", { "security" : "none" } ],
+
+ [ "vpn_server_config", {
+ "kind" : "l2tpipsec",
+ "replacements" : { "@plutodebug@" : "all" }}],
+
+ # Launch the VPN Client.
+ [ "!vpn_client_config", { "kind" : "l2tpipsec-psk",
+ "password" : "paxxword", # ipsec.secrets
+ "chapuser" : "chapuxer", # chap-secrets
+ "chapsecret" : "chapxecret" # chap-secrets
+ }],
+
+ # Verify the client is connected to the server
+ [ "!client_ping", { "ping_ip" : "192.168.1.99", # In xl2tpd.conf.
+ "count" : "10" } ],
+
+ [ "vpn_client_kill" ], # Shut down the VPN Client.
+ [ "vpn_server_kill" ], # Shut down the VPN Server.
+ [ "disconnect" ], # Disconnect WiFi setup
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698