[Rt-commit] rt branch, 4.0/external-auth-tests, updated. rt-4.0.1rc1-14-ge874963
Alex Vandiver
alexmv at bestpractical.com
Thu Aug 18 19:22:43 EDT 2011
The branch, 4.0/external-auth-tests has been updated
via e874963916191e6cef90aa91e2393bcb1741e241 (commit)
from 4716929adc66843b4542a9ace4f0e022a7c98ed5 (commit)
Summary of changes:
t/web/remote_user.t | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit e874963916191e6cef90aa91e2393bcb1741e241
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Thu Jun 2 11:23:28 2011 -0400
Add a test for removing credentials causing logout
diff --git a/t/web/remote_user.t b/t/web/remote_user.t
index 8e2c1f5..1955113 100644
--- a/t/web/remote_user.t
+++ b/t/web/remote_user.t
@@ -1,7 +1,7 @@
use strict;
use warnings;
use RT;
-use RT::Test tests => 8;
+use RT::Test tests => 9;
RT->Config->Set( DevelMode => 0 );
RT->Config->Set( WebExternalAuth => 1 );
@@ -33,3 +33,19 @@ $m->content_like(
"Has user on the page"
);
$m->content_unlike(qr/Logout/i, "Has no logout button, no WebFallbackToInternalAuth");
+
+$m->credentials(
+ $authority,
+ "restricted area",
+ undef, undef
+);
+$m->get($url);
+is($m->status, 401, "Subsequent requests without credentials aren't still logged in");
+
+
+# Put the credentials back for the warnings check at the end
+$m->credentials(
+ $authority,
+ "restricted area",
+ root => "password",
+);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list