• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
8TIME = 'SHORT'
9TEST_TYPE = 'client'
10
11DOC = """
12  Tests that we can complete OpenVPN authentication with a server where
13  the client performs subject name and hash verification.  This is a
14  client-only test which verifies function of the OpenVPN client.  Since
15  the server it is testing against is itself, this test is best suited for
16  verifying that the connection manager is correctly passing parameters to
17  the underlying VPN client to have it properly connect.
18
19  This test fails if the DUT cannot successfully verify the remote VPN
20  server using the "verify-hash" and "verify-x509-name" parameters.  It
21  also tests using the "extra-certs" parameter.  The server runs at the
22  other end of a virtual Ethernet interface.
23
24"""
25
26vpn_types = [ '%s_%s' % (NAME.split('.')[1], subtest)
27              for subtest in ('', 'cn_only', 'incorrect_subject',
28                              'incorrect_hash', 'incorrect_cn') ]
29job.run_test('network_VPNConnect', vpn_types=vpn_types, tag=NAME.split('.')[1])
30