Home | History | Annotate | Download | only in network_VPNConnect
      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 
      5 AUTHOR = 'pstew, wiley, quiche'
      6 NAME = 'network_VPNConnect.openvpn_cert_verify'
      7 ATTRIBUTES = "suite:bvt-perbuild, suite:network_nightly"
      8 TIME = 'SHORT'
      9 TEST_TYPE = 'client'
     10 
     11 DOC = """
     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 
     26 vpn_types = [ '%s_%s' % (NAME.split('.')[1], subtest)
     27               for subtest in ('', 'cn_only', 'incorrect_subject',
     28                               'incorrect_hash', 'incorrect_cn') ]
     29 job.run_test('network_VPNConnect', vpn_types=vpn_types, tag=NAME.split('.')[1])
     30