chore: use header for service2 auth (#26419)

This commit is contained in:
Pavel Feldman 2023-08-10 13:43:16 -07:00 committed by GitHub
parent 00c8dd7ecc
commit f6563f1a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,9 +70,12 @@ if (mode === 'service') {
if (mode === 'service2') {
process.env.PW_VERSION_OVERRIDE = '1.37';
connectOptions = {
wsEndpoint: `${process.env.PLAYWRIGHT_SERVICE_URL}?accessKey=${process.env.PLAYWRIGHT_SERVICE_ACCESS_KEY}&cap=${JSON.stringify({ os, runId })}`,
wsEndpoint: `${process.env.PLAYWRIGHT_SERVICE_URL}?cap=${JSON.stringify({ os, runId })}`,
timeout: 3 * 60 * 1000,
exposeNetwork: '<loopback>',
headers: {
'x-mpt-access-key': process.env.PLAYWRIGHT_SERVICE_ACCESS_KEY!
}
};
}