Repository navigation
Add container tests that run the testing tool smoke checks against packaged containers - #6225
Merged
Merged
Conversation
…ckaged containers Adds ServiceControl.Container.Tests, which starts the primary, audit and monitoring containers from an image tag with caller-supplied settings and runs the testing tool smoke checks in-process against them. Adds PostgreSQL and Amazon SQS transports and a RequireTransport option to the testing tool.
Move the container tests from src/ServiceControl.Container.Tests to tools/testing-tool/TestingTool.ContainerSmokeTests so they build and run with the testing tool solution. Run the custom-check smoke check through the NServiceBus.CustomChecks plugin, add an error-large-body check, and document the container tests.
rbev
marked this pull request as ready for review
December 2, 2026 08:17
johnsimons
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
TestingTool.ContainerSmokeTestsalongside the testing tool. It starts the packaged ServiceControl primary, audit, and monitoring images, hosts the testing tool in-process, and checks the APIs using the same transport as the containers.SC_CONTAINER_TESTS_TAGandSC_CONTAINER_TESTS_REGISTRY. The container tests are skipped when the tag is unset..envor.jsonfile, per-instance environment variables, and bind mounts. The transport service, database, and any required cloud account or bucket are supplied separately.TestingTool__RequireTransportoption to prevent an unintended Learning transport fallback.NServiceBus.CustomChecksand verifies a failure-to-pass transition through the ServiceControl API.The project belongs to
tools/testing-tool/TestingTool.slnx, not the main ServiceControl solution. The existing testing-tool CI workflow runs its settings tests without enabling the container tests.tools/testing-tool/TestingTool.ContainerSmokeTests/README.mddocuments configuration, local PostgreSQL and filesystem setup, SQS and S3 setup, credential mounts, resource prefixes, and cleanup. The testing-tool README anddocs/testing.mdlink to it.Guidelines: none applies to the implementation and project relocation.