Skip to content

Functional testing: Tier A — Core smoke test with real services #43

Description

@renecannao

Tier A: Core Smoke Test

Stand up a real environment with Docker containers and verify basic functionality of our code against actual running services.

Infrastructure

  • MySQL master container (port 3307)
  • MySQL replica 1 container (port 3308)
  • MySQL replica 2 container (port 3309)
  • Replication configured and running between master → replicas
  • ProxySQL container (admin port 6032, traffic port 6033)
  • ProxySQL configured with writer hostgroup 10 (master) and reader hostgroup 20 (replicas)
  • Orchestrator built from current master and running

Smoke Tests

  • Discovery: Orchestrator discovers the MySQL topology (master + 2 replicas)
  • Web UI: Orchestrator web UI loads at http://localhost:3000
  • API v1: /api/clusters returns discovered cluster
  • API v1: /api/cluster/{alias} returns instances
  • API v2: /api/v2/clusters returns structured response
  • API v2: /api/v2/status returns orchestrator status
  • Prometheus: /metrics returns valid Prometheus metrics
  • Health endpoints: /health/live returns 200, /health/ready returns 200
  • ProxySQL CLI: orchestrator -c proxysql-test connects successfully
  • ProxySQL CLI: orchestrator -c proxysql-servers shows the MySQL topology
  • ProxySQL topology API: /api/proxysql/servers returns server list

Findings

(To be updated as tests run)

Blockers

(To be updated if issues found)

Prerequisite for #44 (Tier B) and #45 (Tier C).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions