Sha256: de867a14640403ffee151eb37b54b631403ef179392f5f8f01cfd8d1546832ce

Contents?: true

Size: 669 Bytes

Versions: 20

Compression:

Stored size: 669 Bytes

Contents

require "spec_helper"

describe "out_td", stub: :daemon do
  let(:exists_user) { build(:user) }
  let(:api_key) { "dummydummy" }

  before do
    login_with exists_user
  end

  it "Shown form with filled in td.*.* on match" do
    visit daemon_setting_out_td_path
    page.should have_css('input[name="fluentd_setting_out_td[match]"]')
  end

  it "Updated config after submit" do
    daemon.agent.config.should_not include(api_key)
    visit daemon_setting_out_td_path
    within('#new_fluentd_setting_out_td') do
      fill_in "Apikey", with: api_key
    end
    click_button I18n.t("fluentd.common.finish")
    daemon.agent.config.should include(api_key)
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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