mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
Added a test to ensure that the absolute path changes I just made didn't break wildcard path specifications.
This commit is contained in:
parent
05c7dfd962
commit
07b4dd3bb4
1 changed files with 8 additions and 0 deletions
|
@ -118,4 +118,12 @@ describe LogStash::Inputs::File do
|
||||||
assert_equal("File paths must be absolute, relative path specified: #{relative_path}", e.message)
|
assert_equal("File paths must be absolute, relative path specified: #{relative_path}", e.message)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "file input should not raise an exception for an absolute path containing wildcards" do
|
||||||
|
begin
|
||||||
|
LogStash::Inputs::File.new("type" => ["testing"], "path" => ["/absolute/path/*"])
|
||||||
|
rescue ArgumentError => e
|
||||||
|
flunk "An absolute path containing a wildcard should be valid"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end # testing for LogStash::Inputs::File
|
end # testing for LogStash::Inputs::File
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue