@@ -84,27 +84,6 @@ describe('webhook-url-validator', () => {
8484 'http://localhost:4200/v1/webhooks/123456789012345678901/sync' ,
8585 'http://internal-api:3000/v1/webhooks/123456789012345678901/sync' ,
8686 ] ,
87- [
88- 'rewrites when user URL includes query parameters' ,
89- 'https://public.openops.com' ,
90- 'http://internal-api:3000' ,
91- 'https://public.openops.com/v1/webhooks/123456789012345678901/sync?test=true' ,
92- 'http://internal-api:3000/v1/webhooks/123456789012345678901/sync?test=true' ,
93- ] ,
94- [
95- 'rewrites when user URL includes a hash fragment' ,
96- 'https://public.openops.com' ,
97- 'http://internal-api:3000' ,
98- 'https://public.openops.com/v1/webhooks/123456789012345678901/sync#section' ,
99- 'http://internal-api:3000/v1/webhooks/123456789012345678901/sync#section' ,
100- ] ,
101- [
102- 'rewrites when user URL includes both query parameters and a hash fragment' ,
103- 'https://public.openops.com/api' ,
104- 'http://internal-api:3000/internal' ,
105- 'https://public.openops.com/api/v1/webhooks/123456789012345678901/sync?foo=bar#section' ,
106- 'http://internal-api:3000/internal/v1/webhooks/123456789012345678901/sync?foo=bar#section' ,
107- ] ,
10887 [
10988 'rewrites when user URL already contains the internal base path after public host matching' ,
11089 'https://public.openops.com' ,
0 commit comments