Skip to content

Commit

Permalink
pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid committed Jul 8, 2024
1 parent 8ed5d30 commit 5d15568
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Common/TestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ private static List<string> GetLogs_UnhandledOrchestrationException(string messa
var list = new List<string>()
{
$"{messageId}: Function '{orchestratorFunctionNames[0]} ({FunctionType.Orchestrator})' scheduled. Reason: NewInstance. IsReplay: False.",
$"{messageId}: Function '{orchestratorFunctionNames[0]} ({FunctionType.Orchestrator})' started. IsReplay: False. Input: (null)",
$"{messageId}: Function '{orchestratorFunctionNames[0]} ({FunctionType.Orchestrator})' started. IsReplay: False. Input: ",
$"{messageId}: Function '{orchestratorFunctionNames[0]} ({FunctionType.Orchestrator})' failed with an error. Reason: System.ArgumentNullException: Value cannot be null.",
};

Expand Down Expand Up @@ -831,7 +831,7 @@ private static List<string> GetLogs_Orchestration_Activity(string[] messageIds,
$"{messageIds[1]}:0: Function '{orchestratorFunctionNames[1]} ({FunctionType.Orchestrator})' completed. ContinuedAsNew: False. IsReplay: False. Output: \"Hello,",
$"{messageIds[0]}: Function '{orchestratorFunctionNames[0]} ({FunctionType.Orchestrator})' started. IsReplay: True.",
$"{messageIds[0]}: Function '{orchestratorFunctionNames[1]} ({FunctionType.Orchestrator})' scheduled. Reason: OrchestratorGreeting. IsReplay: True.",
$"{messageIds[0]}: Function '{orchestratorFunctionNames[0]} ({FunctionType.Orchestrator})' completed. ContinuedAsNew: False. IsReplay: False. Output: (null)",
$"{messageIds[0]}: Function '{orchestratorFunctionNames[0]} ({FunctionType.Orchestrator})' completed. ContinuedAsNew: False. IsReplay: False. Output: ",
};

return list;
Expand Down
3 changes: 3 additions & 0 deletions test/FunctionsV2/EndToEndTraceHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#nullable enable
using System;
using Microsoft.Azure.WebJobs.Extensions.DurableTask;
using Microsoft.Azure.WebJobs.Extensions.DurableTask.Tests;
using Microsoft.Extensions.Logging.Abstractions;
using Xunit;

Expand All @@ -16,6 +17,7 @@ public class EndToEndTraceHelperTests
[InlineData(false, "DO NOT LOG ME")]
[InlineData(true, null)]
[InlineData(false, null)]
[Trait("Category", PlatformSpecificHelpers.TestCategory)]
public void StringSanitizerTest(
bool shouldTraceRawData,
string? possiblySensitiveData)
Expand Down Expand Up @@ -59,6 +61,7 @@ public void StringSanitizerTest(
[InlineData(false, "DO NOT LOG ME")]
[InlineData(true, null)]
[InlineData(false, null)]
[Trait("Category", PlatformSpecificHelpers.TestCategory)]
public void ExceptionSanitizerTest(
bool shouldTraceRawData,
string? possiblySensitiveData)
Expand Down

0 comments on commit 5d15568

Please sign in to comment.