[SCM] libmessage-passing-perl Debian packaging branch, master, updated. debian/0.111-3-14-g44f6e88
Tomas Doran
bobtfish at bobtfish.net
Mon May 6 11:56:40 UTC 2013
The following commit has been merged in the master branch:
commit d986252e553a3a93ea32695205f833b52dc9543e
Author: Tomas Doran <bobtfish at bobtfish.net>
Date: Sat Mar 3 20:27:01 2012 +0000
Test an actual message going through
diff --git a/t/logstash_script.t b/t/logstash_script.t
index 6047c5a..49102e6 100644
--- a/t/logstash_script.t
+++ b/t/logstash_script.t
@@ -8,7 +8,7 @@ my $i = Log::Stash->new(
input => 'STDIN',
input_options => '{"foo":"bar"}',
filter_options => '{"baz":"quux"}',
- output => 'STDOUT',
+ output => 'Test',
output_options => '{"x":"m"}',
);
@@ -16,5 +16,9 @@ is_deeply {$i->input_options}, {"foo" => "bar"};
is_deeply {$i->filter_options}, {"baz" => "quux"};
is_deeply {$i->output_options}, {"x" => "m"};
+$i->filter_instance->consume({ foo => "bar" });
+
+is_deeply [$i->output_instance->messages], [{ foo => "bar" }];
+
done_testing;
--
libmessage-passing-perl Debian packaging
More information about the Pkg-perl-cvs-commits
mailing list