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

Issue 6765030: Add automated StrongSwan test (Closed)

Created:
9 years, 8 months ago by thutt
Modified:
9 years, 5 months ago
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli
Visibility:
Public.

Description

Details This change introduces a new automated test for StrongSwan PSK connectivity. site_linux_server.py is modified to do the following: vpn_strongswan_config_templates() Takes a list of configuration file names, and their contents. The contents can have text that is replaced at write-out time with runtime information, such as the current server IP number. vpn_server_config() Now suports the 'l2tpipsec' type of VPN connection. It is the responsibility of the person writing the test to make sure the contents of the provided configuration templates are correct, and self-consistent. vpn_server_kill() If the current type of VPN is 'l2tpipsec', then all programs known to be associated with that system are killed. site_wifitest.py is modified thusly: Two types of l2tpipsec configurations are supported lt2pipsec-psk lt2pipsec-cert The former uses PSK, and the latter uses certificates. This separation was done to simplify the use of 'connect-vpn' (see review 6756032) as well as the starting of the VPN itself. Testing Starting StrongSwan causes the default route on the system to go through the VPN (which causes active connections to go dead), automated testing is incomplete at this point. Initiating the VPN using 'connect-vpn l2tpipsec-psk' functions correctly. Initiating the VPN using 'connect-vpn l2tpipsec-cert' has not yet been tested; I do not have configuration files for certificate mode. See issue 6756032. BUG=chromium-os:11824 Testing=See above Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=0084cba

Patch Set 1 #

Total comments: 20

Patch Set 2 : Cleanups, improvements & changes in response to Sam's comments. #

Patch Set 3 : Fixed formatting; no other code changes. #

Patch Set 4 : Another step towards having a working test. This is a little crufty, but it actually works. #

Patch Set 5 : Intermediate upload #

Patch Set 6 : More cleanup from a disastrous merge #

Patch Set 7 : Unmerge. #

Patch Set 8 : After fixing all merge issues from Paul #

Total comments: 7

Patch Set 9 : Changed test to specifically use wired adapter. #

Patch Set 10 : Removed unnecessary comments. #

Patch Set 11 : Add facility to specify password, chapuser & chapsecret. #

Patch Set 12 : Remove 'aka strongswan' comments. #

Total comments: 1

Patch Set 13 : Renamed files at Ken's suggestion. #

Patch Set 14 : Removed an unused config file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -59 lines) Patch
M server/site_linux_server.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +89 lines, -22 lines 0 comments Download
M server/site_tests/network_VPN/000VPNGenesis View 1 3 chunks +23 lines, -23 lines 0 comments Download
A server/site_tests/network_VPN/050IPSecGenesis View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +47 lines, -0 lines 0 comments Download
A server/site_tests/network_VPN/055IPSecBadPSK View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +34 lines, -0 lines 0 comments Download
M server/site_wifitest.py View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +46 lines, -14 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
thutt
This StrongSwan test is not finalized (because StrongSwan changes the default route, and the control ...
9 years, 8 months ago (2011-03-30 16:25:41 UTC) #1
Sam Leffler
since noone else responded yet... http://codereview.chromium.org/6765030/diff/1/server/site_tests/network_VPN/000VPNGenesis File server/site_tests/network_VPN/000VPNGenesis (right): http://codereview.chromium.org/6765030/diff/1/server/site_tests/network_VPN/000VPNGenesis#newcode69 server/site_tests/network_VPN/000VPNGenesis:69: # slow the system ...
9 years, 8 months ago (2011-03-31 17:11:27 UTC) #2
thutt
This change adds a new negative test for the StrongSwan, and it addresses most of ...
9 years, 8 months ago (2011-04-05 21:38:21 UTC) #3
kmixter1
http://codereview.chromium.org/6765030/diff/14002/server/site_linux_server.py File server/site_linux_server.py (right): http://codereview.chromium.org/6765030/diff/14002/server/site_linux_server.py#newcode73 server/site_linux_server.py:73: " left=%(@local-listen-ip@)s\n" I assume this is the IP that ...
9 years, 8 months ago (2011-04-05 21:51:33 UTC) #4
thutt1
On Tue, Apr 5, 2011 at 2:51 PM, <kmixter@chromium.org> wrote: I can't actually update the ...
9 years, 8 months ago (2011-04-06 01:33:19 UTC) #5
thutt
I believe this change addresses all of the concerns mentioned. The major changes from the ...
9 years, 8 months ago (2011-04-06 17:04:39 UTC) #6
kmixter1
LGTM on the vpn setup stuff with a suggestion to change file names. http://codereview.chromium.org/6765030/diff/14002/server/site_linux_server.py File ...
9 years, 8 months ago (2011-04-07 07:07:23 UTC) #7
thutt
I've renamed the test control files as suggested by Ken, and removed an unused config ...
9 years, 8 months ago (2011-04-07 15:47:40 UTC) #8
kmixter1
9 years, 8 months ago (2011-04-07 23:59:58 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698