The basic "will it load?" unit tests for AuthProxy* turned up a few
requirements:
1. Add install of Net::LDAP to Makefile.install
2. Initialize the OpenSRF cache after bootstrapping
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
liblog-log4perl-perl\
libmarc-record-perl\
libncurses5-dev\
+ libnet-ldap-perl \
libnet-server-perl\
libnet-ssh2-perl\
libnspr4-dev\
perl-Email-Simple \
perl-GDGraph3d \
perl-JSON-XS \
+ perl-LDAP \
perl-Locale-Codes \
perl-Net-IP \
perl-Net-SSH2 \
my @authenticators;
my %authenticators_by_name;
my $enabled = 'false';
-my $cache = OpenSRF::Utils::Cache->new();
+my $cache;
my $seed_timeout;
my $block_timeout;
my $block_count;
sub initialize {
my $conf = OpenSRF::Utils::SettingsClient->new;
+ $cache = OpenSRF::Utils::Cache->new();
my @pfx = ( "apps", "open-ils.auth", "app_settings", "auth_limits" );
--- /dev/null
+#!perl -T
+
+use Test::More tests => 3;
+
+BEGIN {
+ use_ok( 'OpenILS::Application::AuthProxy' );
+}
+
+use_ok( 'OpenILS::Application::AuthProxy::AuthBase');
+use_ok( 'OpenILS::Application::AuthProxy::LDAP_Auth');