fluentd-ui/spec/features/out_tdlog_spec.rb
Kenji Okimoto 12e2b09a8e
Skip validation failure
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:10:17 +09:00

27 lines
671 B
Ruby

require "spec_helper"
describe "out_tdlog", 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_tdlog_path
page.should have_css('input[name="setting[pattern]"]')
end
it "Updated config after submit" do
skip "validation failed"
daemon.agent.config.should_not include(api_key)
visit daemon_setting_out_tdlog_path
within('form') do
fill_in "Apikey", with: api_key
end
click_button I18n.t("fluentd.common.finish")
daemon.agent.config.should include(api_key)
end
end