From d02e3c7929cf1ed3a46bc4ca02c2996935375285 Mon Sep 17 00:00:00 2001 From: "naiyuantian@microsoft.com" Date: Mon, 4 Nov 2024 09:55:58 -0800 Subject: [PATCH] update test --- .../FunctionsDurableTaskClientTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Worker.Extensions.DurableTask.Tests/FunctionsDurableTaskClientTests.cs b/test/Worker.Extensions.DurableTask.Tests/FunctionsDurableTaskClientTests.cs index 1daafede6..e7b7c6da9 100644 --- a/test/Worker.Extensions.DurableTask.Tests/FunctionsDurableTaskClientTests.cs +++ b/test/Worker.Extensions.DurableTask.Tests/FunctionsDurableTaskClientTests.cs @@ -171,7 +171,7 @@ public async Task TestWaitForCompletionOrCreateCheckStatusResponseAsync_WhenRunn // Assert the response content is not null and check the content is correct. Assert.NotNull(payload); - AssertHttpManagementPayload(payload, "http://localhost:7075/runtime/webhooks/durabletask", instanceId); + AssertHttpManagementPayload(payload, "https://localhost:7075/runtime/webhooks/durabletask", instanceId); } /// @@ -225,7 +225,7 @@ public async Task TestWaitForCompletionOrCreateCheckStatusResponseAsync_WhenFail [InlineData("X-Forwarded-Proto", "https", "X-Forwarded-Host", "xforwarded.example.com", "https://xforwarded.example.com/runtime/webhooks/durabletask")] [InlineData("", "", "X-Forwarded-Host", "test.net", "https://test.net/runtime/webhooks/durabletask")] [InlineData("X-Original-Proto", "https", "X-Original-Host", "original.example.com", "https://original.example.com/runtime/webhooks/durabletask")] - [InlineData("", "", "", "", "http://localhost:7075/runtime/webhooks/durabletask")] // Default base URL for empty headers + [InlineData("", "", "", "", "https://localhost:7075/runtime/webhooks/durabletask")] // Default base URL for empty headers public void TestHttpRequestDataForwardingHandling(string header1, string? value1, string header2, string value2, string expectedBaseUrl) { var headers = new HttpHeadersCollection(); @@ -307,7 +307,7 @@ private HttpRequestData MockHttpRequestAndResponseData(HttpHeadersCollection? he var mockHttpRequestData = new Mock(mockFunctionContext.Object); // Set up the URL property. - mockHttpRequestData.SetupGet(r => r.Url).Returns(new Uri("http://localhost:7075/orchestrators/E1_HelloSequence")); + mockHttpRequestData.SetupGet(r => r.Url).Returns(new Uri("https://localhost:7075/orchestrators/E1_HelloSequence")); // If headers are provided, use them, otherwise create a new empty HttpHeadersCollection headers ??= new HttpHeadersCollection();