From c34b30a6e7fb707ae12e78a51e5bd776e5ca85ed Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 1 Aug 2018 15:18:14 -0400 Subject: 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 --- store/storetest/status_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store/storetest/status_store.go') diff --git a/store/storetest/status_store.go b/store/storetest/status_store.go index cf73efdfc..b26be4c19 100644 --- a/store/storetest/status_store.go +++ b/store/storetest/status_store.go @@ -125,7 +125,7 @@ func testGetAllFromTeam(t *testing.T, ss store.Store) { team1 := model.Team{} team1.DisplayName = model.NewId() team1.Name = model.NewId() - team1.Email = model.NewId() + "@example.com" + team1.Email = MakeEmail() team1.Type = model.TEAM_OPEN if err := (<-ss.Team().Save(&team1)).Err; err != nil { @@ -135,7 +135,7 @@ func testGetAllFromTeam(t *testing.T, ss store.Store) { team2 := model.Team{} team2.DisplayName = model.NewId() team2.Name = model.NewId() - team2.Email = model.NewId() + "@example.com" + team2.Email = MakeEmail() team2.Type = model.TEAM_OPEN if err := (<-ss.Team().Save(&team2)).Err; err != nil { -- cgit v1.2.3-1-g7c22