diff --git a/dotnet/src/Functions/Functions.UnitTests/OpenApi/Extensions/OpenApiKernelExtensionsTests.cs b/dotnet/src/Functions/Functions.UnitTests/OpenApi/Extensions/OpenApiKernelExtensionsTests.cs index a18982d4e547..e19d5885babb 100644 --- a/dotnet/src/Functions/Functions.UnitTests/OpenApi/Extensions/OpenApiKernelExtensionsTests.cs +++ b/dotnet/src/Functions/Functions.UnitTests/OpenApi/Extensions/OpenApiKernelExtensionsTests.cs @@ -294,8 +294,8 @@ public async Task ItShouldReplicateMetadataToOperationAsync(string documentFileN Assert.Equal(["https://my-key-vault.vault.azure.net"], serverUrls); var info = additionalProperties["info"] as RestApiInfo; Assert.NotNull(info); - var security = additionalProperties["info"] as List; - Assert.Null(security); + var security = additionalProperties["security"] as List; + Assert.NotNull(security); // Assert Operation Extension keys var operationExtensions = additionalProperties["operation-extensions"] as Dictionary; diff --git a/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiKernelPluginFactoryTests.cs b/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiKernelPluginFactoryTests.cs index 491f8ba84064..6c70921424eb 100644 --- a/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiKernelPluginFactoryTests.cs +++ b/dotnet/src/Functions/Functions.UnitTests/OpenApi/OpenApiKernelPluginFactoryTests.cs @@ -285,8 +285,8 @@ public async Task ItShouldReplicateMetadataToOperationAsync(string documentFileN Assert.Equal(["https://my-key-vault.vault.azure.net"], serverUrls); var info = additionalProperties["info"] as RestApiInfo; Assert.NotNull(info); - var security = additionalProperties["info"] as List; - Assert.Null(security); + var security = additionalProperties["security"] as List; + Assert.NotNull(security); // Assert Operation Extension keys var operationExtensions = additionalProperties["operation-extensions"] as Dictionary;