Add system test for filter_stdout and filter_parser

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-09-13 17:07:14 +09:00
parent f66929bf5b
commit d346f22c6f
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
require "application_system_test_case"
class FilterParserTest < ApplicationSystemTestCase
include ConfigurableDaemonSettings
setup do
login_with(FactoryBot.build(:user))
@type = "filter_parser"
@form_name = "key_name"
@form_value = "message"
@daemon = stub_daemon
end
end

View File

@ -0,0 +1,13 @@
require "application_system_test_case"
class FilterStdoutTest < ApplicationSystemTestCase
include ConfigurableDaemonSettings
setup do
login_with(FactoryBot.build(:user))
@type = "filter_stdout"
@form_name = "pattern"
@form_value = "stdout.**"
@daemon = stub_daemon
end
end