1# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5AUTHOR = 'pstew, wiley, quiche' 6NAME = 'network_VPNConnect.openvpn_cert_verify' 7ATTRIBUTES = "suite:bvt-perbuild, suite:network_nightly" 8SUITE = 'bvt-perbuild, network_nightly' 9TIME = 'SHORT' 10TEST_TYPE = 'client' 11 12DOC = """ 13 Tests that we can complete OpenVPN authentication with a server where 14 the client performs subject name and hash verification. This is a 15 client-only test which verifies function of the OpenVPN client. Since 16 the server it is testing against is itself, this test is best suited for 17 verifying that the connection manager is correctly passing parameters to 18 the underlying VPN client to have it properly connect. 19 20 This test fails if the DUT cannot successfully verify the remote VPN 21 server using the "verify-hash" and "verify-x509-name" parameters. It 22 also tests using the "extra-certs" parameter. The server runs at the 23 other end of a virtual Ethernet interface. 24 25""" 26 27vpn_types = [ '%s_%s' % (NAME.split('.')[1], subtest) 28 for subtest in ('', 'cn_only', 'incorrect_subject', 29 'incorrect_hash', 'incorrect_cn') ] 30job.run_test('network_VPNConnect', vpn_types=vpn_types, tag=NAME.split('.')[1]) 31