From bd5b91b7d8cf11158288f53a49fd4319d8c9ff38 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..349a9208 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', }