Commit f4548758 authored by Yadd's avatar Yadd
Browse files

More tests (#595)

parent 12fbce8a
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</Files> </Files>
# Temporary hook # Temporary hook
<Files *.psgi> <Files *.fcgi>
SetHandler fcgid-script SetHandler fcgid-script
Options +ExecCGI Options +ExecCGI
</Files> </Files>
......
...@@ -19,7 +19,8 @@ localStorageOptions={ \ ...@@ -19,7 +19,8 @@ localStorageOptions={ \
notification = 0 notification = 0
checkXSS = 0 checkXSS = 0
portalSkin = pastel portalSkin = bootstrap
templateDir = __pwd__/lemonldap-ng-portal/site/templates
[handler] [handler]
......
...@@ -50,20 +50,22 @@ ok( $hdrs{'Lm-Remote-User'} eq 'dwho', 'User is set' ) ...@@ -50,20 +50,22 @@ ok( $hdrs{'Lm-Remote-User'} eq 'dwho', 'User is set' )
or explain( \%hdrs, 'Lm-Remote-User => "dwho"' ); or explain( \%hdrs, 'Lm-Remote-User => "dwho"' );
count(4); count(4);
#ok( ok(
# $res = &client->_get( $res = &client->_get(
# '/', '/',
# query => 'url=aHR0cHM6Ly90LmV4YW1wbGUuY29tLw==', query => 'url=aHR0cHM6Ly90LmV4YW1wbGUuY29tLw==',
# cookie => "lemonldap=$id", cookie => "lemonldap=$id",
# accept => 'text/html' accept => 'text/html'
# ), ),
# 'Auth request with bad url' 'Auth request with bad url'
#); );
#ok( $res->[0] == 200, 'Get redirection' ) or explain( $res, 200 ); ok( $res->[0] == 200, 'HTTP code is 200' ) or explain( $res, 200 );
#my %hdrs = @{ $res->[1] }; my %hdrs = @{ $res->[1] };
#ok( $hdrs{'Lm-Remote-User'} eq 'dwho', 'User is set' ) ok( $hdrs{'Lm-Remote-User'} eq 'dwho', 'User is set' )
# or explain( \%hdrs, 'Lm-Remote-User => "dwho"' ); or explain( \%hdrs, 'Lm-Remote-User => "dwho"' );
#count(3); ok( $hdrs{'Content-Type'} eq 'text/html', 'Reponse is HTML' )
or explain( \%hdrs, 'Content-Type => "text/html"' );
count(4);
#print STDERR Dumper($res); #print STDERR Dumper($res);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment