def get_remotecis_by_team(user, team_id): if user.is_not_in_team(team_id) and user.is_not_epm(): raise dci_exc.Unauthorized() team = v1_utils.verify_existence_and_get(team_id, _TABLE) return remotecis.get_all_remotecis(team['id'])
def get_remotecis_by_test(user, test_id): test = v1_utils.verify_existence_and_get(test_id, _TABLE) return remotecis.get_all_remotecis(test['id'])
def get_remotecis_by_team(user, team_id): if not user.is_in_team(team_id): raise auth.UNAUTHORIZED team = v1_utils.verify_existence_and_get(team_id, _TABLE) return remotecis.get_all_remotecis(team['id'])