24-AuthApache.t 468 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;

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

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

done_testing( count() );