def test_orchestrator_backup_config(
    self,
    protocol: int,
    hostname: str,
    port: int,
    directory: str,
    username: str,
    password: str,
) -> dict:
    """Test specified settings for an Orchestrator backup

    .. list-table::
        :header-rows: 1

        * - Swagger Section
          - Method
          - Endpoint
        * - gmsBackup
          - POST
          - /gms/backup/testConnection

    :param protocol: The protocol of the remote server, ``3`` - SCP,
        ``4`` - HTTP, ``5`` - HTTPS, ``6`` - SFTP, any other number
        corresponds to FTP
    :type protocol: int
    :param hostname: The hostname or ip of the remote server
    :type hostname:
    :param port: Port to connect to remove server on
    :type port: int
    :param directory: The directory for the backup on the remote server
    :type directory: str
    :param username: The username to connect to the remote server
    :type username: str
    :param password: The password to connect to the remote server
    :type password: str
    :return: Returns dictionary of backup test results \n
        * keyword **message** (`str`): Orchestrator backup test results
    :rtype: dict
    """
    data = {
        "protocol": protocol,
        "hostname": hostname,
        "port": port,
        "directory": directory,
        "username": username,
        "password": password,
        "maxBackups": 0,
    }

    return self._post("/gms/backup/testConnection", data=data)