Skip to content

Commit

Permalink
Added a test to ensure that the absolute path changes I just made did…
Browse files Browse the repository at this point in the history
…n't break wildcard path specifications.
  • Loading branch information
Marc Huffnagle committed Jun 24, 2012
1 parent 05c7dfd commit 07b4dd3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/logstash/inputs/test_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,12 @@
assert_equal("File paths must be absolute, relative path specified: #{relative_path}", e.message)
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

0 comments on commit 07b4dd3

Please sign in to comment.