Failling test on travis
ph opened this issue · 0 comments
ph commented
https://travis-ci.org/logstash-plugins/logstash-filter-geoip/builds/121787156
Failures:
1) LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"1.1.1.1"}" when processed
Failure/Error: insist { subject["geoip"]["asn"].encoding } == Encoding::UTF_8
LogStash::ConfigurationError:
Something is wrong with your configuration.
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:143:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators.rb:13:in `=='
# ./spec/filters/geoip_spec.rb:143:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
2) LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"189.2.0.0"}" when processed
Failure/Error: insist { subject["geoip"]["asn"].encoding } == Encoding::UTF_8
LogStash::ConfigurationError:
Something is wrong with your configuration.
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:149:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators.rb:13:in `=='
# ./spec/filters/geoip_spec.rb:149:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
3) LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"187.2.0.0"}" when processed
Failure/Error: insist { subject["geoip"]["asn"].encoding } == Encoding::UTF_8
LogStash::ConfigurationError:
Something is wrong with your configuration.
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:146:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators.rb:13:in `=='
# ./spec/filters/geoip_spec.rb:146:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
4) LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"161.24.0.0"}" when processed
Failure/Error: insist { subject["geoip"]["asn"].encoding } == Encoding::UTF_8
LogStash::ConfigurationError:
Something is wrong with your configuration.
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:152:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators.rb:13:in `=='
# ./spec/filters/geoip_spec.rb:152:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
5) LogStash::Filters::GeoIP an invalid IP should not raise an error "{"ip":"-"}" when processed
Failure/Error: expect{ subject }.to_not raise_error
expected no Exception, got #<LogStash::ConfigurationError: Something is wrong with your configuration.> with backtrace:
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:198:in `(root)'
# ./spec/filters/geoip_spec.rb:198:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
# ./spec/filters/geoip_spec.rb:198:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
6) LogStash::Filters::GeoIP an invalid IP should not raise an error "{"ip":"~"}" when processed
Failure/Error: expect{ subject }.to_not raise_error
expected no Exception, got #<LogStash::ConfigurationError: Something is wrong with your configuration.> with backtrace:
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:202:in `(root)'
# ./spec/filters/geoip_spec.rb:202:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
# ./spec/filters/geoip_spec.rb:202:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
7) LogStash::Filters::GeoIP an invalid IP should return the correct source field in the logging message "{"ip":"-"}" when processed
Failure/Error: subject
#<Cabin::Channel:0x5ff1c043> received :error with unexpected arguments
expected: (anything, include {:field => "ip"})
got: ("Invalid setting for geoip filter plugin:\n\n filter {\n geoip {\n # This setting must be a path\n # File does not exist or cannot be opened \n database => \"\"\n ...\n }\n }")
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:374:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:363:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:362:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:277:in `validate'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:133:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:241:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
8) LogStash::Filters::GeoIP an invalid IP filter method outcomes when the bad IP is N/A should set the target field to an empty hash
Failure/Error: let(:plugin) { LogStash::Filters::GeoIP.new("source" => "message", "add_tag" => "done", "database" => ASNDB) }
TypeError:
can't convert nil into String
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:532:in `validate_value'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:368:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:363:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:362:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:277:in `validate'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:133:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./spec/filters/geoip_spec.rb:207:in `plugin'
# ./spec/filters/geoip_spec.rb:211:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
9) LogStash::Filters::GeoIP an invalid IP filter method outcomes when the bad IP is N/A should not have added any tags
Failure/Error: let(:plugin) { LogStash::Filters::GeoIP.new("source" => "message", "add_tag" => "done", "database" => ASNDB) }
TypeError:
can't convert nil into String
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:532:in `validate_value'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:368:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:363:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:362:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:277:in `validate'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:133:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./spec/filters/geoip_spec.rb:207:in `plugin'
# ./spec/filters/geoip_spec.rb:211:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
10) LogStash::Filters::GeoIP an invalid IP filter method outcomes when the bad IP is two ip comma separated should set the target field to an empty hash
Failure/Error: let(:plugin) { LogStash::Filters::GeoIP.new("source" => "message", "add_tag" => "done", "database" => ASNDB) }
TypeError:
can't convert nil into String
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:532:in `validate_value'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:368:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:363:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:362:in `validate_check_parameter_values'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:277:in `validate'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:133:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./spec/filters/geoip_spec.rb:207:in `plugin'
# ./spec/filters/geoip_spec.rb:211:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
11) LogStash::Filters::GeoIP ASN db "{"ip":"1.1.1.1"}" when processed
Failure/Error: insist { subject["geoip"]["asn"] } == "Google Inc."
LogStash::ConfigurationError:
Something is wrong with your configuration.
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:20:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/comparators.rb:13:in `=='
# ./spec/filters/geoip_spec.rb:20:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
12) LogStash::Filters::GeoIP ASN db "{"ip":"2a02:8071:aa1:c700:7984:22fc:c8e6:f6ff"}" when processed
Failure/Error: reject { subject }.include?("geoip")
LogStash::ConfigurationError:
Something is wrong with your configuration.
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb:134:in `config_init'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/filters/base.rb:123:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:417:in `plugin'
# (eval):7:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb:70:in `initialize'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:34:in `pipeline'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:26:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/enumerables.rb:11:in `include?'
# ./spec/filters/geoip_spec.rb:26:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
13) LogStash::Filters::GeoIP correct encodings with default db "{"ip":"1.1.1.1"}" when processed
Failure/Error: next unless subject["geoip"][f]
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:112:in `(root)'
# ./spec/filters/geoip_spec.rb:111:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
14) LogStash::Filters::GeoIP correct encodings with default db "{"ip":"189.2.0.0"}" when processed
Failure/Error: next unless subject["geoip"][f]
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:122:in `(root)'
# ./spec/filters/geoip_spec.rb:121:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
15) LogStash::Filters::GeoIP location field when latitude field is excluded behaves like an event with a [geoip][location] field should have a location field
Failure/Error: plugin.register
TypeError:
can't convert nil into String
Shared Example Group: "an event with a [geoip][location] field" called from ./spec/filters/geoip_spec.rb:173
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./spec/filters/geoip_spec.rb:162:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
16) LogStash::Filters::GeoIP location field when both latitude and longitude field are excluded behaves like an event with a [geoip][location] field should have a location field
Failure/Error: plugin.register
TypeError:
can't convert nil into String
Shared Example Group: "an event with a [geoip][location] field" called from ./spec/filters/geoip_spec.rb:183
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./spec/filters/geoip_spec.rb:162:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
17) LogStash::Filters::GeoIP location field when longitude field is excluded behaves like an event with a [geoip][location] field should have a location field
Failure/Error: plugin.register
TypeError:
can't convert nil into String
Shared Example Group: "an event with a [geoip][location] field" called from ./spec/filters/geoip_spec.rb:178
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./spec/filters/geoip_spec.rb:162:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
18) LogStash::Filters::GeoIP normal operations when specifying the target "{"ip":"8.8.8.8"}" when processed
Failure/Error: expect(subject).to include("src_ip")
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:73:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
19) LogStash::Filters::GeoIP normal operations when specifying the target "{"ip":"127.0.0.1"}" when processed
Failure/Error: expect(subject).not_to include("src_ip")
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:86:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
20) LogStash::Filters::GeoIP normal operations when specifying add_tag "{"ip":"8.8.8.8"}" when processed
Failure/Error: expect(subject["tags"]).to include("done")
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:92:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
21) LogStash::Filters::GeoIP re-initializing thread current DB should initialize the DB on lookup, regardless of thread state
Failure/Error: plugin.register
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./spec/filters/geoip_spec.rb:292:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
22) LogStash::Filters::GeoIP defaults "{"ip":"8.8.8.8"}" when processed
Failure/Error: insist { subject }.include?("geoip")
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:41:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/enumerables.rb:11:in `include?'
# ./spec/filters/geoip_spec.rb:41:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
23) LogStash::Filters::GeoIP defaults "{"ip":"127.0.0.1"}" when processed
Failure/Error: reject { subject }.include?("geoip")
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:45:in `results'
# ./vendor/bundle/jruby/1.9/gems/logstash-devutils-0.0.19-java/lib/logstash/devutils/rspec/logstash_helpers.rb:58:in `subject'
# ./spec/filters/geoip_spec.rb:54:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist.rb:47:in `value'
# ./vendor/bundle/jruby/1.9/gems/insist-1.0.0/lib/insist/enumerables.rb:11:in `include?'
# ./spec/filters/geoip_spec.rb:54:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
24) LogStash::Filters::GeoIP returned object identities should dup the objects
Failure/Error: plugin.register
TypeError:
can't convert nil into String
# ./lib/logstash/filters/geoip.rb:93:in `register'
# ./spec/filters/geoip_spec.rb:271:in `(root)'
# ./vendor/bundle/jruby/1.9/gems/rspec-wait-0.0.8/lib/rspec/wait.rb:46:in `(root)'
Finished in 0.817 seconds (files took 1.91 seconds to load)
25 examples, 24 failures
Failed examples:
rspec ./spec/filters/geoip_spec.rb:142 # LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"1.1.1.1"}" when processed
rspec ./spec/filters/geoip_spec.rb:148 # LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"189.2.0.0"}" when processed
rspec ./spec/filters/geoip_spec.rb:145 # LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"187.2.0.0"}" when processed
rspec ./spec/filters/geoip_spec.rb:151 # LogStash::Filters::GeoIP correct encodings with ASN db "{"ip":"161.24.0.0"}" when processed
rspec ./spec/filters/geoip_spec.rb:197 # LogStash::Filters::GeoIP an invalid IP should not raise an error "{"ip":"-"}" when processed
rspec ./spec/filters/geoip_spec.rb:201 # LogStash::Filters::GeoIP an invalid IP should not raise an error "{"ip":"~"}" when processed
rspec ./spec/filters/geoip_spec.rb:239 # LogStash::Filters::GeoIP an invalid IP should return the correct source field in the logging message "{"ip":"-"}" when processed
rspec ./spec/filters/geoip_spec.rb:219 # LogStash::Filters::GeoIP an invalid IP filter method outcomes when the bad IP is N/A should set the target field to an empty hash
rspec ./spec/filters/geoip_spec.rb:223 # LogStash::Filters::GeoIP an invalid IP filter method outcomes when the bad IP is N/A should not have added any tags
rspec ./spec/filters/geoip_spec.rb:232 # LogStash::Filters::GeoIP an invalid IP filter method outcomes when the bad IP is two ip comma separated should set the target field to an empty hash
rspec ./spec/filters/geoip_spec.rb:19 # LogStash::Filters::GeoIP ASN db "{"ip":"1.1.1.1"}" when processed
rspec ./spec/filters/geoip_spec.rb:25 # LogStash::Filters::GeoIP ASN db "{"ip":"2a02:8071:aa1:c700:7984:22fc:c8e6:f6ff"}" when processed
rspec ./spec/filters/geoip_spec.rb:109 # LogStash::Filters::GeoIP correct encodings with default db "{"ip":"1.1.1.1"}" when processed
rspec ./spec/filters/geoip_spec.rb:119 # LogStash::Filters::GeoIP correct encodings with default db "{"ip":"189.2.0.0"}" when processed
rspec ./spec/filters/geoip_spec.rb:166 # LogStash::Filters::GeoIP location field when latitude field is excluded behaves like an event with a [geoip][location] field should have a location field
rspec ./spec/filters/geoip_spec.rb:166 # LogStash::Filters::GeoIP location field when both latitude and longitude field are excluded behaves like an event with a [geoip][location] field should have a location field
rspec ./spec/filters/geoip_spec.rb:166 # LogStash::Filters::GeoIP location field when longitude field is excluded behaves like an event with a [geoip][location] field should have a location field
rspec ./spec/filters/geoip_spec.rb:72 # LogStash::Filters::GeoIP normal operations when specifying the target "{"ip":"8.8.8.8"}" when processed
rspec ./spec/filters/geoip_spec.rb:84 # LogStash::Filters::GeoIP normal operations when specifying the target "{"ip":"127.0.0.1"}" when processed
rspec ./spec/filters/geoip_spec.rb:91 # LogStash::Filters::GeoIP normal operations when specifying add_tag "{"ip":"8.8.8.8"}" when processed
rspec ./spec/filters/geoip_spec.rb:295 # LogStash::Filters::GeoIP re-initializing thread current DB should initialize the DB on lookup, regardless of thread state
rspec ./spec/filters/geoip_spec.rb:40 # LogStash::Filters::GeoIP defaults "{"ip":"8.8.8.8"}" when processed
rspec ./spec/filters/geoip_spec.rb:52 # LogStash::Filters::GeoIP defaults "{"ip":"127.0.0.1"}" when processed
rspec ./spec/filters/geoip_spec.rb:274 # LogStash::Filters::GeoIP returned object identities should dup the objects
Randomized with seed 39399
travis_time:end:12f57b08:start=1460144825155326385,finish=1460144833218561802,duration=8063235417
�[0K
�[31;1mThe command "bundle exec rspec spec" exited with 1.�[0m
travis_fold:start:cache.2
�[0Kstore build cache
$ bundle clean
Resolving dependencies...........
travis_time:start:0204b9eb
�[0K
travis_time:end:0204b9eb:start=1460144836320788531,finish=1460144836324151191,duration=3362660
�[0Ktravis_time:start:0a611b2d
�[0K�[32;1mchanges detected, packing new archive�[0m
�[32;1muploading archive�[0m
travis_time:end:0a611b2d:start=1460144836327891230,finish=1460144838118791387,duration=1790900157
�[0Ktravis_fold:end:cache.2
�[0K
Done. Your build exited with 1.