Basic test of `update customcode`.
authorDavid E. Wheeler <david@justatheory.com>
Mon, 5 Nov 2012 18:32:41 +0000 (10:32 -0800)
committerDavid E. Wheeler <david@justatheory.com>
Mon, 5 Nov 2012 18:32:41 +0000 (10:32 -0800)
Gets customcode exception test passing again.

t/40-customcode-exception.t

index 73cb519b4349efbc1ce9f79329800d09fa71ec7b..0772056fe4239c9f06a495e2fc4b94e7d425f8cf 100644 (file)
@@ -134,10 +134,9 @@ $res = $bct->ctl('bucardo add customcode email_exception whenrun=exception src_c
 $t = q{Customcode exception handler was added for sync exabc};
 like ($res, qr{Added customcode "email_exception"}, $t);
 
-$res = $bct->ctl('update customcode email_exception status=inactive');
-diag Dumper $res;
-exit;
-
+# $res = $bct->ctl('update customcode email_exception status=inactive');
+# diag Dumper $res;
+# exit;
 
 ## Reload the sync and verify the exception handler allows the sync to continue
 $bct->ctl('bucardo reload exabc');
@@ -175,8 +174,9 @@ for my $db (qw/ C /) {
 }
 
 ## Test disabling the customcode
-$bct->ctl('update customcode email_exception status=inactive');
-
+like $bct->ctl('update customcode email_exception status=inactive'),
+    qr/\QChanged customcode email_exception status from 'active' to 'inactive'/,
+    'Change email_exception status to "inactive"';
 
 ## Test goat-level customcode