Skip to content

test(async-replication): cover the data-plane manager (6/8) - #282

Draft
marceloneppel wants to merge 1 commit into
async-replication-5-wiringfrom
async-replication-6-manager-tests
Draft

test(async-replication): cover the data-plane manager (6/8)#282
marceloneppel wants to merge 1 commit into
async-replication-5-wiringfrom
async-replication-6-manager-tests

Conversation

@marceloneppel

Copy link
Copy Markdown
Member

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_data and _update_primary_cluster_data databag effects, plus the _safe_databag_get helper. Framework hooks stay disabled in the fixture: these tests exercise the data plane directly.

@marceloneppel
marceloneppel force-pushed the async-replication-5-wiring branch from 2e72d8d to 7cec1a1 Compare September 4, 2026 23:07
@marceloneppel
marceloneppel force-pushed the async-replication-6-manager-tests branch from ed5e75b to 0ae0f70 Compare September 4, 2026 23:07
@marceloneppel
marceloneppel force-pushed the async-replication-5-wiring branch from 7cec1a1 to fcb3a46 Compare September 4, 2026 23:22
@marceloneppel
marceloneppel force-pushed the async-replication-6-manager-tests branch from 0ae0f70 to 87ab9ba Compare September 4, 2026 23:23
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