[Rt-commit] r18175 - in rt/3.999/branches/merge_to_3.8.2: t/web

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Feb 4 03:31:09 EST 2009


Author: sunnavy
Date: Wed Feb  4 03:31:08 2009
New Revision: 18175

Modified:
   rt/3.999/branches/merge_to_3.8.2/   (props changed)
   rt/3.999/branches/merge_to_3.8.2/t/web/command_line.t

Log:
 r19519 at sunnavys-mb:  sunnavy | 2009-02-04 16:29:11 +0800
 output cases for rest is reverted back


Modified: rt/3.999/branches/merge_to_3.8.2/t/web/command_line.t
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/t/web/command_line.t	(original)
+++ rt/3.999/branches/merge_to_3.8.2/t/web/command_line.t	Wed Feb  4 03:31:08 2009
@@ -81,7 +81,7 @@
 expect_like(qr/Queue $queue_id updated/, 'Edited the queue');
 expect_send("show queue/$queue_id", 'Showing the queue...');
 expect_like(qr/id: queue\/$queue_id/, 'Saw the queue');
-expect_like(qr/name: EditedQueue$$/, 'Saw the modification');
+expect_like(qr/Name: EditedQueue$$/, 'Saw the modification');
 TODO: { 
     todo_skip "Listing non-ticket items doesn't work", 2;
     expect_send("list -t queue 'id > 0'", 'Listing the queues...');
@@ -123,32 +123,32 @@
 expect_send("edit ticket/$ticket_id set owner=root", 'Changing owner...');
 expect_like(qr/Ticket $ticket_id updated/, 'Changed owner');
 expect_send("show ticket/$ticket_id -f owner", 'Verifying change...');
-expect_like(qr/owner: root/, 'Verified change');
+expect_like(qr/Owner: root/, 'Verified change');
 # change a ticket's Requestor
 expect_send("edit ticket/$ticket_id set requestors=foo\@example.com", 'Changing Requestor...');
 expect_like(qr/Ticket $ticket_id updated/, 'Changed Requestor');
 expect_send("show ticket/$ticket_id -f requestors", 'Verifying change...');
-expect_like(qr/requestors: foo\@example.com/, 'Verified change');
+expect_like(qr/Requestors: foo\@example.com/, 'Verified change');
 # change a ticket's Cc
 expect_send("edit ticket/$ticket_id set cc=bar\@example.com", 'Changing Cc...');
 expect_like(qr/Ticket $ticket_id updated/, 'Changed Cc');
 expect_send("show ticket/$ticket_id -f cc", 'Verifying change...');
-expect_like(qr/cc: bar\@example.com/, 'Verified change');
+expect_like(qr/Cc: bar\@example.com/, 'Verified change');
 # change a ticket's priority
 expect_send("edit ticket/$ticket_id set priority=10", 'Changing priority...');
 expect_like(qr/Ticket $ticket_id updated/, 'Changed priority');
 expect_send("show ticket/$ticket_id -f priority", 'Verifying change...');
-expect_like(qr/priority: 10/, 'Verified change');
+expect_like(qr/Priority: 10/, 'Verified change');
 # move a ticket to a different queue
 expect_send("edit ticket/$ticket_id set queue=EditedQueue$$", 'Changing queue...');
 expect_like(qr/Ticket $ticket_id updated/, 'Changed queue');
 expect_send("show ticket/$ticket_id -f queue", 'Verifying change...');
-expect_like(qr/queue: EditedQueue$$/, 'Verified change');
+expect_like(qr/Queue: EditedQueue$$/, 'Verified change');
 # cannot move ticket to a nonexistent queue
 expect_send("edit ticket/$ticket_id set queue=nonexistent-$$", 'Changing to nonexistent queue...');
 expect_like(qr/queue does not exist/i, 'Errored out');
 expect_send("show ticket/$ticket_id -f queue", 'Verifying lack of change...');
-expect_like(qr/queue: EditedQueue$$/, 'Verified lack of change');
+expect_like(qr/Queue: EditedQueue$$/, 'Verified lack of change');
 
 # Test reading and setting custom fields without spaces
 expect_send("show ticket/$ticket_id -f CF-myCF$$", 'Checking initial value');
@@ -202,17 +202,17 @@
 expect_send("edit ticket/$ticket_id set status=stalled", 'Changing status to "stalled"...');
 expect_like(qr/Ticket $ticket_id updated/, 'Changed status');
 expect_send("show ticket/$ticket_id -f status", 'Verifying change...');
-expect_like(qr/status: stalled/, 'Verified change');
+expect_like(qr/Status: stalled/, 'Verified change');
 # resolve a ticket
 expect_send("edit ticket/$ticket_id set status=resolved", 'Changing status to "resolved"...');
 expect_like(qr/Ticket $ticket_id updated/, 'Changed status');
 expect_send("show ticket/$ticket_id -f status", 'Verifying change...');
-expect_like(qr/status: resolved/, 'Verified change');
+expect_like(qr/Status: resolved/, 'Verified change');
 # try to set status to an invalid value
 expect_send("edit ticket/$ticket_id set status=quux", 'Changing status to an invalid value...');
 expect_like(qr/invalid value/i, 'Errored out');
 expect_send("show ticket/$ticket_id -f status", 'Verifying lack of change...');
-expect_like(qr/status: resolved/, 'Verified change');
+expect_like(qr/Status: resolved/, 'Verified change');
 
 # }}}
 
@@ -246,7 +246,7 @@
 my $attachment_type = $2;
 ok($attachment_id, "Got attachment id=$attachment_id $attachment_type");
 expect_send("show -s ticket/$ticket_id/attachments/$attachment_id", "Showing attachment $attachment_id...");
-expect_like(qr/content_type: $attachment_type/, 'Got the attachment');
+expect_like(qr/ContentType: $attachment_type/, 'Got the attachment');
 
 # }}}
 
@@ -263,7 +263,7 @@
 expect_like(qr/User $user_id updated/, 'Edited the user');
 expect_send("show user/$user_id", 'Showing the user...');
 expect_like(qr/id: user\/$user_id/, 'Saw the user');
-expect_like(qr/name: EditedUser$$/, 'Saw the modification');
+expect_like(qr/Name: EditedUser$$/, 'Saw the modification');
 TODO: { 
     todo_skip "Listing non-ticket items doesn't work", 2;
     expect_send("list -t user 'id > 0'", 'Listing the users...');
@@ -287,7 +287,7 @@
 expect_like(qr/Group $group_id updated/, 'Edited the group');
 expect_send("show group/$group_id", 'Showing the group...');
 expect_like(qr/id: group\/$group_id/, 'Saw the group');
-expect_like(qr/name: EditedGroup$$/, 'Saw the modification');
+expect_like(qr/Name: EditedGroup$$/, 'Saw the modification');
 TODO: { 
     local $TODO = "Listing non-ticket items doesn't work";
     expect_send("list -t group 'id > 0'", 'Listing the groups...');
@@ -312,7 +312,7 @@
 expect_like(qr/Custom field $cf_id updated/, 'Edited the custom field');
 expect_send("show cf/$cf_id", 'Showing the queue...');
 expect_like(qr/id: custom_field\/$cf_id/, 'Saw the custom field');
-expect_like(qr/name: EditedCF$$/, 'Saw the modification');
+expect_like(qr/Name: EditedCF$$/, 'Saw the modification');
 TODO: { 
     todo_skip "Listing non-ticket items doesn't work", 2;
     expect_send("list -t custom_field 'id > 0'", 'Listing the CFs...');
@@ -399,13 +399,13 @@
     expect_send("take $steal_ticket_id", 'user tries to take the ticket...');
     expect_like(qr/You can only take tickets that are unowned/, '...and fails.');
     expect_send("show ticket/$steal_ticket_id -f owner", 'Double-checking...');
-    expect_like(qr/owner: root/, '...no change.');
+    expect_like(qr/Owner: root/, '...no change.');
 
     # user steals the ticket
     expect_send("steal $steal_ticket_id", 'user tries to *steal* the ticket...');
     expect_like(qr/Owner changed from root to fooser$$/, '...and succeeds!');
     expect_send("show ticket/$steal_ticket_id -f owner", 'Double-checking...');
-    expect_like(qr/owner: fooser$$/, '...yup, it worked.');
+    expect_like(qr/Owner: fooser$$/, '...yup, it worked.');
     expect_quit();
 
     # log back in as root


More information about the Rt-commit mailing list