def METHOD_NAME(
    scheduler, region, instance, pcluster_config_reader, clusters_factory, test_datadir, scheduler_commands_factory
):
    logging.info("Testing HIT cluster with cluster DNS disabled.")
    scaledown_idletime = 3
    max_queue_size = 3
    min_queue_size = 1
    slots_per_instance = fetch_instance_slots(region, instance)
    cluster_config = pcluster_config_reader(
        scaledown_idletime=scaledown_idletime, max_queue_size=max_queue_size, min_queue_size=min_queue_size
    )
    cluster = clusters_factory(cluster_config)
    remote_command_executor = RemoteCommandExecutor(cluster)
    scheduler_commands = scheduler_commands_factory(remote_command_executor)
    # Assert that compute hostname cannot be pinged directly
    compute_nodes = scheduler_commands.get_compute_nodes()
    result = remote_command_executor.run_remote_command("ping -c 3 {}".format(compute_nodes[0]), raise_on_error=False)
    assert_that(result.failed).is_true()
    # Assert compute hostname is the same as nodename
    _test_hostname_same_as_nodename(scheduler_commands, remote_command_executor, compute_nodes)
    # This verifies that the job completes correctly
    _test_mpi(
        remote_command_executor,
        slots_per_instance,
        scheduler,
        scheduler_commands,
        region=region,
        stack_name=cluster.cfn_name,
        scaledown_idletime=scaledown_idletime,
        verify_scaling=False,
    )