Skip to content

Conversation

DamianEdwards
Copy link
Member

@DamianEdwards DamianEdwards commented Apr 2, 2024

Still a work in progress.

Updates the samples for preview.5 and adds integration tests to verify that all samples startup successfully and health checks endpoints in projects return healthy status. Lots of code here to make the integration testing possible including waiting for resources to successfully start, capturing resource console logs and AppHost ILogger logs, and asserting against both that no errors occurred, and more randomization to ensure proper test execution and isolation including parameter values (to ensuring they have values) and volume names. Some of this should make its way back into Aspire.Hosting.Testing at some point.

The Dapr sample still fails the integration tests due to a known issue that should be fixed by dotnet/aspire#3305 but that's for preview.6

All samples have been converted to use HTTPS inline with changes in preview.5. Note that the Node.js sample needed to be changed to configure Node.js (as a client) to work with the ASP.NET Core HTTPS dev cert which we should likely improve in the future (see dotnet/aspire#3324). The SPA apps sample (AspireWithJavaScript) is using HTTPS for the .NET pieces but the SPA dev servers are all running with HTTP still.

Samples using SQL Server have had workarounds for dotnet/aspire#1023 applied.

Before merging will need the final preview.5 package version updated and nuget.config feeds reverted.

Fixes #172
Fixes #168
Fixes #164

@DamianEdwards DamianEdwards linked an issue Apr 2, 2024 that may be closed by this pull request
@radical
Copy link
Member

radical commented Apr 5, 2024

Could the non-test changes be split out to a separate PR, and merged first?

@DamianEdwards
Copy link
Member Author

Could the non-test changes be split out to a separate PR, and merged first?

Yes? But I'd kinda like to get some test coverage as part of the preview.5 push honestly.

@DamianEdwards DamianEdwards marked this pull request as ready for review April 5, 2024 16:19
@DamianEdwards DamianEdwards requested a review from ReubenBond April 5, 2024 18:59
@davidfowl davidfowl removed the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Apr 10, 2024
@davidfowl davidfowl merged commit fb4adeb into main Apr 10, 2024
@davidfowl davidfowl deleted the preview.5 branch April 10, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment