spec/inputs/integration/it_spec.rb in logstash-input-snmp-1.2.7 vs spec/inputs/integration/it_spec.rb in logstash-input-snmp-1.2.8

- old
+ new

@@ -42,16 +42,16 @@ expect(tcp).to eq(1) end end describe "against single snmp server with snmpv2 and udp", :integration => true do - let(:config) { super.merge({"hosts" => [{"host" => "udp:snmp1/161", "community" => "public"}]})} + let(:config) { super().merge({"hosts" => [{"host" => "udp:snmp1/161", "community" => "public"}]})} it_behaves_like "snmp plugin return single event" end describe "against single server with snmpv3 and tcp", :integration => true do - let(:config) { super.merge({ + let(:config) { super().merge({ "hosts" => [{"host" => "tcp:snmp1/161", "version" => "3"}], "security_name" => "user_1", "auth_protocol" => "sha", "auth_pass" => "STrP@SSPhr@sE", "priv_protocol" => "aes", @@ -61,11 +61,11 @@ it_behaves_like "snmp plugin return single event" end describe "invalid user against snmpv3 server", :integration => true do - let(:config) { super.merge({ + let(:config) { super().merge({ "hosts" => [{"host" => "tcp:snmp1/161", "version" => "3"}], "security_name" => "user_2", "auth_protocol" => "sha", "auth_pass" => "STrP@SSPhr@sE", "priv_protocol" => "aes", @@ -82,11 +82,11 @@ plugin.close end end describe "single input plugin on single server with snmpv2 and mix of udp and tcp", :integration => true do - let(:config) { super.merge({"hosts" => [{"host" => "udp:snmp1/161", "community" => "public"}, {"host" => "tcp:snmp1/161", "community" => "public"}]})} + let(:config) { super().merge({"hosts" => [{"host" => "udp:snmp1/161", "community" => "public"}, {"host" => "tcp:snmp1/161", "community" => "public"}]})} it "should return two events " do plugin.register queue = [] stop_plugin_after_seconds(plugin) plugin.run(queue) @@ -97,11 +97,11 @@ expect(host_cnt_snmp1).to eq(2) end end describe "single input plugin on multiple udp hosts", :integration => true do - let(:config) { super.merge({"hosts" => [{"host" => "udp:snmp1/161", "community" => "public"}, {"host" => "udp:snmp2/162", "community" => "public"}]})} + let(:config) { super().merge({"hosts" => [{"host" => "udp:snmp1/161", "community" => "public"}, {"host" => "udp:snmp2/162", "community" => "public"}]})} it "should return two events, one per host" do plugin.register queue = [] stop_plugin_after_seconds(plugin) plugin.run(queue) @@ -187,10 +187,10 @@ it_behaves_like "snmp plugin return one udp event and one tcp event", config end describe "single host with tcp over ipv6", :integration => true do - let(:config) { super.merge({"hosts" => [{"host" => "tcp:[2001:3984:3989::161]/161"}]})} + let(:config) { super().merge({"hosts" => [{"host" => "tcp:[2001:3984:3989::161]/161"}]})} it_behaves_like "snmp plugin return single event" end def stop_plugin_after_seconds(plugin) Thread.new{ \ No newline at end of file