コード例 #1
0
ファイル: test_check_http.py プロジェクト: bbaumer/checkmk
def test_check_http_service_description(params, expected_description):
    active_check = ActiveCheck('check_http')
    assert active_check.run_service_description(params) == expected_description
コード例 #2
0
def test_check_icmp_argument_parsing(params, expected_args):
    """Tests if all required arguments are present."""
    active_check = ActiveCheck("check_icmp")
    assert active_check.run_argument_function(params) == expected_args
コード例 #3
0
ファイル: test_ac_check_dns.py プロジェクト: bbaumer/checkmk
def test_ac_check_dns_expected_addresses(params, result):
    active_check = ActiveCheck("check_dns")
    assert active_check.run_argument_function(params) == result