[Catalyst-commits] r7946 - in
trunk/Catalyst-Plugin-Authentication-Credential-HTTP: . t
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Mon Jun 23 21:39:28 BST 2008
Author: t0m
Date: 2008-06-23 21:39:28 +0100 (Mon, 23 Jun 2008)
New Revision: 7946
Modified:
trunk/Catalyst-Plugin-Authentication-Credential-HTTP/Changes
trunk/Catalyst-Plugin-Authentication-Credential-HTTP/t/live_app_digest.t
Log:
Use non-deprecated modules in the test suite.
Modified: trunk/Catalyst-Plugin-Authentication-Credential-HTTP/Changes
===================================================================
--- trunk/Catalyst-Plugin-Authentication-Credential-HTTP/Changes 2008-06-23 20:21:52 UTC (rev 7945)
+++ trunk/Catalyst-Plugin-Authentication-Credential-HTTP/Changes 2008-06-23 20:39:28 UTC (rev 7946)
@@ -1,3 +1,6 @@
+0.11 2008-XX-XX
+ - Changed cache modules used in the tests to not be deprecated.
+
0.10 2007-04-26
- switch to Module::Install
Modified: trunk/Catalyst-Plugin-Authentication-Credential-HTTP/t/live_app_digest.t
===================================================================
--- trunk/Catalyst-Plugin-Authentication-Credential-HTTP/t/live_app_digest.t 2008-06-23 20:21:52 UTC (rev 7945)
+++ trunk/Catalyst-Plugin-Authentication-Credential-HTTP/t/live_app_digest.t 2008-06-23 20:39:28 UTC (rev 7946)
@@ -6,9 +6,12 @@
eval { require Test::WWW::Mechanize::Catalyst }
or plan skip_all =>
"Test::WWW::Mechanize::Catalyst is needed for this test";
- eval { require Catalyst::Plugin::Cache::FileCache }
+ eval { require Catalyst::Plugin::Cache }
or plan skip_all =>
- "Catalyst::Plugin::Cache::FileCache is needed for this test";
+ "Catalyst::Plugin::Cache is needed for this test";
+ eval { require Cache::FileCache }
+ or plan skip_all =>
+ "Cache::FileCache is needed for this test";
plan tests => 4;
}
use HTTP::Request;
@@ -18,7 +21,7 @@
Authentication
Authentication::Store::Minimal
Authentication::Credential::HTTP
- Cache::FileCache
+ Cache
/;
use Test::More;
our $users;
@@ -27,6 +30,9 @@
$c->authorization_required( realm => 'testrealm at host.com' );
$c->res->body( $c->user->id );
}
+ __PACKAGE__->config->{cache}{backend} = {
+ class => 'Cache::FileCache',
+ };
__PACKAGE__->config->{authentication}{http}{type} = 'digest';
__PACKAGE__->config->{authentication}{users} = $users = {
Mufasa => { password => "Circle Of Life", },
More information about the Catalyst-commits
mailing list