mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
parent
935ac9285b
commit
aca58da536
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ describe LogStash::Event do
|
|||
expect(subject.sprintf("%{+%s}")).to eq("1356998400")
|
||||
end
|
||||
|
||||
it "should work if there is no fieldref in the string" do
|
||||
expect(subject.sprintf("bonjour")).to eq("bonjour")
|
||||
end
|
||||
|
||||
it "should raise error when formatting %{+%s} when @timestamp field is missing" do
|
||||
str = "hello-%{+%s}"
|
||||
subj = subject.clone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue