tests changed (checks)
This commit is contained in:
parent
e53c648263
commit
98bf84261d
|
@ -3,12 +3,12 @@ require 'helper'
|
||||||
class TestNSCA < Test::Unit::TestCase
|
class TestNSCA < Test::Unit::TestCase
|
||||||
class TestChecks
|
class TestChecks
|
||||||
extend NSCA::Checks
|
extend NSCA::Checks
|
||||||
perfdata :PD1, :pd1_in_sec, :s, 10, 20, 0, 30
|
PD1 = perfdata :pd1_in_sec, :s, 10, 20, 0, 30
|
||||||
perfdata :PD2, :pd2_in_1, 1, 0.99, 0.98, 0, 1
|
PD2 = perfdata :pd2_in_1, 1, 0.99, 0.98, 0, 1
|
||||||
perfdata :PD3, :pd3_count, :c, 3, 5, 0
|
PD3 = perfdata :pd3_count, :c, 3, 5, 0
|
||||||
check :T0, 'TestNSCA0', 'uxnags01-sbe.net.mobilkom.at'
|
T0 = check 'TestNSCA0', 'uxnags01-sbe.net.mobilkom.at'
|
||||||
check :T1, 'TestNSCA1', 'uxnags01-sbe.net.mobilkom.at', [PD1, PD2]
|
T1 = check 'TestNSCA1', 'uxnags01-sbe.net.mobilkom.at', [PD1, PD2]
|
||||||
check :T2, :TestNSCA2, 'uxnags01-sbe.net.mobilkom.at', [PD1, PD2, PD3]
|
T2 = check :TestNSCA2, 'uxnags01-sbe.net.mobilkom.at', [PD1, PD2, PD3]
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'our test server' do
|
context 'our test server' do
|
||||||
|
|
Loading…
Reference in a new issue