﻿# make test-failover: отказ одной API-реплики по HTTPS
# python tests/resilience.py --mode failover --action-script C:\Users\mrend\Desktop\VP_lab7\mtusi2026lab7-fork\scripts\stop-one.cmd --base-url https://localhost:8443 --ca-file C:\Users\mrend\Desktop\VP_lab7\mtusi2026lab7-fork\secrets\pki\ca.crt
# 2026-11-17T23:59:38.0003701+03:00
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 111, "failed_attempts": 0, "first_recovery_seconds": 4.984}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
