Doctor E2E
End-to-end health harness for the movethewheels product. This repo contains
backend E2E tests that exercise wspace-movethewheels-svc through the
workspace public gateway.
Repository
- GitHub:
algoshred/movethewheels-doctor - Service under test:
wspace-movethewheels-svc - Gateway: workspace public gateway (defaults to prod)
Environment selection
The suite defaults to production. Select the target with MOVETHEWHEELS_TARGET:
| Target | Workspace gateway |
|---|---|
local | http://localhost:4003/workspaces/graphql |
alpha | https://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql |
prod (default) | https://graphqlworkspaces.burdenoff.com/workspaces/graphql |
Direct endpoint overrides take precedence:
E2E_WSPACE_PUBLIC_GATEWAY=https://my-gateway.example.com make test
E2E_GLOBAL_GATEWAY=https://my-global-gateway.example.com make test
Local target
Source the shared doctor environment:
source /home/ubuntu/products/workspaces/workspaces-doctor/core/env/e2e-env.sh
MOVETHEWHEELS_TARGET=local make test
Alpha target
Set CF Access service-token headers and workspace credentials:
export MOVETHEWHEELS_TARGET=alpha
export CF_ACCESS_CLIENT_ID=<alpha-client-id>
export CF_ACCESS_CLIENT_SECRET=<alpha-client-secret>
export E2E_AUTH_TOKEN=<token>
export E2E_WORKSPACE_TOKEN=<token>
export E2E_WORKSPACE_ID=<workspace-id>
export E2E_USER_ID=<user-id>
make test
Production target
Provide workspace credentials; no CF Access headers are needed:
export MOVETHEWHEELS_TARGET=prod
export E2E_AUTH_TOKEN=<token>
export E2E_WORKSPACE_TOKEN=<token>
export E2E_WORKSPACE_ID=<workspace-id>
export E2E_USER_ID=<user-id>
make test
What is covered
| Script / Suite | Coverage |
|---|---|
scripts/test-movethewheels.sh | Full logistics CRUD: customer, product, vehicle, driver, warehouse, order, shipment, route, inventory, marketplace, report, analytics |
scripts/story-order-to-delivery.sh | Story-level order-to-delivery lifecycle |
Running the tests
make check-env # Verify environment
make test-health # Probe the configured gateway
make test # Smoke tests against prod (default)
MOVETHEWHEELS_TARGET=local make test
MOVETHEWHEELS_TARGET=alpha make test
make test-analytics # Analytics-only checks
make test-story-order-to-delivery
make test-all # Everything
Source
Source at github.com/algoshred/movethewheels-doctor.