[Rt-commit] r4075 - in rt/branches/3.4-RELEASE: . lib/t/regression
jesse at bestpractical.com
jesse at bestpractical.com
Mon Nov 14 14:18:36 EST 2005
Author: jesse
Date: Mon Nov 14 14:18:36 2005
New Revision: 4075
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/lib/t/regression/07acl.t
Log:
r18899 at truegrounds: jesse | 2005-11-14 13:40:24 -0500
RT-Ticket: 7121
RT-Status: resolved
RT-Update: correspond
* Patch from Todd Chapman to make the web based acl tests honor RT::WebPath
Modified: rt/branches/3.4-RELEASE/lib/t/regression/07acl.t
==============================================================================
--- rt/branches/3.4-RELEASE/lib/t/regression/07acl.t (original)
+++ rt/branches/3.4-RELEASE/lib/t/regression/07acl.t Mon Nov 14 14:18:36 2005
@@ -49,9 +49,9 @@
ok($agent->{'content'} =~ /Logout/i, "Found a logout link");
# Test for absence of Configure and Preferences tabs.
-ok(!$agent->find_link( url => '/Admin/',
+ok(!$agent->find_link( url => "$RT::WebPath/Admin/",
text => 'Configuration'), "No config tab" );
-ok(!$agent->find_link( url => '/User/Prefs.html',
+ok(!$agent->find_link( url => "$RT::WebPath/User/Prefs.html",
text => 'Preferences'), "No prefs pane" );
# Now test for their presence, one at a time. Sleep for a bit after
@@ -59,18 +59,18 @@
$user_obj->PrincipalObj->GrantRight(Right => 'ShowConfigTab');
$agent->reload();
ok($agent->{'content'} =~ /Logout/i, "Reloaded page successfully");
-ok($agent->find_link( url => '/Admin/',
+ok($agent->find_link( url => "$RT::WebPath/Admin/",
text => 'Configuration'), "Found config tab" );
$user_obj->PrincipalObj->RevokeRight(Right => 'ShowConfigTab');
$user_obj->PrincipalObj->GrantRight(Right => 'ModifySelf');
$agent->reload();
ok($agent->{'content'} =~ /Logout/i, "Reloaded page successfully");
-ok($agent->find_link( url => '/User/Prefs.html',
+ok($agent->find_link( url => "$RT::WebPath/User/Prefs.html",
text => 'Preferences'), "Found prefs pane" );
$user_obj->PrincipalObj->RevokeRight(Right => 'ModifySelf');
# Good. Now load the search page and test Load/Save Search.
-$agent->follow_link( url => '/Search/Build.html',
+$agent->follow_link( url => "$RT::WebPath/Search/Build.html",
text => 'Tickets');
is($agent->{'status'}, 200, "Fetched search builder page");
ok($agent->{'content'} !~ /Load saved search/i, "No search loading box");
More information about the Rt-commit
mailing list