Sha256: dd98e368e8faab28da58e7220b622128a398e5402e8023c0323393980d1a9183

Contents?: true

Size: 1.13 KB

Versions: 21

Compression:

Stored size: 1.13 KB

Contents

require "spec_helper"

describe "out_forward", stub: :daemon do
  let(:exists_user) { build(:user) }
  let(:match) { "test.out_forward.#{Time.now.to_i}.*" }

  before do
    login_with exists_user
  end

  it "Shown form" do
    visit daemon_setting_out_forward_path
    page.should have_css('input[name="fluentd_setting_out_forward[match]"]')
  end

  it "Appendable server setting", js: true do
    visit daemon_setting_out_forward_path
    all('.js-nested-column .js-append', visible: false).length.should == 1
    all('.js-append').first.click
    all('.js-nested-column .js-append', visible: false).length.should == 2
  end

  it "Updated config after submit", js: true do
    daemon.agent.config.should_not include(match)
    visit daemon_setting_out_forward_path
    within('#new_fluentd_setting_out_forward') do
      fill_in "Match", with: match
      fill_in "fluentd_setting_out_forward_server_0__host", with: "foobar"
      fill_in "fluentd_setting_out_forward_server_0__port", with: "9999"
      fill_in "Path", with: "/tmp/foo"
    end
    click_button I18n.t("fluentd.common.finish")
    daemon.agent.config.should include(match)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fluentd-ui-1.0.0.alpha.3 spec/features/out_forward_spec.rb
fluentd-ui-1.0.0.alpha.2 spec/features/out_forward_spec.rb
fluentd-ui-1.0.0.alpha.1 spec/features/out_forward_spec.rb
fluentd-ui-0.4.5 spec/features/out_forward_spec.rb
fluentd-ui-0.4.4 spec/features/out_forward_spec.rb
fluentd-ui-0.4.3 spec/features/out_forward_spec.rb
fluentd-ui-0.4.2 spec/features/out_forward_spec.rb
fluentd-ui-0.4.1 spec/features/out_forward_spec.rb
fluentd-ui-0.4.0 spec/features/out_forward_spec.rb
fluentd-ui-0.3.21 spec/features/out_forward_spec.rb
fluentd-ui-0.3.20 spec/features/out_forward_spec.rb
fluentd-ui-0.3.19 spec/features/out_forward_spec.rb
fluentd-ui-0.3.18 spec/features/out_forward_spec.rb
fluentd-ui-0.3.17 spec/features/out_forward_spec.rb
fluentd-ui-0.3.16 spec/features/out_forward_spec.rb
fluentd-ui-0.3.15 spec/features/out_forward_spec.rb
fluentd-ui-0.3.14 spec/features/out_forward_spec.rb
fluentd-ui-0.3.13 spec/features/out_forward_spec.rb
fluentd-ui-0.3.12 spec/features/out_forward_spec.rb
fluentd-ui-0.3.11 spec/features/out_forward_spec.rb