Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/test-ghcr-tag-aspire/AppHost.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#:sdk Aspire.AppHost.Sdk@13.4.0
#:sdk Aspire.AppHost.Sdk@13.4.5
#:package Particular.Aspire.Hosting.ServicePlatform@1.*
#:package Aspire.Hosting.RabbitMQ@13.4.0
#:package Aspire.Hosting.RabbitMQ@13.4.5

using Aspire.Hosting;
using Particular.Aspire.Hosting.ServicePlatform.Transport;
Expand Down
8 changes: 4 additions & 4 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ Containers built by a PR and stored on GitHub Container Registry can be tested l
* [ServicePulse (latest from Docker Hub)](http://localhost:9090)
6. Tear down services using `docker compose down`.


## Container tests using Aspire

The [Particular.Aspire.Hosting.ServicePlatform](https://github.com/Particular/Particular.Aspire.Hosting.ServicePlatform) package integrates the Particular Platform with the Aspire hosting platform. This package configures environment variables to attach the platform. There is a single file apphost in [`test-ghcr-tag-aspire`](/docs/test-ghcr-tag-aspire) to start up serviceconrol from a prerelease container image.
Expand All @@ -73,12 +72,13 @@ Containers built by a PR and stored on GitHub Container Registry can be tested l

1. Set up your github container registry credentials as described in the [Container tests](#container-tests) section above.
2. Make sure you have the [Aspire CLI installed](https://aspire.dev/get-started/install-cli/).
3. Run `aspire run docs/test-ghcr-tag-aspire/AppHost.cs -- tag` to start the application, where `tag` is the PR-based tag (in the form `pr-####`) to test. If no tag is provided, it will default to the `latest` tag.
4. Once running you can open the dashboard from the link in the terminal, this dashboard will provide the assigned ports for each service.
3. Run `aspire update` to ensure that the testing AppHost file `docs/test-ghcr-tag-aspire/AppHost.cs` is running the latest aspire SDK and RabbitMQ integration package.
4. Run `aspire run docs/test-ghcr-tag-aspire/AppHost.cs -- tag` to start the application, where `tag` is the PR-based tag (in the form `pr-####`) to test. If no tag is provided, it will default to the `latest` tag.
5. Once running you can open the dashboard from the link in the terminal, this dashboard will provide the assigned ports for each service.
* RabbitMQ Management (Login: `guest`/`guest`)
* RavenDB
* ServiceControl API
* Audit API
* Monitoring API
* ServicePulse (latest from Docker Hub)
5. Aspire will automatically tear down the application when you exit the CLI process.
6. Aspire will automatically tear down the application when you exit the CLI process.
Loading