spec/localhost.rb in zabbixapi-0.5.1b5 vs spec/localhost.rb in zabbixapi-0.5.1b6
- old
+ new
@@ -9,11 +9,11 @@
zbx = ZabbixApi.connect(
:url => api_url,
:user => api_login,
:password => api_password,
- :debug => false
+ :debug => true
)
hostgroup = "hostgroup______1"
template = "template______1"
application = "application_____1"
@@ -137,10 +137,10 @@
it "ITEM: Create or update" do
zbx.items.create_or_update(
:description => item,
:key_ => "proc.num[aaa]",
- :type => 6,
+ :status => 0,
:hostid => zbx.templates.get_id(:host => template),
:applications => [zbx.applications.get_id(:name => application)]
).should be_kind_of(Integer)
end