(self)
| 80 | 'Additional property detected: {}.'.format(prop)) |
| 81 | |
| 82 | def test_telemetry_vortex_format(self): |
| 83 | test_telemetry_client = self.build_telemetry_client() |
| 84 | test_telemetry_client.start() |
| 85 | |
| 86 | os.environ[test_telemetry_client.MSSQL_CLI_TELEMETRY_OPT_OUT] = 'False' |
| 87 | try: |
| 88 | payload = test_telemetry_client.conclude( |
| 89 | service_endpoint_uri='https://vortex.data.microsoft.com/collect/v1/validate', |
| 90 | separate_process=False) |
| 91 | self.assertIsNotNone(payload, 'Payload was empty.') |
| 92 | except HTTPError: |
| 93 | self.fail('Recevied HTTP Error when validating payload against vortex.') |
| 94 | |
| 95 | def test_telemetry_opt_out(self): |
| 96 | test_telemetry_client = self.build_telemetry_client() |
nothing calls this directly
no test coverage detected