Skip to content

Conversation

@mistotebe
Copy link
Contributor

No description provided.

@mistotebe mistotebe force-pushed the OpenLDAPSyncreplCookie branch 3 times, most recently from beb1513 to 3247211 Compare June 25, 2024 13:20
droideck
droideck previously approved these changes Jul 30, 2024
Copy link
Contributor

@droideck droideck left a 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.

@mistotebe mistotebe force-pushed the OpenLDAPSyncreplCookie branch 3 times, most recently from 6a15068 to 672779f Compare August 20, 2024 10:50
droideck
droideck previously approved these changes Aug 6, 2025
Copy link
Contributor

@droideck droideck left a 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?

@mistotebe mistotebe force-pushed the OpenLDAPSyncreplCookie branch from 672779f to 2458039 Compare August 7, 2025 16:20
@mistotebe
Copy link
Contributor Author

LGTM! Could you please try to rebase and see if tests pass?

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?

@mistotebe mistotebe requested a review from droideck November 26, 2025 12:43
droideck
droideck previously approved these changes Nov 28, 2025
Copy link
Contributor

@droideck droideck left a 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!


# 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")
Copy link
Contributor

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.

pass
return result

def update(self, cookie: str):
Copy link
Contributor

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:
Copy link
Contributor

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__?

@mistotebe
Copy link
Contributor Author

Thanks @droideck for spotting those, all of them should have been there in the first place. Sorry about that, should be fixed now.

Copy link
Contributor

@droideck droideck left a comment

Choose a reason for hiding this comment

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

Sure! And LGTM:)

@mistotebe mistotebe merged commit aca9cb5 into python-ldap:main Dec 1, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants