From 1fd204a7c3380d3eecefb2281ab3299bf83e6c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Tue, 23 Apr 2024 15:25:21 +0900 Subject: [PATCH] ci: use new mock app parameters --- e2e/scripts/mockTests.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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', }