Title: [opsview] [9989] Test fixes related to iOS notification method
Revision
9989
Author
tvoon
Date
2012-09-06 22:29:27 +0100 (Thu, 06 Sep 2012)

Log Message

Test fixes related to iOS notification method

Modified Paths


Modified: trunk/opsview-core/filelist
===================================================================
--- trunk/opsview-core/filelist	2012-09-06 21:20:06 UTC (rev 9988)
+++ trunk/opsview-core/filelist	2012-09-06 21:29:27 UTC (rev 9989)
@@ -215,6 +215,7 @@
 f nagios:nagios 0644 /usr/local/nagios/libexec/notifications/com.opsview.notificationmethods.email.tt notifications/com.opsview.notificationmethods.email.tt
 f nagios:nagios 0755 /usr/local/nagios/libexec/notifications/notify_by_rss          notifications/notify_by_rss
 f nagios:nagios 0755 /usr/local/nagios/libexec/notifications/notify_by_googletalk   notifications/notify_by_googletalk
+f nagios:nagios 0755 /usr/local/nagios/libexec/notifications/notify_by_ios_push     notifications/notify_by_ios_push
 f nagios:nagios 0755 /usr/local/nagios/libexec/notifications/submit_xmpp_script     notifications/submit_xmpp_script
 
 # Same goes for event handlers

Modified: trunk/opsview-core/t/943notificationmethods.t
===================================================================
--- trunk/opsview-core/t/943notificationmethods.t	2012-09-06 21:20:06 UTC (rev 9988)
+++ trunk/opsview-core/t/943notificationmethods.t	2012-09-06 21:29:27 UTC (rev 9989)
@@ -15,8 +15,8 @@
 
 my $rs = $schema->resultset( "Notificationmethods" );
 
-is( $rs->count, 5, "Four notification methods..." );
-is( $rs->search( { active => 1 } )->count, 3, "...but only 3 active" );
+is( $rs->count, 6, "Six notification methods..." );
+is( $rs->search( { active => 1 } )->count, 4, "...but only 4 active" );
 
 my $unused = $rs->find( { name => "unused" } );
 is(

Modified: trunk/opsview-web/t/650-api2.t
===================================================================
--- trunk/opsview-web/t/650-api2.t	2012-09-06 21:20:06 UTC (rev 9988)
+++ trunk/opsview-web/t/650-api2.t	2012-09-06 21:29:27 UTC (rev 9989)
@@ -682,6 +682,10 @@
             ref  => "/rest/config/notificationmethod/5"
         },
         {
+            name => "Push Notifications For iOS Mobile",
+            ref  => "/rest/config/notificationmethod/6"
+        },
+        {
             name => "AQL",
             ref  => "/rest/config/notificationmethod/1"
         },
@@ -695,8 +699,8 @@
         },
     ],
     summary => {
-        rows    => "5",
-        allrows => 5,
+        rows    => "6",
+        allrows => 6,
     },
 };
 is( $ua->status, 200, "Got full list of notificationmethods" );

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

Reply via email to