mirror of
https://github.com/luxfi/broker.git
synced 2026-09-24 00:25:18 +00:00
fix: generic test emails
This commit is contained in:
@@ -69,7 +69,7 @@ func testToken() string {
|
||||
return signTestJWT(map[string]interface{}{
|
||||
"sub": testUserID,
|
||||
"owner": "test-org",
|
||||
"email": "test@",
|
||||
"email": "test@example.com",
|
||||
"roles": "admin",
|
||||
"isAdmin": true,
|
||||
"exp": float64(time.Now().Add(time.Hour).Unix()),
|
||||
|
||||
@@ -30,7 +30,7 @@ func doRequest(r chi.Router, method, path string, body interface{}) *httptest.Re
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("X-User-Id", "test-user-001")
|
||||
req.Header.Set("X-Org-Id", "built-in")
|
||||
req.Header.Set("X-User-Email", "testadmin@")
|
||||
req.Header.Set("X-User-Email", "testadmin@example.com")
|
||||
w := httptest.NewRecorder()
|
||||
r.ServeHTTP(w, req)
|
||||
return w
|
||||
|
||||
Reference in New Issue
Block a user