Sha256: d0d0d36a6a15c9cd80e9d27a99e0d24313cdd5e3f5c080c6ffabd3a61afead9f

Contents?: true

Size: 836 Bytes

Versions: 5

Compression:

Stored size: 836 Bytes

Contents

require_relative '../jdbc_spec_helper'

describe 'logstash-output-jdbc: derby', if: ENV['JDBC_DERBY_JAR'] do
  include_context 'rspec setup'
  include_context 'when initializing'
  include_context 'when outputting messages'

  let(:jdbc_jar_env) do
    'JDBC_DERBY_JAR'
  end

  let(:jdbc_create_table) do
    "CREATE table #{jdbc_test_table} (created_at timestamp not null, message varchar(512) not null, message_sprintf varchar(512) not null, static_int int not null, static_bit boolean not null, static_bigint bigint not null)"
  end
 
  let(:jdbc_settings) do
    {
      'driver_class' => 'org.apache.derby.jdbc.EmbeddedDriver',
      'connection_string' => 'jdbc:derby:memory:testdb;create=true',
      'driver_jar_path' => ENV[jdbc_jar_env],
      'statement' => jdbc_statement,
      'max_flush_exceptions' => 1
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
logstash-output-jdbc-5.2.1-java spec/outputs/jdbc_derby_spec.rb
logstash-output-jdbc-5.2.0-java spec/outputs/jdbc_derby_spec.rb
logstash-output-jdbc-5.1.0-java spec/outputs/jdbc_derby_spec.rb
logstash-output-jdbc-5.0.0-java spec/outputs/jdbc_derby_spec.rb
logstash-output-jdbc-0.3.2-java spec/outputs/jdbc_derby_spec.rb