77 references to CompletedWithError
Aspire.Hosting (11)
Ats\PipelineExports.cs (1)
199
"completedwitherror" or "completed_with_error" or "completed-with-error" => CompletionState.
CompletedWithError
,
Pipelines\PipelineActivityReporter.cs (2)
37
CompletionState.
CompletedWithError
=> CompletionStates.CompletedWithError,
262
CompletionState.
CompletedWithError
=> "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
98
CompletionState.
CompletedWithError
,
138
CompletionState.
CompletedWithError
,
Pipelines\ReportingStep.cs (1)
211
CompletionState.
CompletedWithError
=> $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
90
await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.
CompletedWithError
}, stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (4)
91
await step.CompleteAsync(completionText, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
107
await step.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
219
await task.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
235
await task.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (1)
383
CompletionState.
CompletedWithError
,
AzureEnvironmentResource.cs (2)
226
CompletionState.
CompletedWithError
,
396
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
303
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesInfrastructureTests.cs (1)
1119
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
Aspire.Hosting.Azure.Tests (21)
AzureAppServiceTests.cs (1)
301
step.CompletionState == CompletionState.
CompletedWithError
);
AzureContainerAppExpressEndpointTests.cs (1)
238
Assert.NotEqual(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
AzureDeployerTests.cs (19)
60
Assert.NotEqual(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
139
Assert.NotEqual(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
197
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
220
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
369
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
424
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
479
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
539
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
605
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
673
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
710
Assert.NotEqual(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
795
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
879
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1142
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1204
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1414
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1696
.Where(s => s.CompletionState == CompletionState.
CompletedWithError
)
1701
.Where(t => t.CompletionState == CompletionState.
CompletedWithError
)
2335
Assert.Equal(CompletionState.
CompletedWithError
, loginStep.CompletionState);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
465
await deployTask.CompleteAsync($"Compose deployment failed ({runtime.Name}): {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
503
await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.Name}): {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (3)
Deployment\HelmDeploymentEngine.cs (3)
277
CompletionState.
CompletedWithError
,
502
CompletionState.
CompletedWithError
,
647
CompletionState.
CompletedWithError
,
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
1303
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
1329
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
Aspire.Hosting.Rust.Tests (2)
AddRustAppPublishTests.cs (2)
411
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
466
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
931
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
1301
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
Publishing\PipelineActivityReporterTests.cs (24)
185
await step.CompleteAsync(completionText, isError ? CompletionState.
CompletedWithError
: CompletionState.Completed, CancellationToken.None);
331
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
360
await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.
CompletedWithError
}, CancellationToken.None);
393
await step3.CompleteAsync("Step 3 failed", CompletionState.
CompletedWithError
, CancellationToken.None);
468
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
517
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
551
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None); // Should also not throw (noop)
904
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
921
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
950
await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.
CompletedWithError
}, CancellationToken.None);
1254
await task.CompleteAsync("Error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1260
await task.CompleteAsync("Different error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1266
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
1302
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, CancellationToken.None);
1308
await step.CompleteAsync("Different error", CompletionState.
CompletedWithError
, CancellationToken.None);
1314
Assert.Equal(CompletionState.
CompletedWithError
, stepInternal.CompletionState);
1319
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1321
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1322
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1323
[InlineData(CompletionState.
CompletedWithError
, CompletionState.CompletedWithWarning)]
1350
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1352
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1353
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1354
[InlineData(CompletionState.
CompletedWithError
, CompletionState.CompletedWithWarning)]
Publishing\PublishingExtensionsTests.cs (1)
121
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
94
CompletionState.
CompletedWithError
,
106
CompletionState.
CompletedWithError
,
143
CompletionState.
CompletedWithError
,
169
CompletionState.
CompletedWithError
,