-
Notifications
You must be signed in to change notification settings - Fork 135
Add OpenLDAPSyncreplCookie class #571
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
Conversation
beb1513 to
3247211
Compare
droideck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments, but the code looks good!
We need to figure out, though, what's wrong with the CI... I can't even restart it.
6a15068 to
672779f
Compare
droideck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Could you please try to rebase and see if tests pass?
672779f to
2458039
Compare
2458039 to
71952ad
Compare
Just rebasing didn't seem to work, but given that @spaceone had some comments and I forgot to register the tests, this rebase seems to have passed made pypy310 happy. We might still be closing a fd twice somewhere else in the code? |
droideck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor comments, otherwise, LGTM!
Tests/t_ldap_syncrepl.py
Outdated
|
|
||
| # An active MPR should not have a sid=000 server in it | ||
| if self.server.server_id == 0: | ||
| self.skip("Server got serverid 0 assigned") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at these methods - https://docs.python.org/3/library/unittest.html#unittest.TestCase , I think it should be:
self.skipTest("Server got serverid 0 assigned")the only place I see .skip() - is as a decorator.
Lib/ldap/syncrepl.py
Outdated
| pass | ||
| return result | ||
|
|
||
| def update(self, cookie: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The signature says cookie: str but _parse_cookie() accepts AnyStr (both str and bytes). Worth make it consistent.
| pass | ||
|
|
||
|
|
||
| class OpenLDAPSyncreplCookie: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also export the class in __all__?
71952ad to
e966aaa
Compare
|
Thanks @droideck for spotting those, all of them should have been there in the first place. Sorry about that, should be fixed now. |
droideck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! And LGTM:)
No description provided.