1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-29 23:38:17 +02:00

Use iris dynamic plans to escalate

Reduce plan spam in Iris from every Oncall team making a plan,
instead designate medium and urgent escalation plans and
dynamically determine targets.
This commit is contained in:
Daniel Wang
2017-08-15 14:31:06 -07:00
committed by Daniel Wang
parent 8e5d760306
commit ee6f4bdc9c
11 changed files with 135 additions and 33 deletions

View File

@@ -58,7 +58,7 @@ def test_api_v0_get_team(team, role, roster, schedule):
assert re.status_code == 200
team = re.json()
assert isinstance(team, dict)
expected_set = {'users', 'admins', 'services', 'rosters', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone', 'iris_plan'}
expected_set = {'users', 'admins', 'services', 'rosters', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone', 'iris_plan', 'iris_enabled'}
assert expected_set == set(team.keys())
# it should also support filter by fields
@@ -66,7 +66,7 @@ def test_api_v0_get_team(team, role, roster, schedule):
assert re.status_code == 200
team = re.json()
assert isinstance(team, dict)
expected_set = {'users', 'admins', 'services', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone', 'iris_plan'}
expected_set = {'users', 'admins', 'services', 'name', 'id', 'slack_channel', 'email', 'scheduling_timezone', 'iris_plan', 'iris_enabled'}
assert expected_set == set(team.keys())