def METHOD_NAME(self):
    ecs_client = mock.MagicMock
    ecs_client.task_definitions = []
    ecs_client.task_definitions.append(
        TaskDefinition(
            name=task_name,
            arn=f"arn:aws:ecs:{AWS_REGION}:{AWS_ACCOUNT_NUMBER}:task-definition/{task_name}:{task_revision}",
            revision="1",
            region=AWS_REGION,
            environment_variables=[
                ContainerEnvVariable(
                    name=env_var_name_with_secrets, value=env_var_value_with_secrets
                )
            ],
        )
    )
    with mock.patch(
        "prowler.providers.aws.services.ecs.ecs_service.ECS",
        ecs_client,
    ):
        from prowler.providers.aws.services.ecs.ecs_task_definitions_no_environment_secrets.ecs_task_definitions_no_environment_secrets import (
            ecs_task_definitions_no_environment_secrets,
        )
        check = ecs_task_definitions_no_environment_secrets()
        result = check.execute()
        assert len(result) == 1
        assert result[0].status == "FAIL"
        assert (
            result[0].status_extended
            == f"Potential secret found in variables of ECS task definition {task_name} with revision {task_revision} -> Secret Keyword on line 2."
        )
        assert result[0].resource_id == f"{task_name}:1"
        assert (
            result[0].resource_arn
            == f"arn:aws:ecs:{AWS_REGION}:{AWS_ACCOUNT_NUMBER}:task-definition/{task_name}:{task_revision}"
        )