Allow to update the teams scheme to default scheme (#8855)

Этот коммит содержится в:
Jesús Espino
2018-05-29 10:32:07 +02:00
коммит произвёл George Goldberg
родитель c180cdbd1c
Коммит bf4cefc349
2 изменённых файлов: 16 добавлений и 10 удалений

Просмотреть файл

@@ -2095,6 +2095,10 @@ func TestUpdateTeamScheme(t *testing.T) {
_, resp := th.SystemAdminClient.UpdateTeamScheme(team.Id, teamScheme.Id)
CheckNoError(t, resp)
// Test the return to default scheme
_, resp = th.SystemAdminClient.UpdateTeamScheme(team.Id, "")
CheckNoError(t, resp)
// Test various invalid team and scheme id combinations.
_, resp = th.SystemAdminClient.UpdateTeamScheme(team.Id, "x")
CheckBadRequestStatus(t, resp)