Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / logstash   deb

Repository URL to install this package:

Version: 1.4.2-1-2c0f5a1 

/ opt / logstash / spec / config.rb

# config syntax tests
#

require "logstash/config/grammar"
require "logstash/config/config_ast"

describe LogStashConfigParser do
  it "should permit single-quoted attribute names" do
    parser = LogStashConfigParser.new
    config = parser.parse(%q(
      input {
        example {
          'foo' => 'bar'
          test => { 'bar' => 'baz' }
        }
      }
    ))

    reject { config }.nil?
  end

  it "should permit empty plugin sections" do
    parser = LogStashConfigParser.new
    config = parser.parse(%q(
      filter {
      }
    ))

    reject { config }.nil?
  end
end