You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(cli): update link for cli-telemetry --status (#932)
now that the doc page is live, it is a more official source of
information than the github readme page.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
Copy file name to clipboardExpand all lines: packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli-telemetry/cdk-cli-telemetry-reports-status.integtest.ts
expect(output1).toContain('CLI Telemetry is enabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to disable.');
14
+
expect(output1).toContain('CLI Telemetry is enabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to disable.');
expect(output2).toContain('CLI Telemetry is disabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to enable.');
19
+
expect(output2).toContain('CLI Telemetry is disabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to enable.');
awaitthis.ioHost.asIoHelper().defaults.info('CLI Telemetry is enabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to disable.');
213
+
awaitthis.ioHost.asIoHelper().defaults.info('CLI Telemetry is enabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to disable.');
214
214
}else{
215
-
awaitthis.ioHost.asIoHelper().defaults.info('CLI Telemetry is disabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to enable.');
215
+
awaitthis.ioHost.asIoHelper().defaults.info('CLI Telemetry is disabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to enable.');
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is enabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to disable.'}));
49
+
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is enabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to disable.'}));
50
50
});
51
51
52
52
test('status reports current telemetry status -- enabled intentionally',async()=>{
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is enabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to disable.'}));
58
+
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is enabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to disable.'}));
59
59
});
60
60
61
61
test('status reports current telemetry status -- disabled via context',async()=>{
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is disabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to enable.'}));
67
+
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is disabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to enable.'}));
68
68
});
69
69
70
70
test('status reports current telemetry status -- disabled via env var',async()=>{
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is disabled. See https://github.com/aws/aws-cdk-cli/tree/main/packages/aws-cdk#cdk-cli-telemetry for ways to enable.'}));
76
+
expect(notifySpy).toHaveBeenCalledWith(expect.objectContaining({level: 'info',message: 'CLI Telemetry is disabled. See https://docs.aws.amazon.com/cdk/v2/guide/cli-telemetry.html for ways to enable.'}));
0 commit comments