[Rt-devel] RT 3.4.4pre1 - PLEASE TEST ME

Todd Chapman todd at chaka.net
Wed Aug 24 16:05:52 EDT 2005


On Tue, Aug 23, 2005 at 10:46:39PM -0400, Jesse Vincent wrote:
> RT 3.4.4 pre1 fixes a number of small issues reported since RT 3.4.3,
> many related to changes in HTML::Mason 1.3x. (We also updated some
> translations.)
> 

Jesse,

All tests pass for me after the following patch is applied. Luckily
it's a test file that needs patching. It's best to leave the
'url' parameter off of follow_link and find_link. Either that,
or prepend $RT::WebPath, becuase the tests break if the WebPath
is not the default.

-Todd
-------------- next part --------------
Index: lib/t/regression/07acl.t
===================================================================
--- lib/t/regression/07acl.t	(revision 3719)
+++ lib/t/regression/07acl.t	(working copy)
@@ -49,29 +49,24 @@
 ok($agent->{'content'} =~ /Logout/i, "Found a logout link");
 
 # Test for absence of Configure and Preferences tabs.
-ok(!$agent->find_link( url => '/Admin/',
-		       text => 'Configuration'), "No config tab" );
-ok(!$agent->find_link( url => '/User/Prefs.html',
-		       text => 'Preferences'), "No prefs pane" );
+ok(!$agent->find_link( text => 'Configuration'), "No config tab" );
+ok(!$agent->find_link( text => 'Preferences'), "No prefs pane" );
 
 # Now test for their presence, one at a time.  Sleep for a bit after
 # ACL changes, thanks to the 10s ACL cache.
 $user_obj->PrincipalObj->GrantRight(Right => 'ShowConfigTab');
 $agent->reload();
 ok($agent->{'content'} =~ /Logout/i, "Reloaded page successfully");
-ok($agent->find_link( url => '/Admin/',
-		       text => 'Configuration'), "Found config tab" );
+ok($agent->find_link( 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',
-		       text => 'Preferences'), "Found prefs pane" );
+ok($agent->find_link( 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',
-		     text => 'Tickets');
+$agent->follow_link( text => 'Tickets');
 is($agent->{'status'}, 200, "Fetched search builder page");
 ok($agent->{'content'} !~ /Load saved search/i, "No search loading box");
 ok($agent->{'content'} !~ /Saved searches/i, "No saved searches box");


More information about the Rt-devel mailing list