summaryrefslogtreecommitdiffstats
path: root/store/sql_user_store_test.go
diff options
context:
space:
mode:
authorJason Blais <jason@spinpunch.com>2016-09-06 15:27:32 -0400
committerenahum <nahumhbl@gmail.com>2016-09-06 16:27:32 -0300
commit449b0665983bf83f1be7293b1bcc5d261dfcda02 (patch)
tree457c10be9b4d950de54c080291f6ada2ebf4a25d /store/sql_user_store_test.go
parentb8927e4bfa388337c5911264b3df81738137df7e (diff)
downloadchat-449b0665983bf83f1be7293b1bcc5d261dfcda02.tar.gz
chat-449b0665983bf83f1be7293b1bcc5d261dfcda02.tar.bz2
chat-449b0665983bf83f1be7293b1bcc5d261dfcda02.zip
PLT-3766 Change LDAP references to AD/LDAP in the UI (#3925)
Diffstat (limited to 'store/sql_user_store_test.go')
-rw-r--r--store/sql_user_store_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/store/sql_user_store_test.go b/store/sql_user_store_test.go
index 74c27dbea..753c54a7b 100644
--- a/store/sql_user_store_test.go
+++ b/store/sql_user_store_test.go
@@ -101,7 +101,7 @@ func TestUserStoreUpdate(t *testing.T) {
u2.Email = model.NewId()
if err := (<-store.User().Update(u2, false)).Err; err == nil {
- t.Fatal("Update should have failed because you can't modify LDAP fields")
+ t.Fatal("Update should have failed because you can't modify AD/LDAP fields")
}
}
@@ -460,14 +460,14 @@ func TestUserStoreGetForLogin(t *testing.T) {
}
if result := <-store.User().GetForLogin(*u2.AuthData, true, true, true); result.Err != nil {
- t.Fatal("Should have gotten user by LDAP AuthData", result.Err)
+ t.Fatal("Should have gotten user by AD/LDAP AuthData", result.Err)
} else if result.Data.(*model.User).Id != u2.Id {
- t.Fatal("Should have gotten user2 by LDAP AuthData")
+ t.Fatal("Should have gotten user2 by AD/LDAP AuthData")
}
// prevent getting user by AuthData when they're not an LDAP user
if result := <-store.User().GetForLogin(*u1.AuthData, true, true, true); result.Err == nil {
- t.Fatal("Should not have gotten user by non-LDAP AuthData")
+ t.Fatal("Should not have gotten user by non-AD/LDAP AuthData")
}
// prevent getting user when different login methods are disabled
@@ -480,7 +480,7 @@ func TestUserStoreGetForLogin(t *testing.T) {
}
if result := <-store.User().GetForLogin(*u2.AuthData, true, true, false); result.Err == nil {
- t.Fatal("Should have failed to get user3 by LDAP AuthData")
+ t.Fatal("Should have failed to get user3 by AD/LDAP AuthData")
}
auth3 := model.NewId()