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