59 references to CompletedWithError
Aspire.Hosting (11)
Ats\PipelineExports.cs (1)
162
"completedwitherror" or "completed_with_error" or "completed-with-error" => CompletionState.
CompletedWithError
,
Pipelines\PipelineActivityReporter.cs (2)
37
CompletionState.
CompletedWithError
=> CompletionStates.CompletedWithError,
251
CompletionState.
CompletedWithError
=> "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
99
CompletionState.
CompletedWithError
,
139
CompletionState.
CompletedWithError
,
Pipelines\ReportingStep.cs (1)
203
CompletionState.
CompletedWithError
=> $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
84
await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.
CompletedWithError
}, stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (4)
95
await step.CompleteAsync(completionText, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
111
await step.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
223
await task.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
239
await task.CompleteAsync(errorMessage, CompletionState.
CompletedWithError
, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
AzureBicepResource.cs (1)
360
CompletionState.
CompletedWithError
,
AzureEnvironmentResource.cs (1)
184
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
207
CompletionState.
CompletedWithError
,
Aspire.Hosting.Azure.Tests (12)
AzureAppServiceTests.cs (1)
111
step.CompletionState == CompletionState.
CompletedWithError
);
AzureDeployerTests.cs (11)
176
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
231
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
286
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
346
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
412
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
508
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
717
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
779
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
989
Assert.NotEqual(CompletionState.
CompletedWithError
, mockActivityReporter.ResultCompletionState);
1241
.Where(s => s.CompletionState == CompletionState.
CompletedWithError
)
1246
.Where(t => t.CompletionState == CompletionState.
CompletedWithError
)
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
278
await deployTask.CompleteAsync($"Docker Compose deployment failed: {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
337
await deployTask.CompleteAsync($"Docker Compose shutdown failed: {ex.Message}", CompletionState.
CompletedWithError
, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
874
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
1252
Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.
CompletedWithError
);
Publishing\PipelineActivityReporterTests.cs (24)
137
await step.CompleteAsync(completionText, isError ? CompletionState.
CompletedWithError
: CompletionState.Completed, CancellationToken.None);
283
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
312
await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.
CompletedWithError
}, CancellationToken.None);
345
await step3.CompleteAsync("Step 3 failed", CompletionState.
CompletedWithError
, CancellationToken.None);
420
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
469
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None);
503
await task.CompleteAsync("Error", CompletionState.
CompletedWithError
, cancellationToken: CancellationToken.None); // Should also not throw (noop)
792
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
809
[InlineData(CompletionState.
CompletedWithError
, "Pipeline completed with errors", true)]
838
await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.
CompletedWithError
}, CancellationToken.None);
1142
await task.CompleteAsync("Error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1148
await task.CompleteAsync("Different error message", CompletionState.
CompletedWithError
, CancellationToken.None);
1154
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
1190
await step.CompleteAsync("Error", CompletionState.
CompletedWithError
, CancellationToken.None);
1196
await step.CompleteAsync("Different error", CompletionState.
CompletedWithError
, CancellationToken.None);
1202
Assert.Equal(CompletionState.
CompletedWithError
, stepInternal.CompletionState);
1207
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1209
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1210
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1211
[InlineData(CompletionState.
CompletedWithError
, CompletionState.CompletedWithWarning)]
1238
[InlineData(CompletionState.Completed, CompletionState.
CompletedWithError
)]
1240
[InlineData(CompletionState.CompletedWithWarning, CompletionState.
CompletedWithError
)]
1241
[InlineData(CompletionState.
CompletedWithError
, CompletionState.Completed)]
1242
[InlineData(CompletionState.
CompletedWithError
, CompletionState.CompletedWithWarning)]
Publishing\PublishingExtensionsTests.cs (1)
121
Assert.Equal(CompletionState.
CompletedWithError
, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
88
CompletionState.
CompletedWithError
,
100
CompletionState.
CompletedWithError
,
137
CompletionState.
CompletedWithError
,
163
CompletionState.
CompletedWithError
,