Bugzilla – Attachment 30378 Details for
Bug 12398
CAS authentication not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12398: Move t/Auth_with_cas.t to t/db_dependent/Auth_with_cas.t
Bug-12398-Move-tAuthwithcast-to-tdbdependentAuthwi.patch (text/plain), 2.10 KB, created by
Julian Maurice
on 2014-07-31 07:12:13 UTC
(
hide
)
Description:
Bug 12398: Move t/Auth_with_cas.t to t/db_dependent/Auth_with_cas.t
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-07-31 07:12:13 UTC
Size:
2.10 KB
patch
obsolete
>From 5810169b7e7ae86ce9c09cb3e33dba56157c0741 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 31 Jul 2014 09:08:50 +0200 >Subject: [PATCH] Bug 12398: Move t/Auth_with_cas.t to > t/db_dependent/Auth_with_cas.t > >--- > t/Auth_with_cas.t | 21 --------------------- > t/db_dependent/Auth_with_cas.t | 24 ++++++++++++++++++------ > 2 files changed, 18 insertions(+), 27 deletions(-) > delete mode 100755 t/Auth_with_cas.t > >diff --git a/t/Auth_with_cas.t b/t/Auth_with_cas.t >deleted file mode 100755 >index 0b4a692..0000000 >--- a/t/Auth_with_cas.t >+++ /dev/null >@@ -1,21 +0,0 @@ >-#!/usr/bin/perl >- >-use Modern::Perl; >-use Test::More tests => 1; >- >-use CGI; >-use C4::Auth_with_cas; >- >-my $opac_base_url = C4::Context->preference('OpacBaseURL'); >-my $query_string = 'ticket=foo&bar=baz'; >- >-$ENV{QUERY_STRING} = $query_string; >-$ENV{SCRIPT_NAME} = '/cgi-bin/koha/opac-user.pl'; >- >-my $cgi = new CGI($query_string); >-$cgi->delete('ticket'); >- >-# _url_with_get_params should return the URL without 'ticket' parameter since it >-# has been deleted. >-is(C4::Auth_with_cas::_url_with_get_params($cgi), >- "$opac_base_url/cgi-bin/koha/opac-user.pl?bar=baz"); >diff --git a/t/db_dependent/Auth_with_cas.t b/t/db_dependent/Auth_with_cas.t >index 77dd21f..1c8c2ef 100755 >--- a/t/db_dependent/Auth_with_cas.t >+++ b/t/db_dependent/Auth_with_cas.t >@@ -1,14 +1,26 @@ > #!/usr/bin/perl >-# >-# This Koha test module is a stub! >-# Add more tests here!!! > >-use strict; >-use warnings; >+use Modern::Perl; > >-use Test::More tests => 1; >+use Test::More tests => 2; >+use CGI; >+ >+use C4::Context; > > BEGIN { > use_ok('C4::Auth_with_cas'); > } > >+my $opac_base_url = C4::Context->preference('OpacBaseURL'); >+my $query_string = 'ticket=foo&bar=baz'; >+ >+$ENV{QUERY_STRING} = $query_string; >+$ENV{SCRIPT_NAME} = '/cgi-bin/koha/opac-user.pl'; >+ >+my $cgi = new CGI($query_string); >+$cgi->delete('ticket'); >+ >+# _url_with_get_params should return the URL without 'ticket' parameter since it >+# has been deleted. >+is(C4::Auth_with_cas::_url_with_get_params($cgi), >+ "$opac_base_url/cgi-bin/koha/opac-user.pl?bar=baz"); >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12398
:
28756
|
28910
|
30048
|
30332
|
30333
|
30334
|
30378
|
30442
|
30443
|
30454