mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- fix translate filter specs
This commit is contained in:
parent
2ea1041ae6
commit
c23ddcabb7
1 changed files with 4 additions and 10 deletions
|
@ -20,9 +20,7 @@ describe LogStash::Filters::Translate do
|
|||
}
|
||||
CONFIG
|
||||
|
||||
sample "@fields" => {
|
||||
"status" => 200
|
||||
} do
|
||||
sample("status" => 200) do
|
||||
insist { subject["translation"] } == "OK"
|
||||
end
|
||||
end
|
||||
|
@ -43,9 +41,7 @@ describe LogStash::Filters::Translate do
|
|||
}
|
||||
CONFIG
|
||||
|
||||
sample "@fields" => {
|
||||
"status" => "200 & 500"
|
||||
} do
|
||||
sample("status" => "200 & 500") do
|
||||
insist { subject["translation"] } == "OK & Server Error"
|
||||
end
|
||||
end
|
||||
|
@ -66,9 +62,7 @@ describe LogStash::Filters::Translate do
|
|||
}
|
||||
CONFIG
|
||||
|
||||
sample "@fields" => {
|
||||
"status" => "200"
|
||||
} do
|
||||
sample("status" => "200") do
|
||||
insist { subject["translation"] } == "OK"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue