diff --git a/e2e/scripts/mockTests.ts b/e2e/scripts/mockTests.ts index 9f2ca70a..0fb4e654 100644 --- a/e2e/scripts/mockTests.ts +++ b/e2e/scripts/mockTests.ts @@ -17,13 +17,19 @@ async function main() { const resultPath = `${info.routePrefix}/${info.getResultPath}` const host = info.functionAppUrl + const agentUrl = new URL(host) + agentUrl.pathname = agentPath + + const resultUrl = new URL(host) + resultUrl.pathname = resultPath + console.info('Running mock server for', host) console.info('Agent download path:', agentPath) console.info('Get result path:', resultPath) try { execSync( - `npm exec -y "git+https://github.com/fingerprintjs/dx-team-mock-for-proxy-integrations-e2e-tests.git" -- --api-url="https://${apiUrl}" --host="${host}" --cdn-proxy-path="${agentPath}" --ingress-proxy-path="${resultPath}" --traffic-name="fingerprint-pro-azure" --integration-version=${pkg.version}`, + `npm exec -y "git+https://github.com/fingerprintjs/dx-team-mock-for-proxy-integrations-e2e-tests.git" -- --api-url="https://${apiUrl}" --cdn-proxy-url="${agentUrl.toString()}" --ingress-proxy-url="${resultUrl.toString()}" --traffic-name="fingerprint-pro-azure" --integration-version=${pkg.version}`, { stdio: 'inherit', }