24-AuthApache.t 464 Bytes
Newer Older
Xavier Guimard's avatar
Xavier Guimard committed
1 2 3 4 5 6 7
use Test::More;
use strict;

require 't/test-lib.pm';

my $res;

Xavier Guimard's avatar
Xavier Guimard committed
8
my $client = LLNG::Manager::Test->new( {
9 10 11 12 13 14
        ini => {
            logLevel       => 'error',
            useSafeJail    => 1,
            authentication => 'Apache',
            userDB         => 'Null',
        }
Xavier Guimard's avatar
Xavier Guimard committed
15 16 17
    }
);

18
ok( $res = $client->_get( '/', remote_user => 'dwho' ), 'Auth query' );
19
count(1);
20 21
expectOK($res);
my $id = expectCookie($res);
Xavier Guimard's avatar
Xavier Guimard committed
22 23 24
clean_sessions();

done_testing( count() );