mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 09:17:05 +02:00
23 lines
608 B
Ruby
23 lines
608 B
Ruby
require "spec_helper"
|
|
|
|
describe "in_http", stub: :daemon do
|
|
let(:port) { "12345" }
|
|
|
|
before { login_with exists_user }
|
|
|
|
it "Shown form with filled in td.*.* on match" do
|
|
visit daemon_setting_in_http_path
|
|
page.should have_css('input[name="fluentd_setting_in_http[port]"]')
|
|
end
|
|
|
|
it "Updated config after submit" do
|
|
daemon.agent.config.should_not include(port)
|
|
visit daemon_setting_in_http_path
|
|
within('#new_fluentd_setting_in_http') do
|
|
fill_in "Port", with: port
|
|
end
|
|
click_button I18n.t("fluentd.common.finish")
|
|
daemon.agent.config.should include(port)
|
|
end
|
|
end
|