Skip to content

Add real-emulator e2e tests for snapshot load --merge strategies - #397

Merged
anisaoshafi merged 1 commit into
mainfrom
devx-946-add-snapshot-merge-tests
Jul 21, 2026
Merged

Add real-emulator e2e tests for snapshot load --merge strategies#397
anisaoshafi merged 1 commit into
mainfrom
devx-946-add-snapshot-merge-tests

Conversation

@peter-smith-phd

@peter-smith-phd peter-smith-phd commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a real end-to-end test for lstk snapshot load --merge=overwrite|account-region-merge|service-merge against a real LocalStack container — the existing snapshot load tests only exercise a mocked emulator and never touch the actual merge round-trip.

Builds two snapshots files containing slightly-overlapping content. The test loads the first snapshot, merges in the second snapshot (using the three different strategies), then validates the output. lstk aws, lstk save, lstk load --merge=<strategy> are all used, just as the user would use them.

Closes DEVX-946.

Covers overwrite, account-region-merge, and service-merge against a real LocalStack container instead of the mocked emulator the existing snapshot tests use, which never exercised the actual merge round-trip (DEVX-946). Pinned to the "dev" image tag since the service-merge fix isn't in a "latest" release yet.
@peter-smith-phd peter-smith-phd added docs: skip Pull request does not require documentation changes semver: patch labels Jul 20, 2026
@peter-smith-phd
peter-smith-phd marked this pull request as ready for review July 20, 2026 22:03
@peter-smith-phd
peter-smith-phd requested a review from a team as a code owner July 20, 2026 22:03

@anisaoshafi anisaoshafi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Quite useful 💯, thanks for the comprehensive test

@anisaoshafi
anisaoshafi merged commit aa8440b into main Jul 21, 2026
18 of 21 checks passed
@anisaoshafi
anisaoshafi deleted the devx-946-add-snapshot-merge-tests branch July 21, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants