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

[DPE-5602] - fix unit tests for TLS in python 3.12 #469

Open
wants to merge 7 commits into
base: 2/edge
Choose a base branch
from

Conversation

skourta
Copy link
Contributor

@skourta skourta commented Oct 3, 2024

fixes #468

phvalguima
phvalguima previously approved these changes Oct 3, 2024
Copy link
Contributor

@phvalguima phvalguima left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Mehdi-Bendriss Mehdi-Bendriss left a comment

Choose a reason for hiding this comment

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

Thanks Smail, I have a question.

Comment on lines 1603 to 1605
event_mock.defer.assert_called_once()
else:
event_mock.defer.assert_not_called()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think event_mock.defer should rather be: self.charm.on.certificate_available.defer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I switched the event_mock to the certificate_available event since that is what would be the input if the charm calls the callback function.

@skourta skourta changed the title [DPE-5602]fix unit tests for TLS in python 3.12 [DPE-5602] - fix unit tests for TLS in python 3.12 Oct 11, 2024
Copy link
Contributor

@phvalguima phvalguima left a comment

Choose a reason for hiding this comment

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

Thanks @skourta!

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.

TLS unit tests are failing when executed with python 3.12
3 participants