Sha256: ef85a097ac1df58dbe4378f8c09a1a8c7a74e6bb75f212a029f9ad2e7995ea2e

Contents?: true

Size: 782 Bytes

Versions: 62

Compression:

Stored size: 782 Bytes

Contents

require "spec_helper"
require "tmpdir"
require "logstash/bootstrap_check/persisted_queue_config"

describe LogStash::BootstrapCheck::PersistedQueueConfig do

  context("when persisted queues are enabled") do
    let(:settings) do
      settings = LogStash::SETTINGS.dup
      settings.set_value("queue.type", "persisted")
      settings.set_value("queue.page_capacity", 1024)
      settings.set_value("path.queue", ::File.join(Dir.tmpdir, "some/path"))
      settings
    end

    context("and 'queue.max_bytes' is set to a value less than the value of 'queue.page_capacity'") do
      it "should throw" do
        settings.set_value("queue.max_bytes", 512)
        expect { LogStash::BootstrapCheck::PersistedQueueConfig.check(settings) }.to raise_error
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
logstash-core-6.8.23-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.22-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.21-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.20-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.19-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.18-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.17-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.16-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.15-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.14-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.13-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.12-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.11-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.10-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.9-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.8-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.7-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-7.5.2-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-7.5.1-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb
logstash-core-6.8.6-java spec/logstash/bootstrap_check/persisted_queue_config_spec.rb