Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected override void EndProcessing()
// De-serialize the orchestration context
JsonSerializerSettings serializerSettings = new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.All
TypeNameHandling = TypeNameHandling.Auto
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is a draft, but I recommend being very careful with this change. I remember spending a fair bit of time trying to figure out which enum value to provide here, and finding that .All was safest. But the details escape me so take it with a grain of salt.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'm totally not going to proceed with this change, this was just a quick experiment to see which tests will fail and how they will fail.

};

var context = JsonConvert.DeserializeObject<OrchestrationContext>(OrchestrationContext, serializerSettings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,10 @@ await ValidateDurableWorkflowResults(
initialResponse,
validateIntermediateResponse: (dynamic intermediateStatusResponseBody) =>
{
Assert.Equal("Suspended", (string)intermediateStatusResponseBody.runtimeStatus);
Assert.Equal("Suspend orchestrator", (string)intermediateStatusResponseBody.output);
var runtimeStatus = (string)intermediateStatusResponseBody.runtimeStatus;
Assert.True(
runtimeStatus == "Running" || runtimeStatus == "Suspended",
$"Unexpected runtime status: {runtimeStatus}");
});

await ValidateDurableWorkflowResults(
Expand Down
5 changes: 5 additions & 0 deletions test/E2E/Start-E2ETest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ $Env:AZURE_FUNCTIONS_ENVIRONMENT = "Development"
$env:ExternalDurablePowerShellSDK = $true
Write-Host "Set ExternalDurablePowerShellSDK environment variable to $env:ExternalDurablePowerShellSDK"

if (-not $env:AzureWebJobsStorage) {
$env:AzureWebJobsStorage = "UseDevelopmentStorage=true"
Write-Host "Set AzureWebJobsStorage environment variable to $env:AzureWebJobsStorage"
}

$arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant()
if ($IsWindows) {
$FUNC_EXE_NAME = "$FUNC_CMDLET_NAME.exe"
Expand Down