예제 #1
0
def test_check_form_submit_argument_parsing(
    params: tuple[str, Mapping[str, object]],
    expected_args: Sequence[object],
) -> None:
    """Tests if all required arguments are present."""
    active_check = ActiveCheck("check_form_submit")
    assert active_check.run_argument_function(params) == expected_args
예제 #2
0
def test_check_icmp_argument_parsing(
    params: Mapping[str, Any],
    expected_args: str,
) -> None:
    """Tests if all required arguments are present."""
    active_check = ActiveCheck("check_icmp")
    assert active_check.run_argument_function(params) == expected_args
예제 #3
0
def test_check_sftp_argument_parsing(
    params: Tuple[Any],
    expected_args: Sequence[str],
) -> None:
    """Tests if all required arguments are present."""
    active_check = ActiveCheck("check_sftp")
    assert active_check.run_argument_function(params) == expected_args
예제 #4
0
def test_check_sql_argument_parsing(params, expected_args):
    """Tests if all required arguments are present."""
    active_check = ActiveCheck("check_sql")
    assert active_check.run_argument_function(params) == expected_args
예제 #5
0
def test_ac_check_dns_expected_addresses(params, result):
    active_check = ActiveCheck("check_dns")
    assert active_check.run_argument_function(params) == result