You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want our integration tests to check that:
1. When prometheus returns a given bit of data
2. Do we produce the output we desire?
Earlier, we were mocking an internal function that would
always return the 'correct' data. Ultimately this just tests that
our mocks work, rather than if our logic is correct.
This commit uses https://pytest-httpserver.readthedocs.io
to instead:
1. Mock the response from the prometheus server
2. Validate that the output is what we want
This helps us catch issues with our logic more directly
Process the response from the Prometheus server to extract user group information. Note that only the most recent date of user group membership is used.
0 commit comments