summaryrefslogtreecommitdiffstats
path: root/store/storetest/storetestlib.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2018-08-01 15:18:14 -0400
committerGitHub <noreply@github.com>2018-08-01 15:18:14 -0400
commitc34b30a6e7fb707ae12e78a51e5bd776e5ca85ed (patch)
tree54a3a5d715fb0cf337c98a47efc4a75f7b23a791 /store/storetest/storetestlib.go
parenta8cc646eede863e35eff3017f4472ec6f9ad01a4 (diff)
downloadchat-c34b30a6e7fb707ae12e78a51e5bd776e5ca85ed.tar.gz
chat-c34b30a6e7fb707ae12e78a51e5bd776e5ca85ed.tar.bz2
chat-c34b30a6e7fb707ae12e78a51e5bd776e5ca85ed.zip
MM-11521/MM-11522 Fix being able to create users with invalid emails through API (#9199)
* MM-11522 Fix being able to create users with invalid emails through API * Ensure store tests are using valid emails * Add missing license header * Remove invalid test case * Fix TestUpdateOAuthUserAttrs
Diffstat (limited to 'store/storetest/storetestlib.go')
-rw-r--r--store/storetest/storetestlib.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/store/storetest/storetestlib.go b/store/storetest/storetestlib.go
new file mode 100644
index 000000000..46dbf6ba6
--- /dev/null
+++ b/store/storetest/storetestlib.go
@@ -0,0 +1,12 @@
+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package storetest
+
+import (
+ "github.com/mattermost/mattermost-server/model"
+)
+
+func MakeEmail() string {
+ return "success_" + model.NewId() + "@simulator.amazonses.com"
+}