summaryrefslogtreecommitdiffstats
path: root/app/import_validators_test.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-10-18 14:32:36 +0100
committerGitHub <noreply@github.com>2018-10-18 14:32:36 +0100
commit5d6d4502992af4120fed19a9db43960d6269b871 (patch)
tree8666f2630575534b671b501020ea3d9d6e82f1b9 /app/import_validators_test.go
parentdc946f85168d6b375e185f53cb1a02636be6d7eb (diff)
downloadchat-5d6d4502992af4120fed19a9db43960d6269b871.tar.gz
chat-5d6d4502992af4120fed19a9db43960d6269b871.tar.bz2
chat-5d6d4502992af4120fed19a9db43960d6269b871.zip
MM-12670: Accept and use "" for user/pass AuthService in import/export. (#9689)
Diffstat (limited to 'app/import_validators_test.go')
-rw-r--r--app/import_validators_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/import_validators_test.go b/app/import_validators_test.go
index d54edff21..8ec460778 100644
--- a/app/import_validators_test.go
+++ b/app/import_validators_test.go
@@ -556,10 +556,9 @@ func TestImportValidateUserImportData(t *testing.T) {
data.Email = ptrStr("bob@example.com")
+ // Empty AuthService indicates user/password auth.
data.AuthService = ptrStr("")
- if err := validateUserImportData(&data); err == nil {
- t.Fatal("Validation should have failed due to 0-length auth service.")
- }
+ checkNoError(t, validateUserImportData(&data))
data.AuthService = ptrStr("saml")
data.AuthData = ptrStr(strings.Repeat("abcdefghij", 15))