summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-09-24 20:59:53 +0200
committerChristopher Speller <crspeller@gmail.com>2018-09-24 11:59:53 -0700
commitf917d3d19b3bdddf28fb8dbd0dda75b7a1e43b84 (patch)
treede1b94a383035f506975da47b66120bad710d63f /api4
parent847f30a13b9e784e54455e84069deeeba281874d (diff)
downloadchat-f917d3d19b3bdddf28fb8dbd0dda75b7a1e43b84.tar.gz
chat-f917d3d19b3bdddf28fb8dbd0dda75b7a1e43b84.tar.bz2
chat-f917d3d19b3bdddf28fb8dbd0dda75b7a1e43b84.zip
add translation strings and add test case (#9294)
Diffstat (limited to 'api4')
-rw-r--r--api4/user_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/api4/user_test.go b/api4/user_test.go
index fd60a40ee..6b8b14951 100644
--- a/api4/user_test.go
+++ b/api4/user_test.go
@@ -69,6 +69,11 @@ func TestCreateUser(t *testing.T) {
CheckErrorMessage(t, resp, "model.user.is_valid.email.app_error")
CheckBadRequestStatus(t, resp)
+ ruser.Username = "testinvalid+++"
+ _, resp = Client.CreateUser(ruser)
+ CheckErrorMessage(t, resp, "model.user.is_valid.username.app_error")
+ CheckBadRequestStatus(t, resp)
+
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.TeamSettings.EnableOpenServer = false })
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.TeamSettings.EnableUserCreation = false })