storj/satellite/console
Márton Elek 1be5277c2a satellite/consoleweb: fix flaky TestAuth tests
We had a lot of flaky test failures from TestAuth. The error message (WHICH IS NOT VISIBLE IN JEKNINS, only in tests.json):

```
FAIL: TestAuth_Register_NameSpecialChars/Postgres (1.04s)
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0

goroutine 3473 [running]:

testing.tRunner.func1.2({0x235fe40, 0xc000fe6a08})
	/usr/local/go/src/testing/testing.go:1209 +0x36c
testing.tRunner.func1()
	/usr/local/go/src/testing/testing.go:1212 +0x3b6
panic({0x235fe40, 0xc000fe6a08})
	/usr/local/go/src/runtime/panic.go:1047 +0x266
storj.io/storj/satellite/console/consoleweb/consoleapi_test.TestAuth_Register_NameSpecialChars.func1(0xc001a281a0, 0x289d650, 0xc001a30000)
	/var/lib/jenkins/workspace/storj-gerrit-verify/satellite/console/consoleweb/consoleapi/auth_test.go:773 +0x785
storj.io/storj/private/testplanet.Run.func1.1({0x289c770, 0xc0001b8008})
	/var/lib/jenkins/workspace/storj-gerrit-verify/private/testplanet/run.go:67 +0x732
storj.io/storj/private/testmonkit.RunWith({0x289c770, 0xc0001b8008}, {0x28d89b0, 0xc001a281a0}, {0x1, {0x0, 0x0}, {0x0, 0x0, 0x0}}, ...)
```

The root cause:

testplanet uses a simulated mail sender which clicks to all the registration links by default (async).

These tests creat links and check the unverified users, but without enough luck the mail sender may already clicks to the link which makes the user verified.

Change-Id: I17cd6bf4ae3e7adc223ec693976bb609370f0c44
2022-08-04 19:06:07 +00:00
..
consoleauth satellite/console: integrate sessions into satellite UI 2022-06-13 08:02:02 +00:00
consolewasm web/satellite: add consent screen for oauth 2022-04-27 14:33:07 +00:00
consoleweb satellite/consoleweb: fix flaky TestAuth tests 2022-08-04 19:06:07 +00:00
emailreminders satellite/console: send email when user's account gets locked 2022-08-04 10:39:20 +00:00
restkeys satellite: Rename "acct mgmt api" to "rest api" 2022-04-25 18:51:46 +00:00
wasm web/satellite: add consent screen for oauth 2022-04-27 14:33:07 +00:00
apikeys_test.go satellite/satellitedb: select user_agent in apikeys method GetPagedByProjectID 2022-01-03 11:58:26 -05:00
apikeys.go apigen: create api key endpoint 2022-05-26 16:00:23 +00:00
attribution_test.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
billinghistoryitem.go satellite/payments: available coupon value feature 2020-06-02 10:00:45 +00:00
buckets.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
captcha_test.go satellite/{web, console}: login captcha implemented 2022-08-03 23:02:27 +00:00
captcha.go satellite/console,web/satellite: Implement hCaptcha 2022-05-13 14:57:45 +00:00
database.go satellite/console: implement WebappSessions db 2022-05-16 15:06:04 +00:00
mail.go satellite/console: send email when user's account gets locked 2022-08-04 10:39:20 +00:00
mfa.go satellite/console: use new type UpdateUserRequest as arg to db users.Update 2022-06-14 09:28:03 -04:00
projectmembers_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
projectmembers.go all: add missing dots 2020-08-11 17:50:01 +03:00
projects_test.go satellite/{admin,console}: Move tests 2021-10-01 12:25:37 +00:00
projects.go satellite/{console,satellitedb}: add PublicID to Project, db method GetByPublicID 2022-07-21 19:49:26 +00:00
projectusagelimits.go satellite/{console,satellitedb}: add project segment limit to user 2021-12-16 08:46:01 +00:00
registrationtoken.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
request.go satellite/console: integrate sessions into satellite UI 2022-06-13 08:02:02 +00:00
resetpasswordtoken_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
resetpasswordtoken.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
satellites.go satellite/console: added new email which is sent on unknown password reset 2022-07-14 14:32:59 +00:00
service_test.go satellite/{web, console}: removed account locked statuses 2022-08-04 16:19:23 +00:00
service.go satellite/{web, console}: removed account locked statuses 2022-08-04 16:19:23 +00:00
sortdirection.go all: fix comments 2020-07-16 19:13:14 +03:00
users_test.go satellite/console: use new type UpdateUserRequest as arg to db users.Update 2022-06-14 09:28:03 -04:00
users.go satellite/{web, console}: login captcha implemented 2022-08-03 23:02:27 +00:00
validation.go satellite/console: Don't lose ErrValiation error class 2022-02-28 11:00:56 +00:00