Sha256: b124bd346ff96c52783d04f307acc98fd5ab75d767db1282888a87dc80361cdd

Contents?: true

Size: 711 Bytes

Versions: 9

Compression:

Stored size: 711 Bytes

Contents

require_relative '../jdbc_spec_helper'

describe 'logstash-output-jdbc: sqlite', if: ENV['JDBC_SQLITE_JAR'] do
  JDBC_SQLITE_FILE = '/tmp/logstash_output_jdbc_test.db'.freeze

  before(:context) do
    File.delete(JDBC_SQLITE_FILE) if File.exist? JDBC_SQLITE_FILE
  end

  include_context 'rspec setup'
  include_context 'when initializing'
  include_context 'when outputting messages'

  let(:jdbc_jar_env) do
    'JDBC_SQLITE_JAR'
  end

  let(:jdbc_settings) do
    {
      'driver_class' => 'org.sqlite.JDBC',
      'connection_string' => "jdbc:sqlite:#{JDBC_SQLITE_FILE}",
      'driver_jar_path' => ENV[jdbc_jar_env],
      'statement' => jdbc_statement,
      'max_flush_exceptions' => 1
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logstash-output-jdbc-5.3.0-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-5.2.1-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-5.2.0-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-5.1.0-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-5.0.0-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-0.3.2-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-0.3.1-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-0.3.0-java spec/outputs/jdbc_sqlite_spec.rb
logstash-output-jdbc-0.3.0.pre-java spec/outputs/jdbc_sqlite_spec.rb