2007-03-01 21:03:19 +01:00
|
|
|
# Before `make install' is performed this script should be runnable with
|
|
|
|
# `make test'. After `make install' it should work as `perl Lemonldap-NG-Manager.t'
|
|
|
|
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# change 'tests => 1' to 'tests => last_test_to_print';
|
|
|
|
|
2007-04-20 08:34:42 +02:00
|
|
|
use Test::More tests => 1;
|
2007-04-14 22:38:55 +02:00
|
|
|
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# Insert your test code below, the Test::More module is use()ed here so read
|
|
|
|
# its man page ( perldoc Test::More ) for help writing this test script.
|
|
|
|
|
2007-03-01 21:03:19 +01:00
|
|
|
# SOAP::Lite is not required, so Lemonldap::NG::Manager::Conf::SOAP may
|
|
|
|
# not run.
|
|
|
|
SKIP: {
|
|
|
|
eval { require AuthCAS };
|
2007-04-20 08:34:42 +02:00
|
|
|
skip "AuthCAS is not installed, so Lemonldap::NG::Portal::AuthCAS will not be useable", 1 if ($@);
|
2007-04-14 22:38:55 +02:00
|
|
|
my $p;
|
2007-04-20 08:34:42 +02:00
|
|
|
eval { require Lemonldap::NG::Portal::Simple };
|
|
|
|
skip "Problem with Lemonldap::NG::Portal::Simple, Lemonldap::NG::Portal::AuthCAS will not be tested", 1 if ($@);
|
2007-04-15 14:44:29 +02:00
|
|
|
ok(
|
|
|
|
$p = Lemonldap::NG::Portal::Simple->new(
|
|
|
|
{
|
2007-04-14 22:38:55 +02:00
|
|
|
globalStorage => 'Apache::Session::File',
|
|
|
|
domain => 'example.com',
|
|
|
|
authentication => 'CAS',
|
2007-04-15 14:44:29 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
);
|
2007-03-01 21:03:19 +01:00
|
|
|
}
|
|
|
|
|