[Bps-public-commit] SD branch, master, updated. 8686622a6d6bcd6079a3c16684d42424c693bb73

jesse jesse at bestpractical.com
Mon Aug 10 18:05:14 EDT 2009


The branch, master has been updated
       via  8686622a6d6bcd6079a3c16684d42424c693bb73 (commit)
      from  fd7aeed7984c928f06d1c9e6ab386bf347f03779 (commit)

Summary of changes:
 t/sd-hm/attachments.t           |    2 +-
 t/sd-hm/comments1.t             |    4 ++--
 t/sd-hm/push-reporter-not-pro.t |    2 +-
 t/sd-hm/push-reporter-pro.t     |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit 8686622a6d6bcd6079a3c16684d42424c693bb73
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Aug 10 23:04:39 2009 +0100

    test fixes: now that we check replica uuids on push, we need force when we init and push
    without previously pulling

diff --git a/t/sd-hm/attachments.t b/t/sd-hm/attachments.t
index 162d91d..92ef95b 100644
--- a/t/sd-hm/attachments.t
+++ b/t/sd-hm/attachments.t
@@ -54,7 +54,7 @@ my ($yatta_id, $yatta_uuid) =  create_ticket_ok( '--summary', 'YATTA', '--status
     );
     ok($attachment_id, " $attachment_id = $attachment_uuid");
 
-    my ( $ret, $out, $err ) = run_script( 'sd', ['push', '--to', $sd_hm_url] );
+    my ( $ret, $out, $err ) = run_script( 'sd', ['push', '--to', $sd_hm_url, '--force'] );
     diag $ret;
     diag $out;
     diag $err;
diff --git a/t/sd-hm/comments1.t b/t/sd-hm/comments1.t
index 26b0e7f..88ac8bf 100644
--- a/t/sd-hm/comments1.t
+++ b/t/sd-hm/comments1.t
@@ -40,9 +40,9 @@ run_script('sd', [qw(init)]);
 
 my ($yatta_id, $yatta_uuid) = create_ticket_ok( qw(--summary YATTA --status new) );
 {
-    my ( $ret, $out, $err ) = run_script( 'sd', [ 'push','--to', $sd_hm_url ] );
+    my ( $ret, $out, $err ) = run_script( 'sd', [ 'push','--to', $sd_hm_url, '--force'] );
 
-    my $task = BTDT::Model::Task->new( current_user => $GOODUSER );
+	my $task = BTDT::Model::Task->new( current_user => $GOODUSER );
     ok( $task->load_by_cols( summary => 'YATTA' ), "loaded a task" );
     is( $task->owner->id, $GOODUSER->id, 'correct owner' );
 }
diff --git a/t/sd-hm/push-reporter-not-pro.t b/t/sd-hm/push-reporter-not-pro.t
index 456a653..e6d0c65 100644
--- a/t/sd-hm/push-reporter-not-pro.t
+++ b/t/sd-hm/push-reporter-not-pro.t
@@ -42,7 +42,7 @@ diag("non pro have no right to set requestor");
     flush_sd();
     my ($luid, $uuid) = create_ticket_ok(qw(--summary YATTA --status new --reporter test at localhost));
 
-    my ($ret, $out, $err) = run_script( 'sd', ['push', '--to', $sd_hm_url] );
+    my ($ret, $out, $err) = run_script( 'sd', ['push', '--to', $sd_hm_url, '--force'] );
     diag $out;
     diag $err;
 
diff --git a/t/sd-hm/push-reporter-pro.t b/t/sd-hm/push-reporter-pro.t
index 00f1b1d..aeca3c0 100644
--- a/t/sd-hm/push-reporter-pro.t
+++ b/t/sd-hm/push-reporter-pro.t
@@ -43,7 +43,7 @@ diag($sd_hm_url);
 {
     flush_sd();
     my ($luid, $uuid) = create_ticket_ok(qw(--summary YATTA --status new --reporter test at localhost));
-    my ($ret, $out, $err) = run_script( 'sd', ['push', '--to', $sd_hm_url] );
+    my ($ret, $out, $err) = run_script( 'sd', ['push', '--to', $sd_hm_url, '--force'] );
     my $task = load_new_hm_task();
     is $task->requestor->email, 'onlooker at example.com', 'correct email';
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list