70 references to CompletedWithError
Aspire.Hosting (11)
Ats\PipelineExports.cs (1)
201
"completedwitherror" or "completed_with_error" or "completed-with-error" => CompletionState.
CompletedWithError
,
Pipelines\PipelineActivityReporter.cs (2)
39
CompletionState.
CompletedWithError
=> CompletionStates.CompletedWithError,
264
CompletionState.
CompletedWithError
=> "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
99
CompletionState.
CompletedWithError
,
139
CompletionState.
CompletedWithError
,
Pipelines\ReportingStep.cs (1)
215
CompletionState.
CompletedWithError
=> $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
93
await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.
CompletedWithError
}, stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (4)
96
await step.CompleteAsync(completionText, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
112
await step.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
224
await task.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
240
await task.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (1)
385
CompletionState.
CompletedWithError
,
AzureEnvironmentResource.cs (2)
217
CompletionState.
CompletedWithError
,
381
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
303
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.Tests (15)
AzureAppServiceTests.cs (1)
226
step.CompletionState == CompletionState.
CompletedWithError
);
AzureDeployerTests.cs (14)
183
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
238
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
293
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
353
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
419
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
487
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
547
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
631
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
894
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
956
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1166
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1448
.Where(s => s.CompletionState == CompletionState.
CompletedWithError
)
1453
.Where(t => t.CompletionState == CompletionState.
CompletedWithError
)
2083
Assert.Equal(CompletionState.
CompletedWithError
, loginStep.CompletionState);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
439
await deployTask.CompleteAsync($"Compose deployment failed ({runtime.Name}): {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
477
await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.Name}): {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (3)
Deployment\HelmDeploymentEngine.cs (3)
274
CompletionState.
CompletedWithError
,
500
CompletionState.
CompletedWithError
,
627
CompletionState.
CompletedWithError
,
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
971
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
997
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
Aspire.Hosting.Rust.Tests (2)
AddRustAppPublishTests.cs (2)
413
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
468
Assert.Equal(CompletionState.
CompletedWithError
, reporter.ResultCompletionState);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
903
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
1273
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
Publishing\PipelineActivityReporterTests.cs (24)
187
await step.CompleteAsync(completionText, isError ? CompletionState.
CompletedWithError
: CompletionState.Completed, CancellationToken.None);
333
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
362
await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.
CompletedWithError
}, CancellationToken.None);
395
await step3.CompleteAsync("Step 3 failed", CompletionState.
CompletedWithError
, CancellationToken.None);
470
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
519
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
553
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None); // Should also not throw (noop)
906
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
923
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
952
await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.
CompletedWithError
}, CancellationToken.None);
1256
await task.CompleteAsync("Error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1262
await task.CompleteAsync("Different error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1268
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
1304
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, CancellationToken.None);
1310
await step.CompleteAsync("Different error", CompletionState.
CompletedWithError
, CancellationToken.None);
1316
Assert.Equal(CompletionState.
CompletedWithError
, stepInternal.CompletionState);
1321
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1323
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1324
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1325
[InlineData(CompletionState.
CompletedWithError
, CompletionState.CompletedWithWarning)]
1352
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1354
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1355
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1356
[InlineData(CompletionState.
CompletedWithError
, CompletionState.CompletedWithWarning)]
Publishing\PublishingExtensionsTests.cs (1)
123
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
88
CompletionState.
CompletedWithError
,
100
CompletionState.
CompletedWithError
,
137
CompletionState.
CompletedWithError
,
163
CompletionState.
CompletedWithError
,