test(e2e): split auth tests, remove sleep/retry skips, and dedupe security coverage

This commit is contained in:
2026-02-10 17:19:00 +01:00
parent 65109a787c
commit 4d2018b20a
6 changed files with 1647 additions and 1847 deletions

View File

@@ -1252,6 +1252,11 @@ func ConfirmAccountDeletion(t *testing.T, client *http.Client, baseURL, token st
func ResendVerificationEmail(t *testing.T, client *http.Client, baseURL, email string) int {
t.Helper()
return ResendVerificationEmailWithIP(t, client, baseURL, email, "")
}
func ResendVerificationEmailWithIP(t *testing.T, client *http.Client, baseURL, email, ipAddress string) int {
t.Helper()
requestData := map[string]string{
"email": email,
@@ -1268,6 +1273,9 @@ func ResendVerificationEmail(t *testing.T, client *http.Client, baseURL, email s
}
request.Header.Set("Content-Type", "application/json")
WithStandardHeaders(request)
if ipAddress != "" {
request.Header.Set("X-Forwarded-For", ipAddress)
}
resp, err := client.Do(request)
if err != nil {