tests.system.microsoft.azure.example_azure_ai_search¶
System test for AzureAISearchHook.
Requires a real Azure AI Search service, reachable through the azure_ai_search_default
connection (AIRFLOW_CONN_AZURE_AI_SEARCH_DEFAULT) with an admin API key as password: the
test creates its own index, writes and reads documents through the hook and deletes the index.
Attributes¶
Functions¶
Create the index of this test; the hook works on documents, not on indexes. |
|
Insert the documents, replacing the ones whose key already exists. |
|
Return the keys of the reports; retries while the service still indexes the write. |
|
|
Change one field of the reports, then count the documents that have it. |
|
|
Delete the documents by key; only the key field is needed. |
|
Module Contents¶
- tests.system.microsoft.azure.example_azure_ai_search.create_index()[source]¶
Create the index of this test; the hook works on documents, not on indexes.
- async tests.system.microsoft.azure.example_azure_ai_search.upload_documents()[source]¶
Insert the documents, replacing the ones whose key already exists.
- async tests.system.microsoft.azure.example_azure_ai_search.find_reports()[source]¶
Return the keys of the reports; retries while the service still indexes the write.
- async tests.system.microsoft.azure.example_azure_ai_search.archive_reports(keys)[source]¶
Change one field of the reports, then count the documents that have it.