54 lines
2.2 KiB
Plaintext
54 lines
2.2 KiB
Plaintext
Live runtime verification
|
|
=========================
|
|
|
|
Environment:
|
|
Windows; Docker Compose stack for this repository.
|
|
HTTP_PORT=18080 because port 8080 was occupied by another lab; that stack was not stopped.
|
|
Tests use synthetic users, messages, and images only. No volumes were removed.
|
|
|
|
Public API smoke through nginx:
|
|
python tests/smoke.py --base-url http://127.0.0.1:18080
|
|
PASS: lab5 public API scenario.
|
|
|
|
Accepted upload while worker was stopped, then full stack restart:
|
|
BASE_URL=http://127.0.0.1:18080 HTTP_PORT=18080 python scripts/worker_outage_live.py
|
|
PASS:
|
|
accepted_status=queued
|
|
final_status=ready
|
|
durable job/outbox state=ready|1|1|1
|
|
original_unchanged=true
|
|
confirmed_message_preserved=true
|
|
The test stops only this lab's worker, uploads an attachment and confirms the API
|
|
remains available, then runs scripts/restart.cmd (compose down/up without -v).
|
|
It verifies the same attachment and confirmed message after recovery.
|
|
|
|
Crash immediately before and after original S3 put:
|
|
BASE_URL=http://127.0.0.1:18080 HTTP_PORT=18080 python scripts/fault_injection_live.py
|
|
PASS:
|
|
before_original_put: ready|2|1|retry; original_unchanged=true
|
|
after_original_put: ready|2|1|retry; original_unchanged=true
|
|
|
|
Failed event, explicit replay, and expired lease:
|
|
BASE_URL=http://127.0.0.1:18080 HTTP_PORT=18080 python scripts/replay_live.py
|
|
PASS:
|
|
failed_event_published=true
|
|
replay_state=ready|1|1|1
|
|
lease_recovery_state=ready|3|1|1
|
|
operator=live-lab5-test
|
|
original_unchanged=true
|
|
|
|
API replica failover:
|
|
tests/resilience.py --mode failover --action-script scripts/stop-one.cmd
|
|
PASS: two API instances observed before failure; 101 successful writes,
|
|
1 transition failure, first recovery in 0.687 seconds. Confirmed messages and
|
|
attachment remained available; both API replicas were restored after the test.
|
|
This is a short failover test, not a load benchmark or p95/p99 measurement.
|
|
|
|
Staging cleanup:
|
|
Synthetic attachment cleanup scenario: deletion marker recorded, staging object
|
|
absent, final original still present.
|
|
|
|
All live test scripts use unique synthetic records. Runtime failpoint injection is
|
|
disabled by default and was cleared after testing. No user data or secrets are in
|
|
this evidence.
|