Temporarily fix integration tests for email verify

Require email verify. As of now we don't have the "verified" bit in the storage layer so it passes. Once we put that in, we'll have to go back and add a call to the verification endpoint.
This commit is contained in:
Daniel Krol 2022-07-26 11:21:55 -04:00
parent aee351a2b1
commit 2f4ffd752c

View file

@ -93,7 +93,10 @@ func TestIntegrationWalletUpdates(t *testing.T) {
st, tmpFile := storeTestInit(t)
defer storeTestCleanup(tmpFile)
s := Server{&auth.Auth{}, &st, &TestEnv{}}
env := map[string]string{
"ACCOUNT_VERIFICATION_MODE": "EmailVerify",
}
s := Server{&auth.Auth{}, &st, &TestEnv{env}}
////////////////////
t.Log("Request: Register email address - any device")
@ -259,7 +262,10 @@ func TestIntegrationChangePassword(t *testing.T) {
st, tmpFile := storeTestInit(t)
defer storeTestCleanup(tmpFile)
s := Server{&auth.Auth{}, &st, &TestEnv{}}
env := map[string]string{
"ACCOUNT_VERIFICATION_MODE": "EmailVerify",
}
s := Server{&auth.Auth{}, &st, &TestEnv{env}}
////////////////////
t.Log("Request: Register email address")