[Rt-commit] rt branch, 4.4/fix-shredder-uid-check, repushed
Craig Kaiser
craig at bestpractical.com
Fri Jun 15 08:26:47 EDT 2018
The branch 4.4/fix-shredder-uid-check was deleted and repushed:
was e40c643408125e8d754656b254a27c949cf2659f
now 389d7480c758a1d0408871caa602fdc613233a82
1: 670c34589 ! 1: 55a1cadce Add test to hit shredder web UI
@@ -49,10 +49,11 @@
+ $agent->submit_form_ok({
+ form_id => 'shredder-search-form',
+ fields => {
-+ 'WipeoutObject' => 'RT::Ticket-example.com-1',
++ 'WipeoutObject' => 'RT::Ticket-example.com-' . $ticket_id,
+ },
+ button => 'Wipeout',
+ }, "Select and destroy ticket object");
++ $agent->text_contains('objects were successfuly removed', 'Found success message' );
+
+ my $ticket = RT::Ticket->new(RT->SystemUser);
+ my ($ret, $msg) = $ticket->Load($ticket_id);
@@ -62,9 +63,7 @@
+
+# Shred RT::User
+{
-+ my $user = RT::User->new(RT->SystemUser);
-+ my ($ret, $msg) = $user->LoadOrCreateByEmail('test at example.com');
-+ ok $ret;
++ my $user = RT::Test->load_or_create_user( EmailAddress => 'test at example.com' );
+
+ my $id = $user->id;
+ ok $id;
@@ -91,8 +90,9 @@
+ },
+ button => 'Wipeout',
+ }, "Select and destroy searched user");
++ $agent->text_contains('objects were successfuly removed', 'Found success message' );
+
-+ ($ret, $msg) = $user->Load($id);
++ my ($ret, $msg) = $user->Load($id);
+ ok !$ret, 'User successfully shredded';
+}
+
2: e40c64340 = 2: 389d7480c Restrict Name checks to objects with Name and only when id is not numeric
More information about the rt-commit
mailing list