def METHOD_NAME(
    pcluster_config_reader,
    cfn_stacks_factory,
    test_datadir,
    clusters_factory,
):
    cluster_config = pcluster_config_reader()
    cluster: Cluster = clusters_factory(cluster_config)
    head_node_role = cluster.cfn_resources.get("RoleHeadNode")
    iam = boto3.client("iam")
    policies = iam.get_role_policy(RoleName=head_node_role, PolicyName="parallelcluster")
    policies = {policy.get("Sid"): policy for policy in policies.get("PolicyDocument").get("Statement")}
    assert_that(policies).does_not_contain_key("EC2GetComputeConsoleOutput")
    for statement in (policies.get(sid) for sid in policies):
        action = statement.get("Action")
        assert_that(
            "ec2:GetConsoleOutput" in action if isinstance(action, list) else action == "ec2:GetConsoleOutput"
        ).is_false()
    remote_command_executor = RemoteCommandExecutor(cluster)
    config = _get_clustermgtd_config(remote_command_executor)
    assert_that(
        config.getboolean(
            "clustermgtd",
            "compute_console_logging_enabled",
            fallback=False,
        )
    ).is_false()