1234567891011121314 |
- def test_conn_unknown_method(self):
- db.merge_conn(
- Connection(
- conn_id=ADX_TEST_CONN_ID,
- conn_type='azure_data_explorer',
- login='client_id',
- password='client secret',
- host='https://help.kusto.windows.net',
- extra=json.dumps({'extra__azure_data_explorer__auth_method': 'AAD_OTHER'}),
- )
- )
- with pytest.raises(AirflowException) as ctx:
- AzureDataExplorerHook(azure_data_explorer_conn_id=ADX_TEST_CONN_ID)
- assert 'Unknown authentication method: AAD_OTHER' in str(ctx.value)
|