73 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)
381
CompletionState.
CompletedWithError
,
AzureEnvironmentResource.cs (2)
213
CompletionState.
CompletedWithError
,
377
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
303
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesInfrastructureTests.cs (1)
1091
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
Aspire.Hosting.Azure.Tests (17)
AzureAppServiceTests.cs (1)
277
step.CompletionState == CompletionState.
CompletedWithError
);
AzureContainerAppExpressEndpointTests.cs (1)
234
Assert.NotEqual(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
AzureDeployerTests.cs (15)
180
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
235
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
290
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
350
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
416
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
484
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
521
Assert.NotEqual(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
606
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
690
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
953
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1015
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1225
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1507
.Where(s => s.CompletionState == CompletionState.
CompletedWithError
)
1512
.Where(t => t.CompletionState == CompletionState.
CompletedWithError
)
2146
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
,
503
CompletionState.
CompletedWithError
,
648
CompletionState.
CompletedWithError
,
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
1074
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
1100
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)
901
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
1271
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)
85
CompletionState.
CompletedWithError
,
97
CompletionState.
CompletedWithError
,
134
CompletionState.
CompletedWithError
,
160
CompletionState.
CompletedWithError
,