mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
tag :socket for exclusion
This commit is contained in:
parent
1e48802b8c
commit
efbf2f5606
5 changed files with 6 additions and 16 deletions
|
@ -2,7 +2,7 @@ require "test_utils"
|
|||
require "socket"
|
||||
require "tempfile"
|
||||
|
||||
describe "inputs/collectd" do
|
||||
describe "inputs/collectd", :socket => true do
|
||||
extend LogStash::RSpec
|
||||
udp_sock = UDPSocket.new(Socket::AF_INET)
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require "test_utils"
|
||||
require "socket"
|
||||
|
||||
describe "inputs/syslog" do
|
||||
describe "inputs/syslog", :socket => true do
|
||||
extend LogStash::RSpec
|
||||
|
||||
describe "properly handles priority, severity and facilities" do
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require "test_utils"
|
||||
require "socket"
|
||||
|
||||
describe "inputs/tcp" do
|
||||
describe "inputs/tcp", :socket => true do
|
||||
extend LogStash::RSpec
|
||||
|
||||
describe "read json_event" do
|
||||
|
|
|
@ -8,7 +8,7 @@ describe LogStash::Outputs::File do
|
|||
describe "ship lots of events to a file" do
|
||||
event_count = 10000 + rand(500)
|
||||
tmp_file = Tempfile.new('logstash-spec-output-file')
|
||||
|
||||
|
||||
config <<-CONFIG
|
||||
input {
|
||||
generator {
|
||||
|
@ -60,17 +60,7 @@ describe LogStash::Outputs::File do
|
|||
agent do
|
||||
line_num = 0
|
||||
# Now check all events for order and correctness.
|
||||
Zlib::GzipReader.new(File.open(tmp_file)).each_line do |line|
|
||||
event = LogStash::Event.new(JSON.parse(line))
|
||||
insist {event["message"]} == "hello world"
|
||||
insist {event["sequence"]} == line_num
|
||||
line_num += 1
|
||||
end
|
||||
insist {line_num} == event_count
|
||||
|
||||
#LOGSTASH-997 confirm usage of zcat command on file
|
||||
line_num = 0
|
||||
`zcat #{tmp_file.path()}`.split("\n").each do |line|
|
||||
Zlib::GzipReader.open(tmp_file.path).each_line do |line|
|
||||
event = LogStash::Event.new(JSON.parse(line))
|
||||
insist {event["message"]} == "hello world"
|
||||
insist {event["sequence"]} == line_num
|
||||
|
|
|
@ -2,7 +2,7 @@ require "test_utils"
|
|||
require "logstash/outputs/graphite"
|
||||
require "mocha/api"
|
||||
|
||||
describe LogStash::Outputs::Graphite do
|
||||
describe LogStash::Outputs::Graphite, :socket => true do
|
||||
extend LogStash::RSpec
|
||||
|
||||
describe "defaults should include all metrics" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue