Sha256: e8d2c16122d6b1814b2465cd367ab0e3048caf2aca4fd809763b05a5fec3a50a

Contents?: true

Size: 436 Bytes

Versions: 14

Compression:

Stored size: 436 Bytes

Contents

require 'logstash/devutils/rspec/spec_helper'
require 'logstash/inputs/friendly_durations'

describe FileWatch::Settings do

  context "when create from options" do
    it "doesn't convert sincedb_clean_after to seconds" do
      res = FileWatch::Settings.from_options({:sincedb_clean_after => LogStash::Inputs::FriendlyDurations.call(1, "days").value})

      expect(res.sincedb_expiry_duration).to eq 1 * 24 * 3600
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
logstash-input-file-4.4.6 spec/filewatch/settings_spec.rb
logstash-input-file-4.4.5 spec/filewatch/settings_spec.rb
logstash-input-file-4.4.4 spec/filewatch/settings_spec.rb
logstash-input-file-4.4.3 spec/filewatch/settings_spec.rb
logstash-input-file-4.4.2 spec/filewatch/settings_spec.rb
logstash-input-file-4.4.1 spec/filewatch/settings_spec.rb
logstash-input-file-4.4.0 spec/filewatch/settings_spec.rb
logstash-input-file-4.3.1 spec/filewatch/settings_spec.rb
logstash-input-file-4.3.0 spec/filewatch/settings_spec.rb
logstash-input-file-4.2.4 spec/filewatch/settings_spec.rb
logstash-input-file-4.2.3 spec/filewatch/settings_spec.rb
logstash-input-file-4.2.2 spec/filewatch/settings_spec.rb
logstash-input-file-4.2.1 spec/filewatch/settings_spec.rb
logstash-input-file-4.2.0 spec/filewatch/settings_spec.rb