def test_downtime_error(): icinga = icingapy.IcingaClient(host='http://localhost', username='******', password='******') response = icinga.downtime('localhost', 'Disk Space', {'hours': 1}, 'until logrotate') assert not response
def test_status(): icinga = icingapy.IcingaClient(host='http://localhost', username='******', password='******') response = icinga.status('localhost', 'Current Load') assert 'service' in response assert 'state' in response assert 'info' in response assert 'last-check' in response
def test_summary(): icinga = icingapy.IcingaClient(host='http://localhost', username='******', password='******') response = icinga.summary('localhost') assert 'Current Load' in response assert 'Current Users' in response assert 'Disk Space' in response assert 'HTTP' in response assert 'SSH' in response assert 'Total Processes' in response
def test_status_error(): icinga = icingapy.IcingaClient(host='http://localhost', username='******', password='******') response = icinga.status('localhost', 'Current Load') assert not response
def test_summary_error(): icinga = icingapy.IcingaClient(host='http://localhost', username='******', password='******') response = icinga.summary('localhost') assert not response