Sha256: 62a84735cd2fa504dfa6f26657eb183b7f1130a25809f06e9381dc241bbb7570

Contents?: true

Size: 449 Bytes

Versions: 57

Compression:

Stored size: 449 Bytes

Contents

# encoding: utf-8
require "logstash/devutils/rspec/spec_helper"
require "logstash/inputs/s3"
require "stud/temporary"
require "fileutils"

describe LogStash::Inputs::S3::SinceDB::File do
  let(:file) { Stud::Temporary.file.path }
  subject { LogStash::Inputs::S3::SinceDB::File.new(file) }
  before do
    FileUtils.touch(file)
  end

  it "doesnt raise an exception if the file is empty" do
    expect { subject.read }.not_to raise_error
  end
end

Version data entries

57 entries across 57 versions & 10 rubygems

Version Path
logstash-integration-aws-7.2.1-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.2.0-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.8-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.7-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.6-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.5-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.4-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.3-java spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.2-java spec/inputs/sincedb_spec.rb
logstash-input-s3-r2-3.8.6 spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.1-java spec/inputs/sincedb_spec.rb
logstash-input-s3-cos-3.8.5 spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.1.0 spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.0.1 spec/inputs/sincedb_spec.rb
logstash-integration-aws-7.0.0 spec/inputs/sincedb_spec.rb
logstash-integration-aws-0.1.0.pre spec/inputs/sincedb_spec.rb
logstash-input-s3-cloudian-1.0.0 spec/inputs/sincedb_spec.rb
logstash-input-s3-3.8.4 spec/inputs/sincedb_spec.rb
logstash-input-s3-3.8.3 spec/inputs/sincedb_spec.rb
logstash-input-s3-3.8.2 spec/inputs/sincedb_spec.rb