Skip to content

test(config): unit tests and golden fixtures for the update_config migration (5/6)#188

Draft
marceloneppel wants to merge 1 commit into
feature/migrate-update-configfrom
skl-01-update-config-tests
Draft

test(config): unit tests and golden fixtures for the update_config migration (5/6)#188
marceloneppel wants to merge 1 commit into
feature/migrate-update-configfrom
skl-01-update-config-tests

Conversation

@marceloneppel

@marceloneppel marceloneppel commented Jul 20, 2026

Copy link
Copy Markdown
Member

Issue

The update_config migration's unit tests and patroni-template golden fixtures were bundled with the code changes, pushing each code PR in the stack past the review-size target.

Solution

Split the tests out of the code PRs so each code change lands small and self-contained, with the tests landing together here on top of the code PRs. Only the minimal edits to existing tests needed to keep each code PR green stayed with the code; every new test and both golden fixtures are here.

Covers the peer-state config/user hash accessors (#181), PostgreSQL parameter building and resource introspection (#182), the substrate-conditional patroni template and its byte-identical golden render matrix (#183), and the update_config orchestration (#180).

Checklist

  • I have added or updated any relevant documentation.
  • I have cleaned any remaining cloud resources from my accounts.

@marceloneppel marceloneppel changed the title test(config): unit tests and golden fixtures for the update_config migration test(config): unit tests and golden fixtures for the update_config migration (5/5) Jul 20, 2026
@marceloneppel marceloneppel changed the title test(config): unit tests and golden fixtures for the update_config migration (5/5) test(config): unit tests and golden fixtures for the update_config migration (5/6) Jul 20, 2026
@marceloneppel
marceloneppel force-pushed the feature/migrate-update-config branch from 912b1a4 to 9efcc0a Compare July 20, 2026 19:04
@marceloneppel
marceloneppel force-pushed the skl-01-update-config-tests branch from 808b479 to 373a525 Compare July 20, 2026 19:04
@marceloneppel
marceloneppel force-pushed the feature/migrate-update-config branch from 9efcc0a to e80e84f Compare July 20, 2026 20:25
@marceloneppel
marceloneppel force-pushed the skl-01-update-config-tests branch from 373a525 to 558c61f Compare July 20, 2026 20:25
…gration

Split the migration's unit tests and patroni-template golden fixtures out of the code changes so each code change lands as a small, self-contained PR, with the tests landing together on top of the stack. Covers the peer-state config/user hash accessors, PostgreSQL parameter building and resource introspection, the substrate-conditional patroni template, and the update_config orchestration.

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@marceloneppel
marceloneppel force-pushed the feature/migrate-update-config branch from e80e84f to 113b21b Compare July 21, 2026 17:46
@marceloneppel
marceloneppel force-pushed the skl-01-update-config-tests branch from 558c61f to ba946a4 Compare July 21, 2026 17:47
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.

1 participant