diff options
author | George Goldberg <george@gberg.me> | 2018-10-18 14:32:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 14:32:36 +0100 |
commit | 5d6d4502992af4120fed19a9db43960d6269b871 (patch) | |
tree | 8666f2630575534b671b501020ea3d9d6e82f1b9 /app/import_validators_test.go | |
parent | dc946f85168d6b375e185f53cb1a02636be6d7eb (diff) | |
download | chat-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.go | 5 |
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)) |