You've already forked oncall
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:
committed by
Joe Gillotti
parent
baf1440451
commit
d435e0f153
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user