diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-05-29 10:32:07 +0200 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2018-05-29 09:32:07 +0100 |
commit | bf4cefc3496686850757b2d44219ea2425871dda (patch) | |
tree | 61d8f5e12ec066c92e47a50c6ac6ea89e8ca39c4 /api4/team_test.go | |
parent | c180cdbd1cba584c6e74cae7042de2290b51feb6 (diff) | |
download | chat-bf4cefc3496686850757b2d44219ea2425871dda.tar.gz chat-bf4cefc3496686850757b2d44219ea2425871dda.tar.bz2 chat-bf4cefc3496686850757b2d44219ea2425871dda.zip |
Allow to update the teams scheme to default scheme (#8855)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r-- | api4/team_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api4/team_test.go b/api4/team_test.go index b47a8b650..079ba37ec 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -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) |