Skip to content

Initial Dynamo backed Store tests#4697

Open
tonytw1 wants to merge 11 commits intoguardian:mainfrom
eelpie:eelpie/dynamo-store-tests-20260406
Open

Initial Dynamo backed Store tests#4697
tonytw1 wants to merge 11 commits intoguardian:mainfrom
eelpie:eelpie/dynamo-store-tests-20260406

Conversation

@tonytw1
Copy link
Copy Markdown
Contributor

@tonytw1 tonytw1 commented Apr 6, 2026

What does this change?

Provides some basic tests of the Dynamo backed Stores.
Follows the test container pattern used in the Elastic tests.

For ease of testing, refactor the constructors of the Stores to accept the specific required dependencies rather than CommonConfig.

This sets up for the rewrite of UsageTable into sdk v2 format.

How should a reviewer test this change?

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@tonytw1 tonytw1 changed the title Eelpie/dynamo store tests 20260406 Initial Dynamo backed Store tests Apr 6, 2026
@andrew-nowak andrew-nowak added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Apr 7, 2026
@tonytw1 tonytw1 force-pushed the eelpie/dynamo-store-tests-20260406 branch from c2b0edd to bc7c73d Compare April 7, 2026 21:43
@tonytw1
Copy link
Copy Markdown
Contributor Author

tonytw1 commented Apr 7, 2026

Rebased picking up recent childMetaData field on MediaUsage.

@tonytw1 tonytw1 marked this pull request as ready for review April 7, 2026 22:03
@tonytw1 tonytw1 requested a review from a team as a code owner April 7, 2026 22:04
tonytw1 added 11 commits April 10, 2026 20:31
For simpler test setup ImageCollectionsStore takes specific dependencies rather than all of CommonConfig.
…ndencies rather than all of CommonConfig.

Change the constructor parameters of EditsStore, SyndicationStore and UsageTable to take Dynamo client(s) and table name only.

# Conflicts:
#	usage/app/UsageComponents.scala
@tonytw1 tonytw1 force-pushed the eelpie/dynamo-store-tests-20260406 branch from d3bca08 to 2998e88 Compare April 10, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants