test(async-replication): cover the data-plane manager (6/8) - #282
Draft
marceloneppel wants to merge 1 commit into
Draft
test(async-replication): cover the data-plane manager (6/8)#282marceloneppel wants to merge 1 commit into
marceloneppel wants to merge 1 commit into
Conversation
marceloneppel
force-pushed
the
async-replication-5-wiring
branch
from
September 4, 2026 23:07
2e72d8d to
7cec1a1
Compare
marceloneppel
force-pushed
the
async-replication-6-manager-tests
branch
from
September 4, 2026 23:07
ed5e75b to
0ae0f70
Compare
marceloneppel
force-pushed
the
async-replication-5-wiring
branch
from
September 4, 2026 23:22
7cec1a1 to
fcb3a46
Compare
marceloneppel
force-pushed
the
async-replication-6-manager-tests
branch
from
September 4, 2026 23:23
0ae0f70 to
87ab9ba
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.
Issue
Covers the data-plane manager ported in 2/8, before the charms adopt the module and delete their own tests.
Solution
Harness-based unit tests (parametrised over vm/k8s by the suite's autouse fixture): primary-cluster and counter resolution incl. ModelError-safe databag reads, endpoint getters,
get_partner_addresses, the by-id secret flows (persisted id, leader creation, label-era adoption, consumer credential sync),clear_stale_promotion(non-leader/empty/zero/stale/mirrored/unreadable-mirror cases),update_async_replication_dataand_update_primary_cluster_datadatabag effects, plus the_safe_databag_gethelper. Framework hooks stay disabled in the fixture: these tests exercise the data plane directly.