diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-03-07 20:04:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 20:04:18 +0000 |
commit | b2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5 (patch) | |
tree | 00d2bbb524e27727dc111994082f5293e6d12b11 /cmd/platform/roles_test.go | |
parent | 03b6d1f652407fa9c3ec7e740e120a1c3e920de0 (diff) | |
download | chat-b2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5.tar.gz chat-b2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5.tar.bz2 chat-b2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5.zip |
Adding enterprise commands support (#8327)
Diffstat (limited to 'cmd/platform/roles_test.go')
-rw-r--r-- | cmd/platform/roles_test.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/cmd/platform/roles_test.go b/cmd/platform/roles_test.go deleted file mode 100644 index 1a5ae5173..000000000 --- a/cmd/platform/roles_test.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -package main - -import ( - "testing" - - "github.com/mattermost/mattermost-server/api" - "github.com/mattermost/mattermost-server/model" -) - -func TestAssignRole(t *testing.T) { - th := api.Setup().InitBasic() - defer th.TearDown() - - checkCommand(t, "roles", "system_admin", th.BasicUser.Email) - - if result := <-th.App.Srv.Store.User().GetByEmail(th.BasicUser.Email); result.Err != nil { - t.Fatal() - } else { - user := result.Data.(*model.User) - if user.Roles != "system_admin system_user" { - t.Fatal() - } - } -} |