Summary
Current smoke tests only verify API endpoints return HTTP 200. We need tests that validate orchestrator correctly discovers and represents the actual replication topology.
Proposed Tests
- Verify discovered cluster has correct number of instances (3)
- Verify master is identified correctly (read_only=0, no master key)
- Verify replicas are identified correctly (read_only=1, correct master key)
- Verify GTID positions are being read
- Verify replication lag is being measured (Seconds_Behind_Master)
- Verify uptime and last-checked timestamps are recent
- Verify cluster alias detection works (DetectClusterAliasQuery)
- Compare orchestrator's view of topology against direct MySQL queries
Acceptance Criteria
Summary
Current smoke tests only verify API endpoints return HTTP 200. We need tests that validate orchestrator correctly discovers and represents the actual replication topology.
Proposed Tests
Acceptance Criteria