Sha256: 32e801c1cc0dfde7f1d054e2132473e030ac2563be0f13cd1a56bd3a8d164c2e

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

# encoding: utf-8

require 'logstash/devutils/rspec/spec_helper'
require 'logstash/inputs/google_cloud_storage'
require 'logstash/inputs/cloud_storage/client'

describe LogStash::Inputs::CloudStorage::Client 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')
      LogStash::Inputs::CloudStorage::Client.new('my-bucket', key_file, logger)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
logstash-input-google_cloud_storage-0.15.0-java spec/inputs/cloud_storage/client_spec.rb
logstash-input-google_cloud_storage-0.14.0-java spec/inputs/cloud_storage/client_spec.rb
logstash-input-google_cloud_storage-0.13.0-java spec/inputs/cloud_storage/client_spec.rb
logstash-input-google_cloud_storage-0.12.0-java spec/inputs/cloud_storage/client_spec.rb
logstash-input-google_cloud_storage-0.11.1-java spec/inputs/cloud_storage/client_spec.rb
logstash-input-google_cloud_storage-0.10.0-java spec/inputs/cloud_storage/client_spec.rb