diff options
author | Russ Allbery <rra@stanford.edu> | 2013-02-27 15:17:50 -0800 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2013-02-27 16:53:07 -0800 |
commit | 9ae4e978acd8d36b39e52087806b00acdf7837ad (patch) | |
tree | cb86c0a9d6820ba9306574cd22b7f91d228f4ffb | |
parent | 93e566f6f9ae8a767d2188ad1fb1520c9c2d303a (diff) |
Mark the LDAP verifier test as maintainer-only
This currently requires global read access to the Stanford LDAP
directory, so even other people at Stanford can't run it. Will
revisit when we have a chance to write mock LDAP classes.
Change-Id: I0e944b8019744b14a62e60d5dcc662b417108722
Reviewed-on: https://gerrit.stanford.edu/844
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
-rwxr-xr-x | perl/t/verifier-ldap-attr.t | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/perl/t/verifier-ldap-attr.t b/perl/t/verifier-ldap-attr.t index 1c84fac..41d6737 100755 --- a/perl/t/verifier-ldap-attr.t +++ b/perl/t/verifier-ldap-attr.t @@ -6,17 +6,24 @@ # access to the LDAP server and will be skipped in all other environments. # # Written by Russ Allbery <rra@stanford.edu> -# Copyright 2012 +# Copyright 2012, 2013 # The Board of Trustees of the Leland Stanford Junior University # # See LICENSE for licensing terms. -use Test::More tests => 10; +use Test::More; use lib 't/lib'; use Util; -BEGIN { use_ok ('Wallet::ACL::LDAP::Attribute') }; +# Skip all spelling tests unless the maintainer environment variable is set. +plan skip_all => 'LDAP verifier tests only run for maintainer' + unless $ENV{RRA_MAINTAINER_TESTS}; + +# Declare a plan. +plan tests => 10; + +require_ok ('Wallet::ACL::LDAP::Attribute'); my $host = 'ldap.stanford.edu'; my $base = 'cn=people,dc=stanford,dc=edu'; |