Replaces the previous :requires_redis skip with a real test double so the suite stays self-contained — no external Redis service needed in CI, but the call paths through RedisHealthCheck and FourOhFourTracker still get exercised end-to-end. - Towerops.Redix.Fake: GenServer that speaks PING / SADD / SCARD / SISMEMBER / SMEMBERS / EXPIRE / DEL / FLUSHDB. start_link refuses anything other than localhost:6379 so failure-path tests still fail the way they did against real Redix. - Application supervisor starts the fake under name Towerops.Redix in test env (instead of the dummy Agent stub). - RedisHealthCheck and FourOhFourTracker now route Redix calls through Application.get_env(:towerops, :redix_module, Redix). Test config points it at the fake. - Drops the test_helper :requires_redis exclusion and the @moduletag on the two test files; FourOhFourTrackerTest setup just resets the fake between runs. |
||
|---|---|---|
| .. | ||
| config.exs | ||
| dev.exs | ||
| prod.exs | ||
| runtime.exs | ||
| test.exs | ||