Sha256: bde74652b5fcbef2a7ce6278e12e2258b80731c6580564ea9f506563b4b3be08
Contents?: true
Size: 699 Bytes
Versions: 4
Compression:
Stored size: 699 Bytes
Contents
# encoding: utf-8 require_relative "../spec_helper" require "logstash/plugin" require "logstash/event" describe LogStash::Inputs::ZeroMQ, :integration => true do describe "receive events" do let(:nevents) { 10 } let(:port) { rand(1000)+1025 } let(:conf) do { "address" => ["tcp://127.0.0.1:#{port}"], "topology" => "pubsub" } end let(:events) do input(conf, nevents) do client = ZeroMQClient.new("127.0.0.1", port) nevents.times do |value| client.send("data #{value}") end client.close end end it "should receive the events" do expect(events.count).to be(nevents) end end end
Version data entries
4 entries across 4 versions & 1 rubygems