mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Add test for default csv quote_char double quote "
This commit is contained in:
parent
44a9bca63e
commit
4429f06a51
1 changed files with 14 additions and 0 deletions
|
@ -51,6 +51,20 @@ describe LogStash::Filters::CSV do
|
|||
end
|
||||
end
|
||||
|
||||
describe "default quote char" do
|
||||
config <<-CONFIG
|
||||
filter {
|
||||
csv {
|
||||
}
|
||||
}
|
||||
CONFIG
|
||||
|
||||
sample 'big,bird,"sesame, street"' do
|
||||
insist { subject["column1"] } == "big"
|
||||
insist { subject["column2"] } == "bird"
|
||||
insist { subject["column3"] } == "sesame, street"
|
||||
end
|
||||
end
|
||||
describe "null quote char" do
|
||||
config <<-CONFIG
|
||||
filter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue