summaryrefslogtreecommitdiffstats
path: root/api4/team_test.go
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-05-29 10:32:07 +0200
committerGeorge Goldberg <george@gberg.me>2018-05-29 09:32:07 +0100
commitbf4cefc3496686850757b2d44219ea2425871dda (patch)
tree61d8f5e12ec066c92e47a50c6ac6ea89e8ca39c4 /api4/team_test.go
parentc180cdbd1cba584c6e74cae7042de2290b51feb6 (diff)
downloadchat-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.go4
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)