MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / test_telemetry_vortex_format

Method test_telemetry_vortex_format

tests/test_telemetry.py:82–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 2

startMethod · 0.80

Tested by

no test coverage detected