[Rt-commit] rtir branch, 2.9-trunk, updated. b572ec262359e5c1a5026081fdec560140feb346

Ruslan Zakirov ruz at bestpractical.com
Tue Apr 5 08:30:56 EDT 2011


The branch, 2.9-trunk has been updated
       via  b572ec262359e5c1a5026081fdec560140feb346 (commit)
       via  56be86955c0f1924a6f1e5f85ebdda5de2115458 (commit)
       via  aa88f321bd37931e8366b3887daea4c408fd52e4 (commit)
       via  48c4028ccc90a650972a8bd1f21080bdbbb58383 (commit)
       via  a671e6946d1b26cfbf5164502b4716324ae96f96 (commit)
       via  7e7fc17ffdb6c26d0e67b4cd48407f13113b68d7 (commit)
       via  ed4d1e585d18d1a55dc1d5f65329c77993e0cddf (commit)
      from  cfc81a0d908a9edcf0d7a701c9e3223b92af75ba (commit)

Summary of changes:
 etc/RTIR_Config.pm                                 |    2 +-
 lib/RT/IR/Test/Web.pm                              |   14 ++++++++++----
 t/019-watchers-on-create.t                         |    2 +-
 t/020-incident-and-investigation.t                 |    2 +-
 .../status-editor-regression.t}                    |    2 +-
 t/{021-gnupg-on-create.t => gnupg/on-create.t}     |    2 +-
 t/{023-gnupg-on-incident.t => gnupg/on-incident.t} |    2 +-
 t/{022-gnupg-on-update.t => gnupg/on-update.t}     |    2 +-
 8 files changed, 17 insertions(+), 11 deletions(-)
 rename t/{019-webui-block-fields.t => block/status-editor-regression.t} (93%)
 rename t/{021-gnupg-on-create.t => gnupg/on-create.t} (99%)
 rename t/{023-gnupg-on-incident.t => gnupg/on-incident.t} (99%)
 rename t/{022-gnupg-on-update.t => gnupg/on-update.t} (99%)

- Log -----------------------------------------------------------------
commit ed4d1e585d18d1a55dc1d5f65329c77993e0cddf
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Apr 5 15:20:03 2011 +0400

    localize depth to report errors in a test file

diff --git a/lib/RT/IR/Test/Web.pm b/lib/RT/IR/Test/Web.pm
index 0146a85..8d2afcf 100644
--- a/lib/RT/IR/Test/Web.pm
+++ b/lib/RT/IR/Test/Web.pm
@@ -9,21 +9,26 @@ require RT::IR::Test;
 require Test::More;
 
 sub create_incident {
+    local $Test::Builder::Level = $Test::Builder::Level + 1;
     return (shift)->create_rtir_ticket_ok( 'Incidents', @_ );
 }
 sub create_ir {
+    local $Test::Builder::Level = $Test::Builder::Level + 1;
     return (shift)->create_rtir_ticket_ok( 'Incident Reports', @_ );
 }
 sub create_investigation {
+    local $Test::Builder::Level = $Test::Builder::Level + 1;
     return (shift)->create_rtir_ticket_ok( 'Investigations', @_ );
 }
 sub create_block {
+    local $Test::Builder::Level = $Test::Builder::Level + 1;
     return (shift)->create_rtir_ticket_ok( 'Blocks', @_ );
 }
 
 sub goto_create_rtir_ticket {
     my $self = shift;
     my $queue = shift;
+    local $Test::Builder::Level = $Test::Builder::Level + 1;
 
     my $equeue = $queue;
     $equeue =~ s/ /%20/;
@@ -42,6 +47,8 @@ sub create_rtir_ticket_ok {
     my $self = shift;
     my $queue = shift;
 
+    local $Test::Builder::Level = $Test::Builder::Level + 1;
+
     my $id = $self->create_rtir_ticket( $queue, @_ );
     Test::More::ok( $id, "Created ticket #$id in queue '$queue' successfully." );
     return $id;

commit 7e7fc17ffdb6c26d0e67b4cd48407f13113b68d7
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Apr 5 15:20:46 2011 +0400

    use goto_create_page instead of custom code

diff --git a/lib/RT/IR/Test/Web.pm b/lib/RT/IR/Test/Web.pm
index 8d2afcf..6744fe7 100644
--- a/lib/RT/IR/Test/Web.pm
+++ b/lib/RT/IR/Test/Web.pm
@@ -260,17 +260,16 @@ sub create_incident_and_investigation {
     my $cfs = shift || {};
     my $ir_id = shift;
 
-    $ir_id ? $self->display_ticket( $ir_id)
-        : $self->get_ok("/RTIR/index.html", "Loaded home page");
+    local $Test::Builder::Level = $Test::Builder::Level + 1;
 
     if($ir_id) {
+        $self->display_ticket( $ir_id );
         # Select the "New" link from the Display page
         $self->follow_link_ok({text => "[New]"}, "Followed 'New (Incident)' link");
     }
     else 
     {
-        $self->follow_link_ok({text => "Incidents"}, "Followed 'Incidents' link");
-        $self->follow_link_ok({text => "New Incident", n => '1'}, "Followed 'New Incident' link");
+        $self->goto_create_rtir_ticket('Incidents');
     }
 
     # Fill out forms

commit a671e6946d1b26cfbf5164502b4716324ae96f96
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Apr 5 15:21:22 2011 +0400

    type in lifecycle config

diff --git a/etc/RTIR_Config.pm b/etc/RTIR_Config.pm
index 763c6fc..6cf0b18 100644
--- a/etc/RTIR_Config.pm
+++ b/etc/RTIR_Config.pm
@@ -360,7 +360,7 @@ Set(
 
         transitions => {
             # from   => [ to list ],
-            ''       => [qw(new resolved)],
+            ''       => [qw(open resolved)],
             open     => [qw(resolved)],
             resolved => [qw(open)],
         },

commit 48c4028ccc90a650972a8bd1f21080bdbbb58383
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Apr 5 15:21:50 2011 +0400

    +1 test file, adjust number of tests

diff --git a/t/019-watchers-on-create.t b/t/019-watchers-on-create.t
index 880daf7..034a130 100644
--- a/t/019-watchers-on-create.t
+++ b/t/019-watchers-on-create.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RT::IR::Test tests => 57;
+use RT::IR::Test tests => 54;
 
 RT::Test->started_ok;
 my $agent = default_agent();

commit aa88f321bd37931e8366b3887daea4c408fd52e4
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Apr 5 15:24:37 2011 +0400

    +1 test file, move and adjust number of tests

diff --git a/t/019-webui-block-fields.t b/t/block/status-editor-regression.t
similarity index 93%
rename from t/019-webui-block-fields.t
rename to t/block/status-editor-regression.t
index 9d975dc..95e0ce8 100644
--- a/t/019-webui-block-fields.t
+++ b/t/block/status-editor-regression.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RT::IR::Test tests => 21;
+use RT::IR::Test tests => 18;
 
 RT::Test->started_ok;
 my $agent = default_agent();

commit 56be86955c0f1924a6f1e5f85ebdda5de2115458
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Apr 5 15:30:15 2011 +0400

    adjust number of tests

diff --git a/t/020-incident-and-investigation.t b/t/020-incident-and-investigation.t
index e09446e..4e2f2da 100644
--- a/t/020-incident-and-investigation.t
+++ b/t/020-incident-and-investigation.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RT::IR::Test tests => 29;
+use RT::IR::Test tests => 27;
 
 RT::Test->started_ok;
 my $agent = default_agent();
diff --git a/t/021-gnupg-on-create.t b/t/021-gnupg-on-create.t
index 932aa32..876b351 100644
--- a/t/021-gnupg-on-create.t
+++ b/t/021-gnupg-on-create.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RT::IR::Test tests => 62;
+use RT::IR::Test tests => 61;
 
 use File::Temp qw(tempdir);
 
diff --git a/t/022-gnupg-on-update.t b/t/022-gnupg-on-update.t
index cea66ed..8caee28 100644
--- a/t/022-gnupg-on-update.t
+++ b/t/022-gnupg-on-update.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RT::IR::Test tests => 69;
+use RT::IR::Test tests => 68;
 use File::Temp qw(tempdir);
 
 RT->Config->Set( 'GnuPG',
diff --git a/t/023-gnupg-on-incident.t b/t/023-gnupg-on-incident.t
index eb542d7..d00d4ba 100644
--- a/t/023-gnupg-on-incident.t
+++ b/t/023-gnupg-on-incident.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use RT::IR::Test tests => 43;
+use RT::IR::Test tests => 40;
 use File::Temp qw(tempdir);
 
 my @rights_backup = RT::Test->store_rights;

commit b572ec262359e5c1a5026081fdec560140feb346
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Apr 5 15:31:32 2011 +0400

    rename some tests

diff --git a/t/021-gnupg-on-create.t b/t/gnupg/on-create.t
similarity index 100%
rename from t/021-gnupg-on-create.t
rename to t/gnupg/on-create.t
diff --git a/t/023-gnupg-on-incident.t b/t/gnupg/on-incident.t
similarity index 100%
rename from t/023-gnupg-on-incident.t
rename to t/gnupg/on-incident.t
diff --git a/t/022-gnupg-on-update.t b/t/gnupg/on-update.t
similarity index 100%
rename from t/022-gnupg-on-update.t
rename to t/gnupg/on-update.t

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


More information about the Rt-commit mailing list