You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
341 B

from tests.icinga_helper import IcingaHelper
testinfra_hosts = ['icinga-host']
class TestChecks(IcingaHelper):
def test_host(self):
r = self.get_client().objects.get('Host', 'website-host')
assert r['attrs']['name'] == 'website-host'
def test_service(self):
assert self.is_service_ok('website-host!Pad')