spec/inputs/jdbc_spec.rb in logstash-input-jdbc-2.0.3 vs spec/inputs/jdbc_spec.rb in logstash-input-jdbc-2.0.4

- old
+ new

@@ -33,9 +33,15 @@ it "should register without raising exception" do expect { plugin.register }.to_not raise_error plugin.stop end + it "should register with password set" do + mixin_settings['jdbc_password'] = 'pass' + expect { plugin.register }.to_not raise_error + plugin.stop + end + it "should stop without raising exception" do plugin.register expect { plugin.stop }.to_not raise_error end