ServiceControl tests are designed to test difference components and behaviors. This document outlines the tests in the respository and what they are meant to test.
ServiceControl compoonents have specific unit tests projects verifying their behaviors and API.
Packaging tests check:
- Folder structure and content of the packaging process output.
- That packaged assembly versions match.
Installation engine tests run partial installations and checks:
- That the generated configuration is correct.
- That transport and persistence are correctly extracted.
Persistence tests check assumption at the persistence seam level by exercising each persister.
Transport tests are done by executing the transport test suite for each transport.
Run ServiceControl full version and use the HTTP API to validate results. LearningTransport is used for all tests.
Multi-instance tests validate the interaction between different ServiceControl instances. ServiceControl instances are run in-memory in the same process. LearningTransport is used for all tests.
Containers images generated for all builds are pushed to the GitHub container registry. Once pushed all images are tested by spinning them all up for each supported transport.
Containers built by a PR and stored on GitHub Container Registry can be tested locally:
- Authenticate to the GitHub Container Registry using a personal access token.
- In the terminal, navigate to []
/docs/test-ghcr-tag
](/docs/test/ghcr-tag). - Edit the
.env
file to specify the PR-based tag (in the formpr-####
) to test. - Run
docker compose up -d
. - Services will be avialable at the following URLs:
- RabbitMQ Management (Login:
guest
/guest
) - RavenDB
- ServiceControl API
- Audit API
- Monitoring API
- ServicePulse (latest from Docker Hub)
- RabbitMQ Management (Login:
- Tear down services using
docker compose down
.