spec/localhost.rb in zabbixapi-0.4.2 vs spec/localhost.rb in zabbixapi-0.4.3
- old
+ new
@@ -43,10 +43,14 @@
it "HOSTGROUP: Find unknown" do
zbx.hostgroups.get_id(:name => "#{hostgroup}______").should be_kind_of(NilClass)
end
+ it "HOSTGROUP: Create or update" do
+ zbx.hostgroups.create_or_update(:name => hostgroup).should be_kind_of(Integer)
+ end
+
it "TEMPLATE: Create" do
zbx.templates.create(
:host => template,
:groups => [:groupid => zbx.hostgroups.get_id(:name => hostgroup)]
).should be_kind_of(Integer)
@@ -206,10 +210,10 @@
:width => "900",
:height => "200"
).should be_kind_of(Integer)
end
- it "GRAPH: Find ugititems" do
+ it "GRAPH: Find gititems" do
zbx.graphs.get_items( zbx.graphs.get_id(:name => graph) )
end
it "GRAPH: Find" do
zbx.graphs.get_id( :name => graph ).should be_kind_of(Integer)