1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-30 23:44:59 +02:00

Tweak team_oncall and service_oncall

Add endpoints for getting current oncall without specifying role,
add information to team/service oncall data returned
This commit is contained in:
Daniel Wang
2017-10-09 17:16:33 -07:00
committed by Joe Gillotti
parent baf1440451
commit d435e0f153
6 changed files with 47 additions and 25 deletions

View File

@@ -110,3 +110,8 @@ def test_api_v0_services_current_oncall(team, service, user, role, event):
results = re.json()
assert results[0]['start'] == start
assert results[0]['end'] == end
re = requests.get(api_v0('services/%s/oncall' % service_name))
assert re.status_code == 200
results = re.json()
assert len(results) == 2