(check)
Validate all integrations for usage of http wrapper.
Validate all integrations for usage of http wrapper.
Validate all integrations for usage of http wrapper .
def http(check):
    """Validate all integrations for usage of http wrapper."""

    has_failed = False

    checks = process_checks_option(check, source='integrations')
    echo_info(f"Validating {len(checks)} integrations for usage of http wrapper...")

    for check in checks:
        check_uses_http_wrapper = False

        # Validate use of http wrapper (self.http.[...]) in check's .py files
        if check not in EXCLUDED_INTEGRATIONS:
            check_uses_http_wrapper = validate_use_http_wrapper(check)

        # Validate use of http template in check's spec.yaml (if exists)
        if check_uses_http_wrapper:
            has_failed = validate_config_http(get_default_config_spec(check), check) or has_failed

    if has_failed:
        abort()

    echo_success('Completed http validation!')
def http ( check ) : has_failed = False checks = process_checks_option ( check , source = 'integrations' ) echo_info ( f"Validating {len(checks)} integrations for usage of http wrapper..." ) for check in checks : check_uses_http_wrapper = False # Validate use of http wrapper (self.http.[...]) in check's .py files if check not in EXCLUDED_INTEGRATIONS : check_uses_http_wrapper = validate_use_http_wrapper ( check ) # Validate use of http template in check's spec.yaml (if exists) if check_uses_http_wrapper : has_failed = validate_config_http ( get_default_config_spec ( check ) , check ) or has_failed if has_failed : abort ( ) echo_success ( 'Completed http validation!' )