spec/inputs/jdbc_spec.rb in logstash-input-jdbc-1.0.1 vs spec/inputs/jdbc_spec.rb in logstash-input-jdbc-1.0.2
- old
+ new
@@ -34,12 +34,13 @@
it "should register without raising exception" do
expect { plugin.register }.to_not raise_error
plugin.teardown
end
- it "should teardown without raising exception" do
- plugin.register
- expect { plugin.teardown }.to_not raise_error
+ it "should register with password set" do
+ mixin_settings['jdbc_password'] = 'pass'
+ expect { plugin.register }.to_not raise_error
+ plugin.stop
end
end
context "when neither statement and statement_filepath arguments are passed" do
it "should fail to register" do