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)
37CompletionState.CompletedWithError => CompletionStates.CompletedWithError, 262CompletionState.CompletedWithError => "Pipeline completed with errors",
Pipelines\PipelineStepHelpers.cs (2)
98CompletionState.CompletedWithError, 138CompletionState.CompletedWithError,
Pipelines\ReportingStep.cs (1)
211CompletionState.CompletedWithError => $"{Title} completed with errors",
Publishing\PipelineExecutor.cs (1)
90await activityReporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = ex.Message, CompletionState = CompletionState.CompletedWithError }, stoppingToken).ConfigureAwait(false);
Publishing\PublishingExtensions.cs (4)
91await step.CompleteAsync(completionText, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 107await step.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 219await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false); 235await task.CompleteAsync(errorMessage, CompletionState.CompletedWithError, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (3)
AzureBicepResource.cs (1)
381CompletionState.CompletedWithError,
AzureEnvironmentResource.cs (2)
213CompletionState.CompletedWithError, 377CompletionState.CompletedWithError,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentResource.cs (1)
303CompletionState.CompletedWithError,
Aspire.Hosting.Azure.Kubernetes.Tests (1)
AzureKubernetesInfrastructureTests.cs (1)
1091Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState);
Aspire.Hosting.Azure.Tests (17)
AzureAppServiceTests.cs (1)
277step.CompletionState == CompletionState.CompletedWithError);
AzureContainerAppExpressEndpointTests.cs (1)
234Assert.NotEqual(CompletionState.CompletedWithError, reporter.ResultCompletionState);
AzureDeployerTests.cs (15)
180Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 235Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 290Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 350Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 416Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 484Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 521Assert.NotEqual(CompletionState.CompletedWithError, reporter.ResultCompletionState); 606Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 690Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 953Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 1015Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 1225Assert.NotEqual(CompletionState.CompletedWithError, mockActivityReporter.ResultCompletionState); 1507.Where(s => s.CompletionState == CompletionState.CompletedWithError) 1512.Where(t => t.CompletionState == CompletionState.CompletedWithError) 2146Assert.Equal(CompletionState.CompletedWithError, loginStep.CompletionState);
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
465await deployTask.CompleteAsync($"Compose deployment failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false); 503await deployTask.CompleteAsync($"Compose shutdown failed ({runtime.Name}): {ex.Message}", CompletionState.CompletedWithError, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (3)
Deployment\HelmDeploymentEngine.cs (3)
277CompletionState.CompletedWithError, 503CompletionState.CompletedWithError, 648CompletionState.CompletedWithError,
Aspire.Hosting.Kubernetes.Tests (2)
KubernetesPublisherTests.cs (2)
1074Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState); 1100Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState);
Aspire.Hosting.Rust.Tests (2)
AddRustAppPublishTests.cs (2)
411Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState); 466Assert.Equal(CompletionState.CompletedWithError, reporter.ResultCompletionState);
Aspire.Hosting.Tests (27)
Pipelines\DistributedApplicationPipelineTests.cs (2)
901Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError); 1271Assert.Contains(reporter.CompletedSteps, step => step.StepTitle == "failing-step" && step.CompletionState == CompletionState.CompletedWithError);
Publishing\PipelineActivityReporterTests.cs (24)
185await step.CompleteAsync(completionText, isError ? CompletionState.CompletedWithError : CompletionState.Completed, CancellationToken.None); 331[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 360await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.CompletedWithError }, CancellationToken.None); 393await step3.CompleteAsync("Step 3 failed", CompletionState.CompletedWithError, CancellationToken.None); 468await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 517await step.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); 551await task.CompleteAsync("Error", CompletionState.CompletedWithError, cancellationToken: CancellationToken.None); // Should also not throw (noop) 904Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 921[InlineData(CompletionState.CompletedWithError, "Pipeline completed with errors", true)] 950await reporter.CompletePublishAsync(new PublishCompletionOptions { CompletionMessage = expectedStatusText, CompletionState = CompletionState.CompletedWithError }, CancellationToken.None); 1254await task.CompleteAsync("Error message", CompletionState.CompletedWithError, CancellationToken.None); 1260await task.CompleteAsync("Different error message", CompletionState.CompletedWithError, CancellationToken.None); 1266Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState); 1302await step.CompleteAsync("Error", CompletionState.CompletedWithError, CancellationToken.None); 1308await step.CompleteAsync("Different error", CompletionState.CompletedWithError, CancellationToken.None); 1314Assert.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)
121Assert.Equal(CompletionState.CompletedWithError, taskInternal.CompletionState);
Pipelines.Library (4)
DistributedApplicationPipelineExtensions.cs (4)
85CompletionState.CompletedWithError, 97CompletionState.CompletedWithError, 134CompletionState.CompletedWithError, 160CompletionState.CompletedWithError,