[Bps-public-commit] r15689 - in sd/trunk: . t
sartak at bestpractical.com
sartak at bestpractical.com
Mon Sep 1 22:45:45 EDT 2008
Author: sartak
Date: Mon Sep 1 22:45:45 2008
New Revision: 15689
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/Model/Ticket.pm
sd/trunk/t/01-create.t
sd/trunk/t/02-create-with-editor.t
Log:
r70848 at onn: sartak | 2008-09-01 22:45:37 -0400
Begin fixing the SD commands/tests to use and expect original_replica
Modified: sd/trunk/lib/App/SD/Model/Ticket.pm
==============================================================================
--- sd/trunk/lib/App/SD/Model/Ticket.pm (original)
+++ sd/trunk/lib/App/SD/Model/Ticket.pm Mon Sep 1 22:45:45 2008
@@ -90,7 +90,7 @@
=cut
sub props_to_show {
- ('id', 'summary', 'status', 'owner', 'created', 'due', 'creator', 'reported_by')
+ ('id', 'summary', 'status', 'owner', 'created', 'due', 'creator', 'reported_by', 'original_replica')
}
=head2 props_not_to_edit
Modified: sd/trunk/t/01-create.t
==============================================================================
--- sd/trunk/t/01-create.t (original)
+++ sd/trunk/t/01-create.t Mon Sep 1 22:45:45 2008
@@ -15,6 +15,9 @@
$ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
}
+
+my $replica_uuid = Prophet::CLI->new->handle->uuid;
+
# create from sd and push
my ($yatta_id, $yatta_uuid) = create_ticket_ok( '--summary', 'YATTA');
@@ -30,7 +33,8 @@
'summary: YATTA',
'status: new',
qr/^created: \d{4}-\d{2}-\d{2}.+$/,
- qr/^creator: .+ at .+$/,
+ qr/^creator: /,
+ "original_replica: $replica_uuid",
]
);
Modified: sd/trunk/t/02-create-with-editor.t
==============================================================================
--- sd/trunk/t/02-create-with-editor.t (original)
+++ sd/trunk/t/02-create-with-editor.t Mon Sep 1 22:45:45 2008
@@ -11,6 +11,7 @@
App::SD::Test->set_editor('ticket-create-editor.pl');
}
+my $replica_uuid = Prophet::CLI->new->handle->uuid;
my ($ticket_id, $ticket_uuid, $comment_id, $comment_uuid) = App::SD::Test::create_ticket_with_editor_ok();
run_output_matches( 'sd', [ 'ticket',
@@ -24,7 +25,8 @@
'summary: creating tickets with an editor is totally awesome',
'status: new',
qr/^created: \d{4}-\d{2}-\d{2}.+$/,
- qr/^creator: .+ at .+$/,
+ qr/^creator: /,
+ "original_replica: $replica_uuid",
]
);
@@ -35,5 +37,6 @@
qr/^created: \d{4}-\d{2}-\d{2}.+$/,
qr/^creator: .+ at .+$/,
qr/^ticket: $ticket_uuid$/,
+ "original_replica: $replica_uuid",
]
);
More information about the Bps-public-commit
mailing list