Skip to content

Commit 8e880cc

Browse files
committed
more fixes
1 parent a20ccaa commit 8e880cc

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/e2e/tests/backend/endpoints/api/v1/integrations/custom/oauth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function authorize(projectId: string) {
138138
"status": 303,
139139
"body": "http://localhost:30000/api/v2/auth/authorize?code=%3Cstripped+query+param%3E&amp=",
140140
"headers": Headers {
141-
"location": "http://localhost:30000/api/v2/auth/authorize?code=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&iss=http%3A%2F%2Flocalhost%3ASTACK_PORT_PREFIX02%2Fapi%2Fv1%2Fintegrations%2Fcustom%2Foauth%2Fidp",
141+
"location": "http://localhost:30000/api/v2/auth/authorize?code=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&iss=http%3A%2F%2Flocalhost%3A%3C%24STACK_PORT_PREFIX%3E02%2Fapi%2Fv1%2Fintegrations%2Fcustom%2Foauth%2Fidp",
142142
"set-cookie": <setting cookie "_interaction_resume" at path "/api/v1/integrations/custom/oauth/idp/auth/<stripped auth UID>" to <stripped cookie value>>,
143143
"set-cookie": <setting cookie "_interaction_resume.sig" at path "/api/v1/integrations/custom/oauth/idp/auth/<stripped auth UID>" to <stripped cookie value>>,
144144
<some fields may have been hidden>,

apps/e2e/tests/backend/endpoints/api/v1/integrations/neon/oauth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function authorize(projectId: string) {
138138
"status": 303,
139139
"body": "http://localhost:30000/api/v2/auth/authorize?code=%3Cstripped+query+param%3E&amp=",
140140
"headers": Headers {
141-
"location": "http://localhost:30000/api/v2/auth/authorize?code=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&iss=http%3A%2F%2Flocalhost%3A8102%2Fapi%2Fv1%2Fintegrations%2Fneon%2Foauth%2Fidp",
141+
"location": "http://localhost:30000/api/v2/auth/authorize?code=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&iss=http%3A%2F%2Flocalhost%3A%3C%24STACK_PORT_PREFIX%3E02%2Fapi%2Fv1%2Fintegrations%2Fneon%2Foauth%2Fidp",
142142
"set-cookie": <setting cookie "_interaction_resume" at path "/api/v1/integrations/neon/oauth/idp/auth/<stripped auth UID>" to <stripped cookie value>>,
143143
"set-cookie": <setting cookie "_interaction_resume.sig" at path "/api/v1/integrations/neon/oauth/idp/auth/<stripped auth UID>" to <stripped cookie value>>,
144144
<some fields may have been hidden>,

apps/e2e/tests/snapshot-serializer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const keyedCookieNamePrefixes = [
103103
const stringRegexReplacements = [
104104
[/(\/integrations\/(neon|custom)\/oauth\/idp\/(interaction|auth)\/)[a-zA-Z0-9_-]+/gi, "$1<stripped $3 UID>"],
105105
[new RegExp(`localhost\:${getPortPrefix()}`, "gi"), "localhost:<$$STACK_PORT_PREFIX>"],
106+
[new RegExp(`localhost\%3A${getPortPrefix()}`, "gi"), "localhost%3A%3C%24STACK_PORT_PREFIX%3E"],
106107
] as const;
107108

108109

0 commit comments

Comments
 (0)