-
Notifications
You must be signed in to change notification settings - Fork 26
[DPE-4106] Tests legacy and modern endpoints simultaneously #396
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-4106] Tests legacy and modern endpoints simultaneously #396
Conversation
…-protection check)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #396 +/- ##
==========================================
- Coverage 80.96% 80.83% -0.13%
==========================================
Files 10 10
Lines 2259 2244 -15
Branches 363 362 -1
==========================================
- Hits 1829 1814 -15
- Misses 354 356 +2
+ Partials 76 74 -2 ☔ View full report in Codecov by Sentry. |
Hi @BalabaDmintri and thank you for contribution here! Tl;DR: Are we testing the right things here? :-D Long: I am slightly confused. I thought our current position is to disallow simultaneous legacy and modern interfaces: |
Hi @taurus-forever! In my opinion, we need to fix this in the relations to forbid them from being established simultaneously (and match If we agree on that, I can create issues for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BalabaDmintri , can you please add the test and charm code: simultaneous legacy and modern relations should not be allowed.
… into deployment-legacy-modern-endpoints
2950c65
to
0c7ab7f
Compare
7a06a24
to
bab6842
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, BalabaDmintri! That's a great implementation. I left some comments to improve the code a bit.
4012575
to
bab6842
Compare
Co-authored-by: Marcelo Henrique Neppel <marcelo.neppel@gmail.com>
Co-authored-by: Marcelo Henrique Neppel <marcelo.neppel@gmail.com>
Co-authored-by: Marcelo Henrique Neppel <marcelo.neppel@gmail.com>
Co-authored-by: Marcelo Henrique Neppel <marcelo.neppel@gmail.com>
c2c5223
to
2caa1a3
Compare
159ea76
to
138aa3d
Compare
@BalabaDmintri can you please update PR description. It doesn't represent the content. Tnx! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @dragomirp consider to merge if LGTM as well. Tnx!
@@ -0,0 +1,2 @@ | |||
# Copyright 2023 Canonical Ltd. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: 2024, you can ignore it here and update the next PR.
MAILMAN3_CORE_APP_NAME, | ||
application_name=MAILMAN3_CORE_APP_NAME, | ||
channel="stable", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This charm has no updates for ages... and I would recommend to use 2 postgresql-test-app instead... but let's see how stable the current approach is.
Hi, @BalabaDmintri, please fix the error in the unit test and sync up with main. |
… into deployment-legacy-modern-endpoints
a1fa5fa
to
c317415
Compare
954531e
to
c0d39b8
Compare
@dragomirp Can you check |
@dragomirp Can you run actions |
Issue #444
Simultaneous creation of legacy and modern endpoints relations
Solution
Charm goes into a "blocked" state, when creating a simultaneous relation legacy and modern endpoints.