spec/inputs/jdbc_spec.rb in logstash-input-jdbc-4.3.9 vs spec/inputs/jdbc_spec.rb in logstash-input-jdbc-4.3.11

- old
+ new

@@ -1,11 +1,11 @@ # encoding: utf-8 require "logstash/devutils/rspec/spec_helper" require "logstash/inputs/jdbc" require "jdbc/derby" -require "jdbc/mysql" -Jdbc::MySQL.load_driver +require 'jdbc/postgres' +Jdbc::Postgres.load_driver require "sequel" require "sequel/adapters/jdbc" require "timecop" require "stud/temporary" require "time" @@ -97,11 +97,11 @@ end context "when connecting to a non-existent server", :no_connection => true do let(:mixin_settings) do super.merge( - "jdbc_driver_class" => "com.mysql.jdbc.Driver", - "jdbc_connection_string" => "jdbc:mysql://localhost:99999/somedb" + "jdbc_driver_class" => "org.postgresql.Driver", + "jdbc_connection_string" => "jdbc:postgresql://localhost:65000/somedb" ) end let(:settings) { super.merge("statement" => "SELECT 1 as col1 FROM test_table", "jdbc_user" => "foo", "jdbc_password" => "bar") } it "should not register correctly" do