Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Sentinel? #323

Open
lovetoburnswhen opened this issue Aug 27, 2021 · 2 comments
Open

Support for Sentinel? #323

lovetoburnswhen opened this issue Aug 27, 2021 · 2 comments

Comments

@lovetoburnswhen
Copy link

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

@fizyk
Copy link
Member

fizyk commented Aug 30, 2021

https://redis.io/topics/sentinel

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

@lovetoburnswhen
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants