Skip to content

CI: Replication problem detection tests #89

@renecannao

Description

@renecannao

Summary

Orchestrator's core value is detecting replication problems. We have no tests that verify problem detection works correctly.

Proposed Tests

  • Stop replication on a replica, verify orchestrator detects ReplicationStopped
  • Introduce replication lag (lock tables on replica), verify lag detection
  • Set a replica to read_only=0 (when it should be RO), verify problem detected
  • Verify /api/problems endpoint returns detected problems with correct analysis
  • Clear the problem (restart replication), verify it disappears from problems list

Acceptance Criteria

  • At least 3 problem types are tested (stopped replication, lag, read_only mismatch)
  • Tests verify problems appear AND clear correctly
  • Tests integrated into CI workflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions