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

Version Path
rubix-0.2.1 spec/rubix/sender_spec.rb
rubix-0.2.0 spec/rubix/sender_spec.rb
rubix-0.1.5 spec/rubix/sender_spec.rb
rubix-0.1.4 spec/rubix/sender_spec.rb
rubix-0.1.3 spec/rubix/sender_spec.rb
rubix-0.1.2 spec/rubix/sender_spec.rb
rubix-0.1.1 spec/rubix/sender_spec.rb
rubix-0.1.0 spec/rubix/sender_spec.rb
rubix-0.0.12 spec/rubix/sender_spec.rb
rubix-0.0.11 spec/rubix/sender_spec.rb
rubix-0.0.10 spec/rubix/sender_spec.rb
rubix-0.0.9 spec/rubix/sender_spec.rb
rubix-0.0.8 spec/rubix/sender_spec.rb
rubix-0.0.7 spec/rubix/sender_spec.rb