Sha256: 7399c5e59479b7d4893c1d5690bd094f76863d79d0bfc4159dfa3b8103b9802d
Contents?: true
Size: 733 Bytes
Versions: 14
Compression:
Stored size: 733 Bytes
Contents
require 'spec_helper' describe Rubix::Sender do before do @config_file = Tempfile.new('sender', '/tmp') end describe "running in --fast mode" do it "should not attempt to make any calls to the Zabbix API when writing values" do Rubix.connection.should_not_receive(:request) @sender = Rubix::Sender.new(mock_settings('configuration_file' => @config_file.path, 'host' => 'foohost', 'server' => 'fooserver', 'fast' => true, 'sender' => 'echo')) @sender.process_line("foo.bar.baz 123\n") @sender.process_line({:host => 'newhost', :host_groups => 'foobar,baz', :data => [{:key => 'foo.bar.baz', :value => 123}]}.to_json) end end describe "running in auto-vivify mode" do end end
Version data entries
14 entries across 14 versions & 1 rubygems