Skip to content

Commit

Permalink
ci: use new mock app parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Apr 23, 2024
1 parent 4329da6 commit 1fd204a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/scripts/mockTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down

0 comments on commit 1fd204a

Please sign in to comment.