Sha256: 6eff53c62a3f131c454dbd14e9d11a6a3f9483664aef88f4489cd82eb7ff10d9

Contents?: true

Size: 597 Bytes

Versions: 11

Compression:

Stored size: 597 Bytes

Contents

# encoding: utf-8

require 'logstash/outputs/bigquery/streamclient'

describe LogStash::Outputs::BigQuery::StreamingClient do

  # This test is mostly to make sure the Java types, signatures and classes
  # haven't changed being that JRuby is very relaxed.
  describe '#initialize' do
    let(:logger) { spy('logger') }

    it 'does not throw an error when initializing' do
      key_file = ::File.join('spec', 'fixtures', 'credentials.json')
      key_file = ::File.absolute_path(key_file)
      LogStash::Outputs::BigQuery::StreamingClient.new(key_file, 'my-project', logger)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
logstash-output-google_bigquery-4.6.0-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.5.0-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.4.0-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.3.0-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.2.0-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.1.5-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.1.4-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.1.3-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.1.2-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.1.1-java spec/outputs/bigquery/streamclient_spec.rb
logstash-output-google_bigquery-4.1.0-java spec/outputs/bigquery/streamclient_spec.rb