def METHOD_NAME(configure_environment, connect_to_sockets_function,
                          get_current_test_case, tear_down, copy_tmp_script):
    '''
    description:
        Checks that every input message on the key request port generates the appropiate response to the manager.
    wazuh_min_version: 4.4.0
    parameters:
        - get_configuration:
            type: fixture
            brief: Get the configuration of the test.
        - configure_environment:
            type: fixture
            brief: Configure a custom environment for testing.
        - connect_to_sockets_function:
            type: fixture
            brief: Bind to the configured sockets at function scope.
        - get_current_test_case:
            type: fixture
            brief: Gets the current test case from the tests' list.
        - tear_down:
            type: fixture
            brief: Cleans the client.keys file.
        - copy_tmp_script:
            type: fixture
            brief: Copy the script to a temporary folder for testing.
    assertions:
        - The exec_path must be configured correctly
        - The script works as expected
    input_description:
        Different test cases are contained in an external YAML file (test_key_request_messages.yaml) which
        includes the different possible key requests and the expected responses.
    expected_log:
        - Key request responses on 'authd' logs.
    '''
    key_request_sock = receiver_sockets[0]
    for stage in get_current_test_case['test_case']:
        message = stage['input']
        response = stage.get('log', [])
        key_request_sock.send(message, size=False)
        # Monitor expected log messages
        validate_authd_logs(response)