Skip to content

rewriting memcache tests#8485

Open
danlavu wants to merge 2 commits intoSSSD:masterfrom
danlavu:tests-rm-memcache
Open

rewriting memcache tests#8485
danlavu wants to merge 2 commits intoSSSD:masterfrom
danlavu:tests-rm-memcache

Conversation

@danlavu
Copy link

@danlavu danlavu commented Feb 27, 2026

No description provided.

@danlavu danlavu added the Tests label Feb 27, 2026
@danlavu danlavu marked this pull request as draft February 27, 2026 07:57
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a significant refactoring of the memcache tests, aiming to reduce code duplication by introducing helper functions and parametrizing tests. While this is a great improvement for maintainability, the new implementation introduces several critical and high-severity issues, including a syntax error, flawed test logic that would cause failures, and several inconsistencies between test names, docstrings, and their implementations. I've detailed these issues in the review comments.

@danlavu danlavu force-pushed the tests-rm-memcache branch from 4164a67 to 92e2433 Compare March 1, 2026 00:20
@danlavu danlavu force-pushed the tests-rm-memcache branch 4 times, most recently from 800149e to 79780ef Compare March 2, 2026 22:48
@danlavu danlavu force-pushed the tests-rm-memcache branch 2 times, most recently from 36e1b79 to 757722f Compare March 3, 2026 01:32
@danlavu danlavu force-pushed the tests-rm-memcache branch 2 times, most recently from bc7b7a2 to b484bad Compare March 3, 2026 03:41
@danlavu danlavu marked this pull request as ready for review March 3, 2026 04:33
@madhuriupadhye
Copy link
Contributor

@danlavu, can you please check,
ValueError: Required field 'customerscenario' is missing for 'tests/test_memcache.py::test_memcache__lookup_objects_by_name[users] (ldap)'

Dan Lavu added 2 commits March 11, 2026 10:11
* parametrized test cases
* added colliding hash test case
* remove poor test scenarios
@danlavu danlavu force-pushed the tests-rm-memcache branch from b484bad to 29ad9e3 Compare March 11, 2026 14:12
@danlavu
Copy link
Author

danlavu commented Mar 12, 2026

@madhuriupadhye @andreboscatto I suggest reviewing this PR using the split diff view and not the unified diff.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants