From f2de014cfe0dbe28823c12f5124c604153a583d4 Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Thu, 3 Jan 2013 12:02:04 -0800 Subject: [PATCH] - add test case for LOGSTASH-817 --- spec/inputs/tcp.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/inputs/tcp.rb b/spec/inputs/tcp.rb index 338502acc..b43544f93 100644 --- a/spec/inputs/tcp.rb +++ b/spec/inputs/tcp.rb @@ -126,6 +126,12 @@ describe "inputs/tcp" do sequence += 1 tcp.teardown if sequence == event_count begin + insist { event["@source_host"] } != nil + insist { event["@source"] } != nil + insist { event["@timestamp"] } != nil + insist { event["@fields"] } != nil + insist { event["@type"] } != nil + insist { event["@tags"] } != nil insist { event.message } == "Hello ü Û" insist { event.message.encoding } == Encoding.find("UTF-8") rescue Exception => failure