Skip to content

Commit ae56f62

Browse files
committed
merge
1 parent 0fc2d90 commit ae56f62

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/proxy/cdk-requests-go-through-a-proxy-when-configured.integtest.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ integTest('requests go through a proxy when configured',
1717
// Delete connection cache if it exists
1818
await fs.rm(path.join(cdkCacheDir, 'connection.json'), { force: true });
1919

20+
const connections1 = JSON.parse(await fs.readFile(path.join(cdkCacheDir, 'connection.json'), 'utf8'));
21+
// eslint-disable-next-line no-console
22+
console.log(connections1);
23+
2024
await fixture.cdkDeploy('test-2', {
2125
captureStderr: true,
2226
options: [
@@ -28,20 +32,20 @@ integTest('requests go through a proxy when configured',
2832
},
2933
});
3034

31-
const connections = JSON.stringify(await fs.readFile(path.join(cdkCacheDir, 'connection.json')));
35+
const connections = JSON.parse(await fs.readFile(path.join(cdkCacheDir, 'connection.json'), 'utf8'));
3236
// eslint-disable-next-line no-console
3337
console.log(connections);
3438

3539
const requests = await proxyServer.getSeenRequests();
3640
const urls = requests.map(req => req.url);
3741
// eslint-disable-next-line no-console
38-
console.log(JSON.stringify(urls));
42+
console.log('1', JSON.stringify(urls));
3943
// eslint-disable-next-line no-console
40-
console.log(JSON.stringify(urls.reverse()));
44+
console.log('2', JSON.stringify(urls.reverse()));
4145

4246
const urls2 = urls.filter(u => u.startsWith('https://cli.cdk.dev'));
4347
// eslint-disable-next-line no-console
44-
console.log(urls2);
48+
console.log('3', urls2);
4549

4650
expect(urls)
4751
.toContain('https://cli.cdk.dev-tools.aws.dev/notices.json');

0 commit comments

Comments
 (0)