(route, base_url, id_token, retry = 3)
| 19 | const auth = new GoogleAuth(); |
| 20 | |
| 21 | const get = (route, base_url, id_token, retry = 3) => { |
| 22 | return request(new URL(route, base_url.trim()), { |
| 23 | headers: { |
| 24 | Authorization: `${id_token.trim()}`, |
| 25 | }, |
| 26 | throwHttpErrors: false, |
| 27 | retry, |
| 28 | }); |
| 29 | }; |
| 30 | |
| 31 | describe('End-to-End Tests', () => { |
| 32 | const {GOOGLE_CLOUD_PROJECT} = process.env; |