Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/Aspire.Hosting.Azure.Tests/AzureDeployerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -967,13 +967,15 @@ public async Task DeployAsync_ShowsEndpointOnlyForExternalEndpoints()
var internalTask = activityReporter.CompletedTasks.FirstOrDefault(t => t.TaskStatusText.Contains("internal-api"));
Assert.NotNull(internalTask.CompletionMessage);
Assert.DoesNotContain("https://", internalTask.CompletionMessage);
Assert.Equal("Successfully deployed internal-api", internalTask.CompletionMessage);
// Allow for markdown formatting (e.g., "Successfully deployed **internal-api**")
Assert.Matches(@"Successfully deployed \*?\*?internal-api\*?\*?", internalTask.CompletionMessage);

// Assert - Verify that container with no endpoints does NOT show URL in completion message
var noEndpointTask = activityReporter.CompletedTasks.FirstOrDefault(t => t.TaskStatusText.Contains("worker"));
Assert.NotNull(noEndpointTask.CompletionMessage);
Assert.DoesNotContain("https://", noEndpointTask.CompletionMessage);
Assert.Equal("Successfully deployed worker", noEndpointTask.CompletionMessage);
// Allow for markdown formatting (e.g., "Successfully deployed **worker**")
Assert.Matches(@"Successfully deployed \*?\*?worker\*?\*?", noEndpointTask.CompletionMessage);
}

private sealed class Project : IProjectMetadata
Expand Down