pytest-redis icon indicating copy to clipboard operation
pytest-redis copied to clipboard

Support for Sentinel?

Open lovetoburnswhen opened this issue 4 years ago • 2 comments

What action do you want to perform

Test an application that uses Sentinel to discover masters/slaves

What are the results

What are the expected results

lovetoburnswhen avatar Aug 27 '21 17:08 lovetoburnswhen

https://redis.io/topics/sentinel

What would be the use case to include it into pytest-redis? What would you like to test for?

fizyk avatar Aug 30 '21 07:08 fizyk

A fixture that manages the lifecycle of even a single Sentinel and associated replica, similar to what is done with redis_server. Applications that use Sentinel usually have service discovery baked into their code.

Currently, I can get around it by mocking Sentinel.master_for to return the existing Redis fixtures so this isn't a big priority

lovetoburnswhen avatar Sep 03 '21 03:09 lovetoburnswhen