File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ def parse_output(output)
6262 plugins = list_command . stderr_and_stdout . split ( /\n (?! )/ )
6363
6464 integration_plugin = plugins . find { |plugin_output | plugin_output . match ( /^logstash-integration-jdbc\b / ) }
65- expect ( integration_plugin ) . to match ( /^#{ sub_heading_pattern } logstash-input-jdbc$/ )
66- expect ( integration_plugin ) . to match ( /^#{ sub_heading_pattern } logstash-filter-jdbc_static$/ )
65+ expect ( integration_plugin ) . to match ( /^#{ sub_heading_pattern } #{ Regexp . escape ( " logstash-input-jdbc" ) } $/ )
66+ expect ( integration_plugin ) . to match ( /^#{ sub_heading_pattern } #{ Regexp . escape ( " logstash-filter-jdbc_static" ) } $/ )
6767 end
6868
6969 it "expands plugin aliases" do
@@ -72,7 +72,7 @@ def parse_output(output)
7272 plugins = list_command . stderr_and_stdout . split ( /\n (?! )/ )
7373
7474 alias_plugin = plugins . find { |plugin_output | plugin_output . match ( /^logstash-input-beats\b / ) }
75- expect ( alias_plugin ) . to match ( /^#{ sub_heading_pattern } logstash-input-elastic_agent (alias)$/ )
75+ expect ( alias_plugin ) . to match ( /^#{ sub_heading_pattern } #{ Regexp . escape ( " logstash-input-elastic_agent (alias)" ) } $/ )
7676 end
7777
7878 context "--no-expand" do
You can’t perform that action at this time.
0 commit comments