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-2415] sync libraries and update src as necessary #240

Merged
merged 6 commits into from
Sep 6, 2023

Conversation

MiaAltieri
Copy link
Contributor

@MiaAltieri MiaAltieri commented Aug 31, 2023

Problem

After implementing backups on K8s the libraries in each charm are out of sync.

Solution

Update the library code and update the charm to support these new changes

Other changes

Testing versions and requirements updates to solve depency issues in tests

Future PRs

The backup library has had substantial changes and so the old test suite is no longer supported. In a future PR these will be added.
Failing TLS tests are resolved in #242

do NOT review these files

  • lib/charms/mongodb/v0/helpers.py - copy and paste from k8s charm
  • lib/charms/mongodb/v0/mongodb_backups.py - copy and paste from VM charm
  • tests/unit/test_mongodb_backups.py - removed as is now out of date, will be rewritten in a follow up PR

@MiaAltieri MiaAltieri changed the title [DRAFT} sync libraries and update src as necessary [DRAFT] sync libraries and update src as necessary Aug 31, 2023
@MiaAltieri MiaAltieri force-pushed the sync-backup-lib branch 5 times, most recently from a37d77c to 959879c Compare August 31, 2023 15:15
@MiaAltieri MiaAltieri changed the title [DRAFT] sync libraries and update src as necessary [DPE-2415] sync libraries and update src as necessary Sep 5, 2023
delgod
delgod previously approved these changes Sep 5, 2023
@MiaAltieri MiaAltieri merged commit 0a959cd into main Sep 6, 2023
@MiaAltieri MiaAltieri deleted the sync-backup-lib branch September 6, 2023 08:31
MiaAltieri added a commit that referenced this pull request Sep 6, 2023
## Issue
After #240 where we update the backup libraries we need to update the
units tests

## Solution
Add unit tests for backup lib, note these were copied from the K8s charm
and made to work for the VM charm
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