mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- add test case for LOGSTASH-817
This commit is contained in:
parent
8ac413a792
commit
f2de014cfe
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue