Skip to content

CCM-15258 - Additional integration tests and helper scripts#86

Open
mjewildnhs wants to merge 15 commits intomainfrom
feature/CCM-15258-more-tests
Open

CCM-15258 - Additional integration tests and helper scripts#86
mjewildnhs wants to merge 15 commits intomainfrom
feature/CCM-15258-more-tests

Conversation

@mjewildnhs
Copy link
Copy Markdown
Contributor

@mjewildnhs mjewildnhs commented Mar 30, 2026

Description

Adds some more integration tests:

  • Assert DLQ for every target
  • Assert DLQ alarm for every target DLQ
  • Assert callback received for subscriptions that fan out to multiple targets
  • Remove redundant infrastructure exists test
    • Was only needed while the S3 config bucket wasn't being used in anger (which it now is)

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

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

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.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@mjewildnhs mjewildnhs changed the title CCM-15258 - Additional integration tests CCM-15258 - Additional integration tests and helper scripts Mar 31, 2026
@mjewildnhs mjewildnhs marked this pull request as ready for review March 31, 2026 13:24
@mjewildnhs mjewildnhs requested a review from a team as a code owner March 31, 2026 13:24
@mjewildnhs mjewildnhs requested review from cgitim and rhyscoxnhs March 31, 2026 15:13
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`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mjewildnhs mjewildnhs force-pushed the feature/CCM-15258-more-tests branch from 8567c8b to 645dcb7 Compare April 2, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants