[Bps-public-commit] r16686 - in sd/branches/init-and-clone: .

jesse at bestpractical.com jesse at bestpractical.com
Thu Nov 6 01:48:41 EST 2008


Author: jesse
Date: Thu Nov  6 01:48:39 2008
New Revision: 16686

Modified:
   sd/branches/init-and-clone/   (props changed)
   sd/branches/init-and-clone/t/01-create.t
   sd/branches/init-and-clone/t/02-create-with-editor.t
   sd/branches/init-and-clone/t/03-update-ticket-with-editor.t
   sd/branches/init-and-clone/t/04-update-ticket-comment-with-editor.t
   sd/branches/init-and-clone/t/attachment-content.t
   sd/branches/init-and-clone/t/sd-attachments.t
   sd/branches/init-and-clone/t/sd-comments.t
   sd/branches/init-and-clone/t/sd-hm-comments.t
   sd/branches/init-and-clone/t/sd-rt-n-foreign-sync.t
   sd/branches/init-and-clone/t/sd-rt-permission.t
   sd/branches/init-and-clone/t/sd-rt.t
   sd/branches/init-and-clone/t/sd-validation.t

Log:
 r47419 at 31b:  jesse | 2008-10-27 10:22:31 +0900
 * Starting to update tests for prophet init-and-clone branch


Modified: sd/branches/init-and-clone/t/01-create.t
==============================================================================
--- sd/branches/init-and-clone/t/01-create.t	(original)
+++ sd/branches/init-and-clone/t/01-create.t	Thu Nov  6 01:48:39 2008
@@ -16,6 +16,8 @@
     diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
 }
 
+run_script( 'sd', [ 'init']);
+
 # create from sd and push
 my ($yatta_id, $yatta_uuid) = create_ticket_ok( '--summary', 'YATTA');
 

Modified: sd/branches/init-and-clone/t/02-create-with-editor.t
==============================================================================
--- sd/branches/init-and-clone/t/02-create-with-editor.t	(original)
+++ sd/branches/init-and-clone/t/02-create-with-editor.t	Thu Nov  6 01:48:39 2008
@@ -10,6 +10,7 @@
     diag 'export SD_REPO=' . $ENV{'PROPHET_REPO'} . "\n";
     App::SD::Test->set_editor('ticket-create-editor.pl');
 }
+run_script( 'sd', [ 'init']);
 
 my $replica_uuid = replica_uuid;
 my ($ticket_id, $ticket_uuid, $comment_id, $comment_uuid) = App::SD::Test::create_ticket_with_editor_ok();

Modified: sd/branches/init-and-clone/t/03-update-ticket-with-editor.t
==============================================================================
--- sd/branches/init-and-clone/t/03-update-ticket-with-editor.t	(original)
+++ sd/branches/init-and-clone/t/03-update-ticket-with-editor.t	Thu Nov  6 01:48:39 2008
@@ -10,6 +10,7 @@
     diag 'export SD_REPO=' . $ENV{'PROPHET_REPO'} . "\n";
     App::SD::Test->set_editor('ticket-update-editor.pl');
 }
+run_script( 'sd', [ 'init']);
 
 my $replica_uuid = replica_uuid;
 

Modified: sd/branches/init-and-clone/t/04-update-ticket-comment-with-editor.t
==============================================================================
--- sd/branches/init-and-clone/t/04-update-ticket-comment-with-editor.t	(original)
+++ sd/branches/init-and-clone/t/04-update-ticket-comment-with-editor.t	Thu Nov  6 01:48:39 2008
@@ -11,6 +11,9 @@
     App::SD::Test->set_editor('ticket-comment-update-editor.pl');
 }
 
+run_script( 'sd', [ 'init']);
+
+
 my $replica_uuid = replica_uuid;
 
 # create ticket

Modified: sd/branches/init-and-clone/t/attachment-content.t
==============================================================================
--- sd/branches/init-and-clone/t/attachment-content.t	(original)
+++ sd/branches/init-and-clone/t/attachment-content.t	Thu Nov  6 01:48:39 2008
@@ -22,6 +22,9 @@
     $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
     diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
 }
+run_script( 'sd', [ 'init']);
+
+
 # create from sd and push
 my ($yatta_id, $yatta_uuid) = create_ticket_ok( '--summary', 'YATTA', '--status', 'new' );
 

Modified: sd/branches/init-and-clone/t/sd-attachments.t
==============================================================================
--- sd/branches/init-and-clone/t/sd-attachments.t	(original)
+++ sd/branches/init-and-clone/t/sd-attachments.t	Thu Nov  6 01:48:39 2008
@@ -12,6 +12,9 @@
     diag "export SD_REPO=".$ENV{'PROPHET_REPO'} ."\n";
 }
 
+run_script( 'sd', [ 'init']);
+
+
 my $replica_uuid = replica_uuid;
 # create from sd and push
 my ($yatta_id, $yatta_uuid) =  create_ticket_ok( '--summary', 'YATTA', '--status', 'new' );

Modified: sd/branches/init-and-clone/t/sd-comments.t
==============================================================================
--- sd/branches/init-and-clone/t/sd-comments.t	(original)
+++ sd/branches/init-and-clone/t/sd-comments.t	Thu Nov  6 01:48:39 2008
@@ -13,6 +13,9 @@
     diag $ENV{'PROPHET_REPO'};
 }
 
+run_script( 'sd', [ 'init']);
+
+
 my $replica_uuid = replica_uuid;
 
 # create from sd and push

Modified: sd/branches/init-and-clone/t/sd-hm-comments.t
==============================================================================
--- sd/branches/init-and-clone/t/sd-hm-comments.t	(original)
+++ sd/branches/init-and-clone/t/sd-hm-comments.t	Thu Nov  6 01:48:39 2008
@@ -40,7 +40,7 @@
 
 my ($yatta_uuid, $yatta_id);
 {
-    my ($ret, $out, $err) = run_script( 'sd', [ 'pull', '--from', $sd_hm_url ] );
+    my ($ret, $out, $err) = run_script( 'sd', [ 'clone', '--from', $sd_hm_url ] );
 
     run_output_matches( 'sd', [qw(ticket list --regex .)], [qr/(.*?)(?{ $yatta_uuid = $1 }) YATTA (.*)/] );
     ( $ret, $out, $err ) = run_script( 'sd', [ qw(ticket show --batch --id), $yatta_uuid ] );

Modified: sd/branches/init-and-clone/t/sd-rt-n-foreign-sync.t
==============================================================================
--- sd/branches/init-and-clone/t/sd-rt-n-foreign-sync.t	(original)
+++ sd/branches/init-and-clone/t/sd-rt-n-foreign-sync.t	Thu Nov  6 01:48:39 2008
@@ -99,6 +99,9 @@
 # now the tests, bob syncs with rt, alice syncs with hm
 as_alice {
     local $ENV{SD_REPO} = $ENV{'PROPHET_REPO'};
+
+    run_script( 'sd', [ 'init']);
+    
     ( $ret, $out, $err ) = run_script( 'sd', [ 'pull', '--from', $sd_hm_url ] );
     diag($err) if ($err);
     run_output_matches( 'sd', [ 'ticket', 'list', '--regex', '.' ], [qr/^(.*?)(?{ $alice_yatta_id = $1 }) YATTA .*/] );
@@ -107,6 +110,8 @@
 
 as_bob {
     local $ENV{SD_REPO} = $ENV{'PROPHET_REPO'};
+    run_script( 'sd', [ 'init']);
+    
     run_output_matches( 'sd', [ 'ticket', 'list', '--regex', '.' ], [] );
 
     diag("Bob pulling from RT");

Modified: sd/branches/init-and-clone/t/sd-rt-permission.t
==============================================================================
--- sd/branches/init-and-clone/t/sd-rt-permission.t	(original)
+++ sd/branches/init-and-clone/t/sd-rt-permission.t	Thu Nov  6 01:48:39 2008
@@ -63,6 +63,7 @@
 my $sd_alice_url = "rt:$alice_url|General|Status!='resolved'";
 
 as_alice {
+    run_script( 'sd', [ 'init']);
     ($ret, $out, $err) = run_script('sd', ['pull', '--from',  $sd_alice_url]);
     ok($ret);
     like($out, qr/No new changesets/);

Modified: sd/branches/init-and-clone/t/sd-rt.t
==============================================================================
--- sd/branches/init-and-clone/t/sd-rt.t	(original)
+++ sd/branches/init-and-clone/t/sd-rt.t	Thu Nov  6 01:48:39 2008
@@ -61,6 +61,7 @@
     status => 'open',
 )->store();
 
+run_script( 'sd', [ 'init']);
 ( $ret, $out, $err ) = run_script( 'sd', [ 'pull', '--from', $sd_rt_url ] );
 
 run_output_matches( 'sd', [ 'ticket', 'list', '--regex', '.' ], ["$flyman_id Fly Man open"] );

Modified: sd/branches/init-and-clone/t/sd-validation.t
==============================================================================
--- sd/branches/init-and-clone/t/sd-validation.t	(original)
+++ sd/branches/init-and-clone/t/sd-validation.t	Thu Nov  6 01:48:39 2008
@@ -11,6 +11,9 @@
     $ENV{'PROPHET_REPO'} = $ENV{'SD_REPO'} = File::Temp::tempdir( CLEANUP => 0 ) . '/_svb';
     warn $ENV{'PROPHET_REPO'};
 }
+
+run_script( 'sd', [ 'init']);
+
 # create from sd and push
 my ($yatta_id, $yatta_uuid) = create_ticket_ok(    '--summary', 'YATTA', '--status', 'new' );
 



More information about the Bps-public-commit mailing list