Sha256: 9ac52414829cecb03ea289009c2f6960d1f3f88d93daaa76bc26999d213c015f

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

# encoding: utf-8
require_relative "../spec_helper"
require "tempfile"

describe LogStash::Outputs::GoogleCloudStorage do

  let(:javaclient) { double("google-java-client") }
  let(:javastorage) { double("google-java-client-storage") }

  subject { described_class.new(config) }
  let(:config) { {"bucket" => "", "uploader_interval_secs" => 0.1, "upload_synchronous" => true} }

  before(:each) do
    allow(LogStash::Outputs::Gcs::Client).to receive(:new).and_return(:javaclient)
    allow(javaclient).to receive(:initialize_storage).and_return(:javastorage)
  end

  it "should register without errors" do
    expect { subject.register }.to_not raise_error

    subject.close
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
logstash-output-google_cloud_storage-4.0.1-java spec/outputs/google_cloud_storage_spec.rb
logstash-output-google_cloud_storage-4.0.0-java spec/outputs/google_cloud_storage_spec.rb