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-2320] fix monitor secret id parsing issue #181

Merged
merged 3 commits into from
Aug 1, 2023
Merged

Conversation

delgod
Copy link
Member

@delgod delgod commented Jul 22, 2023

Sometimes secret id is represented in different ways https://bugs.launchpad.net/juju/+bug/2028402.
this PR workaround the juju issue.

@delgod delgod changed the title Test monitor secret [DPE-2140] fix monitor secret id parsing issue Jul 22, 2023
@delgod
Copy link
Member Author

delgod commented Jul 22, 2023

@delgod delgod marked this pull request as ready for review July 22, 2023 22:03
@canonical canonical deleted a comment from dratushnyy Jul 24, 2023
src/charm.py Outdated Show resolved Hide resolved
@canonical canonical deleted a comment from dratushnyy Jul 24, 2023
src/charm.py Outdated Show resolved Hide resolved
@canonical canonical deleted a comment from dratushnyy Jul 24, 2023
@delgod delgod force-pushed the test-monitor-secret branch 2 times, most recently from ccc2379 to 5c69c35 Compare July 24, 2023 15:27
Copy link

@shayancanonical shayancanonical left a comment

Choose a reason for hiding this comment

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

Great regex!

Copy link
Contributor

@juditnovak juditnovak left a comment

Choose a reason for hiding this comment

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

I'm wondering if we should have a test (both for unit and app) which would have failed w/o the fix, and which is checking that the functionality of this fix is preserved in the future, no? It may be a bit complex as an integration test (due to eventual consistency), but should be well feasable as a unittest.

src/charm.py Outdated Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
@juditnovak
Copy link
Contributor

Juju 3 pipeline: #183

@juditnovak juditnovak changed the title [DPE-2140] fix monitor secret id parsing issue [DPE-2320] fix monitor secret id parsing issue Jul 27, 2023
@juditnovak
Copy link
Contributor

Juju 3.2.0.1 tests passed here after the refactor: https://github.com/canonical/mongodb-k8s-operator/actions/runs/5693032447

@juditnovak juditnovak merged commit c3eb59d into main Aug 1, 2023
11 checks passed
@juditnovak juditnovak deleted the test-monitor-secret branch August 1, 2023 08:42
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.

None yet

4 participants