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

Issue 6609034: VPN: Test to set up & validate a Client connection to the Server (Closed)

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

Description

VPN: Test to set up & validate a Client connection to the Server Details This changeset creates an autotest suite 'network_VPN' and a single test which sets up and validates that a VPN connection can be created from the Client (DUT) to the Server (rspro). The steps of the test are described in '000VPNGenesis'. The steps to manage the WiFi connection are copied from another test. Testing I'm using 'cell 1' in the chromelab. The rspro router is running a firmware with openvpn compiled in. You must have the following 53d0a92e9b0b37daebc795cc1ea4684d1c0dffd8 from chromeos/master to have the necessary configuration changes to the openwrt repository. You must then build the 'rspro' variant and upgrade your router with the new firmware to be able to run this test. Executed the test with the following command in my chroot: ./bin/cros_run_wifi_tests.sh --cell 1 --lab chromelab VPN This ultimately produces: network_VPN PASS network_VPN/network_VPN.000VPNGenesis PASS client_ping_avg 2.580 client_ping_frequency 2412 client_ping_loss 0 client_ping_max 4.216 client_ping_min 2.167 client_ping_phymode 802.11g client_ping_recv 10 client_ping_security 802_1x client_ping_xmit 10 connect_acquire_s 4.527 connect_assoc_s 0.311 connect_config_s 0.395 connect_frequency 2412 connect_select_s 0.010 ------------------------------------------- Total PASS: 2/2 (100%) Change-Id: I69e2e9a5680a8ae2db7e27e61ed96592ad460a55 VPN connectivity through the DUT to the server works Change-Id: Ifaeff9a39668805a19778c6be3e22d96fdf995e8 This change adds 'Diffie-Hellman 1024' to the set of available certificates. This is part of the OpenVPN-on-rspro effort. Change-Id: Ief3b7872ffd3f6ea554875864f681b22e5437554 BUG=12882 TEST= Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=9963dc1

Patch Set 1 #

Patch Set 2 : Filled in missing block comments about the nature of this test. #

Total comments: 3

Patch Set 3 : Generalize vpn_xxx() to allow easy extension for different VPN types #

Patch Set 4 : Addressed naming discrepency in comments. #

Patch Set 5 : Removed superfluous whitespace & addressed too-long line. #

Patch Set 6 : Invoking configuration now kills & restarts client/server. #

Patch Set 7 : Some cleanup & logistical fixes. #

Patch Set 8 : Made client & server code more similar. Updated failure tests #

Total comments: 2

Patch Set 9 : Removed hardcoded IP from client config & address inefficient code #

Patch Set 10 : Fix headers, even though the copyright year regex is wrong #

Patch Set 11 : Fix headers, even though the copyright year regex is wrong #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -13 lines) Patch
M server/site_eap_certs.py View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
A server/site_linux_server.py View 1 2 3 4 5 6 7 1 chunk +79 lines, -0 lines 0 comments Download
A server/site_tests/network_VPN/000VPNGenesis View 1 2 3 4 5 6 7 8 1 chunk +84 lines, -0 lines 0 comments Download
A server/site_tests/network_VPN/001VPNNoKindSpecified View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A server/site_tests/network_VPN/control View 1 1 chunk +34 lines, -0 lines 0 comments Download
A server/site_tests/network_VPN/network_VPN.py View 1 1 chunk +22 lines, -0 lines 0 comments Download
M server/site_wifitest.py View 1 2 3 4 5 6 7 8 9 10 chunks +91 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
thutt1
Anyone have time to take a look at my first attempt?
9 years, 9 months ago (2011-03-03 22:56:46 UTC) #1
Paul Stewart
Pretty good for a first pass! A few things to address. http://codereview.chromium.org/6609034/diff/2001/server/site_linux_server.py File server/site_linux_server.py (right): ...
9 years, 9 months ago (2011-03-03 23:18:42 UTC) #2
Paul Stewart
On 2011/03/03 23:18:42, Paul Stewart wrote: > I suggest you call these "openvpn_*" instead of ...
9 years, 9 months ago (2011-03-04 17:00:18 UTC) #3
thutt1
Paul, I think I've addressed all your concerns.
9 years, 9 months ago (2011-03-04 21:48:02 UTC) #4
thutt
Rebuilding & reinstalling on the DUT solved the issues I was having with slowness. I ...
9 years, 9 months ago (2011-03-08 16:02:51 UTC) #5
Paul Stewart
9 years, 9 months ago (2011-03-08 16:56:54 UTC) #6
LGTM with two teensy nits (okay to push without, though the 'vpn-host-ip' change
could avoid problems in the future).

http://codereview.chromium.org/6609034/diff/13002/server/site_tests/network_V...
File server/site_tests/network_VPN/000VPNGenesis (right):

http://codereview.chromium.org/6609034/diff/13002/server/site_tests/network_V...
server/site_tests/network_VPN/000VPNGenesis:70: "vpn-host-ip":"192.168.2.254",
Would suggest you remove the 'vpn-host-ip' parameter here, since you have this
parameter nicely defaulted now.

http://codereview.chromium.org/6609034/diff/13002/server/site_wifitest.py
File server/site_wifitest.py (right):

http://codereview.chromium.org/6609034/diff/13002/server/site_wifitest.py#new...
server/site_wifitest.py:1225: cert_pathnames[cert] = pathname
The three lines above bake down to "cert_pathnames = params.get('files', {})"

Powered by Google App Engine
This is Rietveld 408576698