Title: [opsview] [9708] Fix handling opspacks with no plugins in
Revision
9708
Author
dferguson
Date
2012-08-03 17:16:56 +0100 (Fri, 03 Aug 2012)

Log Message

Fix handling opspacks with no plugins in

Opspacks can make good use of already installed plugins so may not include any extras.  Fix the opspacks install process to continue if no plugins are included.

Modified Paths

Modified: trunk/opsview-core/t/70runtime_access.t
===================================================================
--- trunk/opsview-core/t/70runtime_access.t	2012-08-03 16:15:54 UTC (rev 9707)
+++ trunk/opsview-core/t/70runtime_access.t	2012-08-03 16:16:56 UTC (rev 9708)
@@ -24,13 +24,14 @@
 
 my $schema = Opsview::Schema->my_connect;
 
-my $admin = $schema->resultset("Contacts")->search( name => "admin" )->first;
+my $admin =
+  $schema->resultset("Contacts")->search( { name => "admin" } )->first;
 my $non_admin =
-  $schema->resultset("Contacts")->search( name => "nonadmin" )->first;
+  $schema->resultset("Contacts")->search( { name => "nonadmin" } )->first;
 my $somehosts =
-  $schema->resultset("Contacts")->search( name => "somehosts" )->first;
+  $schema->resultset("Contacts")->search( { name => "somehosts" } )->first;
 my $readonly =
-  $schema->resultset("Contacts")->search( name => "readonly" )->first;
+  $schema->resultset("Contacts")->search( { name => "readonly" } )->first;
 
 isa_ok( $admin,     "Opsview::Schema::Contacts", "admin contact found" );
 isa_ok( $non_admin, "Opsview::Schema::Contacts", "non_admin contact found" );

Modified: trunk/opsview-core/t/802status.t
===================================================================
--- trunk/opsview-core/t/802status.t	2012-08-03 16:15:54 UTC (rev 9707)
+++ trunk/opsview-core/t/802status.t	2012-08-03 16:16:56 UTC (rev 9708)
@@ -493,7 +493,7 @@
     "DBIx wizardry!"
 ) || diag explain $status;
 
-my $status = $runtime->resultset("OpsviewHostObjects")->list_service_objects(
+$status = $runtime->resultset("OpsviewHostObjects")->list_service_objects(
     {
         rows        => 7,
         servicename => "%a%"

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to