def check_role_trust_relationships(admin_role, idbroker_role, log_role,
    ranger_role, issues):
    """Check the trust relationships amongst the roles, reporting errors
    back in the issues collector

    """
    if not idbroker_role.trusts_ec2_service():
        issues.append("IdBroker role {} doesn't trust the EC2 service".
            format(idbroker_role.role_arn))
    if not admin_role.trusts(idbroker_role):
        issues.append("Admin Role {} doesn't trust the IDBroker role {}".
            format(admin_role.role_arn, idbroker_role.role_arn))
    if not log_role.trusts_ec2_service():
        issues.append("Log Role {} doesn't trust the EC2 service".format(
            log_role.role_arn, idbroker_role.role_arn))
    if not ranger_role.trusts(idbroker_role):
        issues.append("Ranger Role {} doesn't trust the IDBroker role {}".
            format(ranger_role.role_arn, idbroker_role.role_arn))
