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-4858] Upgrade TLS lib and add status lib #252

Merged
merged 5 commits into from
Jul 12, 2024

Conversation

Gu1nness
Copy link
Contributor

The TLS tests were artifically passing because it was impossible to integrate mongodb-k8s (multiple units) and self-signed certificates because it would get stuck in secrets-changed forever.

Updating the libraries, and fixing the integration between the MongoDB TLS library and the Charm's source was almost sufficient, some test methods needed to be updated as well in order to be in line with https://github.com/canonical/mongodb-operator.

A few minor improvements as well in the source charm in order to build reusable methods for pushing files to container and checking DB readiness.

First step is to have libraries up to date, the TLS library was 10
subversions behind upstream. Since these new versions were requiring the
status library, here it comes.
 * Use the status library to handle statuses
 * Add placeholder functions for the new required methods
 * Fix the calls to TLS functions as their interface changed
 * Add boilerplate function to check if mongodb is ready
 * Add boilerplate function to push data on container with correct
   permissions to avoid errors.
@Gu1nness Gu1nness requested a review from MiaAltieri July 12, 2024 08:14
MiaAltieri
MiaAltieri previously approved these changes Jul 12, 2024
Copy link
Contributor

@MiaAltieri MiaAltieri left a comment

Choose a reason for hiding this comment

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

Amazing work Neha! looks great!

src/charm.py Outdated Show resolved Hide resolved
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 Neha - looks good

@Gu1nness Gu1nness requested a review from MiaAltieri July 12, 2024 11:53
@Gu1nness Gu1nness merged commit 056d23c into 6/edge Jul 12, 2024
22 of 23 checks passed
@Gu1nness Gu1nness deleted the DPE-4858-fix-tls-tests branch July 12, 2024 12:56
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