From 05c2edbfa355cb0cb21d9f537186c381ae7d8f9e Mon Sep 17 00:00:00 2001 From: Carey Payette Date: Thu, 23 May 2024 22:57:28 -0400 Subject: [PATCH] Bug fixes for vectorization e2e tests --- tests/dotnet/Core.Examples/README.md | 8 ++++---- .../Core.Examples/Services/ManagementAPITestManager.cs | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/dotnet/Core.Examples/README.md b/tests/dotnet/Core.Examples/README.md index 7e5dd2a1a0..cb201cc18c 100644 --- a/tests/dotnet/Core.Examples/README.md +++ b/tests/dotnet/Core.Examples/README.md @@ -170,8 +170,8 @@ The vectorization api and vectorization job managed identities need to have `Con ##### App Config settings | Key | Value | Description | | --- | --- | --- | -| `FoundationaLLM:DataSources:datalake_vectorization_input:AuthenticationType` | `AzureIdentity` | The authentication method for the vectorization api and vectorization job managed identities. This will always be `AzureIdentity`. | -| `FoundationaLLM:DataSources:datalake_vectorization_input:AccountName` | `onelake` | Account name - this will always be `onelake`. | +| `FoundationaLLM:DataSources:onelake_fllm:AuthenticationType` | `AzureIdentity` | The authentication method for the vectorization api and vectorization job managed identities. This will always be `AzureIdentity`. | +| `FoundationaLLM:DataSources:onelake_fllm:AccountName` | `onelake` | Account name - this will always be `onelake`. | #### Running the example @@ -215,8 +215,8 @@ The vectorization api and vectorization job managed identities need to have `Con ##### App Config settings | Key | Value | Description | | --- | --- | --- | -| `FoundationaLLM:DataSources:datalake_vectorization_input:AuthenticationType` | `AzureIdentity` | The authentication method for the vectorization api and vectorization job managed identities. This will always be `AzureIdentity`. | -| `FoundationaLLM:DataSources:datalake_vectorization_input:AccountName` | `onelake` | Account name - this will always be `onelake`. | +| `FoundationaLLM:DataSources:onelake_fllm:AuthenticationType` | `AzureIdentity` | The authentication method for the vectorization api and vectorization job managed identities. This will always be `AzureIdentity`. | +| `FoundationaLLM:DataSources:onelake_fllm:AccountName` | `onelake` | Account name - this will always be `onelake`. | #### Running the example diff --git a/tests/dotnet/Core.Examples/Services/ManagementAPITestManager.cs b/tests/dotnet/Core.Examples/Services/ManagementAPITestManager.cs index 0de7a803ad..59d67c591e 100644 --- a/tests/dotnet/Core.Examples/Services/ManagementAPITestManager.cs +++ b/tests/dotnet/Core.Examples/Services/ManagementAPITestManager.cs @@ -341,18 +341,19 @@ await coreClient.PostAsync($"instances/{instanceId}/providers/{resourceProvider} async public Task GetIndexingProfile(string name) { - return await GetResourcesAsync< IndexingProfile>(instanceSettings.Value.Id, ResourceProviderNames.FoundationaLLM_Vectorization, $"indexingProfiles/{name}"); + + return (await GetResourcesAsync>(instanceSettings.Value.Id, ResourceProviderNames.FoundationaLLM_Vectorization, $"indexingProfiles/{name}")).Resource; } async public Task GetTextEmbeddingProfile(string name) { - return await GetResourcesAsync< TextEmbeddingProfile>(instanceSettings.Value.Id, ResourceProviderNames.FoundationaLLM_Vectorization, $"textEmbeddingProfiles/{name}"); + return (await GetResourcesAsync>(instanceSettings.Value.Id, ResourceProviderNames.FoundationaLLM_Vectorization, $"textEmbeddingProfiles/{name}")).Resource; } async public Task GetTextPartitioningProfile(string name) { - return await GetResourcesAsync(instanceSettings.Value.Id, ResourceProviderNames.FoundationaLLM_Vectorization, $"textPartitioningProfiles/{name}"); + return (await GetResourcesAsync>(instanceSettings.Value.Id, ResourceProviderNames.FoundationaLLM_Vectorization, $"textPartitioningProfiles/{name}")).Resource; } } }