summaryrefslogtreecommitdiffstats
path: root/app/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/user_test.go')
-rw-r--r--app/user_test.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/app/user_test.go b/app/user_test.go
index f0e026fa9..b557d296b 100644
--- a/app/user_test.go
+++ b/app/user_test.go
@@ -96,24 +96,6 @@ func TestCreateOAuthUser(t *testing.T) {
}
}
-func TestDeactivateSSOUser(t *testing.T) {
- th := Setup().InitBasic()
- defer th.TearDown()
-
- r := rand.New(rand.NewSource(time.Now().UnixNano()))
- glUser := oauthgitlab.GitLabUser{Id: int64(r.Intn(1000)) + 1, Username: "o" + model.NewId(), Email: model.NewId() + "@simulator.amazonses.com", Name: "Joram Wilander"}
-
- json := glUser.ToJson()
- user, err := th.App.CreateOAuthUser(model.USER_AUTH_SERVICE_GITLAB, strings.NewReader(json), th.BasicTeam.Id)
- if err != nil {
- t.Fatal(err)
- }
- defer th.App.PermanentDeleteUser(user)
-
- _, err = th.App.UpdateNonSSOUserActive(user.Id, false)
- assert.Equal(t, "api.user.update_active.no_deactivate_sso.app_error", err.Id)
-}
-
func TestCreateProfileImage(t *testing.T) {
b, err := CreateProfileImage("Corey Hulen", "eo1zkdr96pdj98pjmq8zy35wba", "luximbi.ttf")
if err != nil {