Sha256: 9827ea733df6e2f4bdec5ab8c46302a5fab06f49284abfb3d1a4fdb37ee9a92e
Contents?: true
Size: 850 Bytes
Versions: 5
Compression:
Stored size: 850 Bytes
Contents
# -*- encoding: utf-8 -*- require File.join(File.dirname(__FILE__), "/spec_helper") require 'ap' describe ZabbixNudge::Nudge do context 'Initialization' do FakeWeb.register_uri(:post, "http://localhost:4568/jolokia", :response => fixture_file("cms_perm_response.txt")) it 'should accept a template file' do @m = ZabbixNudge::Nudge.new(File.join(File.dirname(__FILE__), 'fixtures/tomcat_template.xml'),:jmx => {:base_uri => "http://localhost:4568"}) @m.send.should == {"jmx[java.lang:name=CMS Perm Gen,type=MemoryPool;Usage;max]"=>67108864, "jmx[java.lang:name=CMS Perm Gen,type=MemoryPool;Usage;used]"=>18890360, "jmx[java.lang:name=CMS Perm Gen,type=MemoryPool;Usage;committed]"=>31518720} end end context 'process items' do before(:each) do end it "should get the title" do end end end
Version data entries
5 entries across 5 versions & 1 rubygems