CCM-15258 - Additional integration tests and helper scripts#86
Open
mjewildnhs wants to merge 15 commits intomainfrom
Open
CCM-15258 - Additional integration tests and helper scripts#86mjewildnhs wants to merge 15 commits intomainfrom
mjewildnhs wants to merge 15 commits intomainfrom
Conversation
rhyscoxnhs
approved these changes
Apr 1, 2026
cgitim
approved these changes
Apr 2, 2026
tests/integration/README.md
Outdated
Comment on lines
+17
to
+68
| ## Run Integration Tests Locally | ||
|
|
||
| Run all integration tests against a deployed environment: | ||
|
|
||
| ```sh | ||
| ENVIRONMENT=<env> AWS_PROFILE=<profile> make test-integration-local | ||
| ``` | ||
|
|
||
| Run a single test file: | ||
|
|
||
| ```sh | ||
| ENVIRONMENT=<env> AWS_PROFILE=<profile> make test-integration-local TEST_FILE=metrics | ||
| ``` | ||
|
|
||
| Run a single test name: | ||
|
|
||
| ```sh | ||
| ENVIRONMENT=<env> AWS_PROFILE=<profile> make test-integration-local TEST_NAME="should emit processing metrics when a valid event is fully processed" | ||
| ``` | ||
|
|
||
| Combine file + test name: | ||
|
|
||
| ```sh | ||
| ENVIRONMENT=<env> AWS_PROFILE=<profile> make test-integration-local TEST_FILE=metrics TEST_NAME="should emit processing metrics when a valid event is fully processed" | ||
| ``` | ||
|
|
||
| ## Debug an Environment | ||
|
|
||
| Use debug actions to inspect queues, tail logs, and check pipe state: | ||
|
|
||
| ```sh | ||
| ENVIRONMENT=<env> AWS_PROFILE=<profile> make test-integration-debug queue-status | ||
| ``` | ||
|
|
||
| Tail webhook logs: | ||
|
|
||
| ```sh | ||
| ENVIRONMENT=<env> AWS_PROFILE=<profile> make test-integration-debug tail-webhook | ||
| ``` | ||
|
|
||
| Tail webhook logs filtered to a specific message ID: | ||
|
|
||
| ```sh | ||
| ENVIRONMENT=<env> AWS_PROFILE=<profile> LOG_FILTER=SOME-MESSAGE-ID make test-integration-debug tail-webhook | ||
| ``` | ||
|
|
||
| Other available actions: | ||
|
|
||
| - `queue-peek` | ||
| - `tail-transform` | ||
| - `tail-pipe` | ||
| - `pipe-state` |
Contributor
There was a problem hiding this comment.
How to run the tool is quite confusing. I think we could do with a list of "tools" and then a separate (small) section on each, giving an explanation about what it is for and examples of how to run it? At the moment, you have to run scripts/tests/integration-debug.sh to get that info, which is not obvious.
…esn't exist nothing would work
8567c8b to
645dcb7
Compare
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.
Description
Adds some more integration tests:
Adds helper scripts for running/debugging tests locally
Use test start time in log filter to avoid issue bug where log results require pagination.
Context
Type of changes
Checklist
Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.