-
Notifications
You must be signed in to change notification settings - Fork 1
[DPE-8276] Add unit tests #2
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
Conversation
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@@ -0,0 +1 @@ | |||
no-binary = false |
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.
@taurus-forever do we need to build from source for this repo? Artefacts released should only be the library itself.
pyproject.toml
Outdated
{name = "Dragomir Penev", email = "dragomir.penev@canonical.com"}, | ||
{name = "Marcelo Henrique Neppel", email = "marcelo.neppel@canonical.com"} |
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.
Should we set the data-platform email here?
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.
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.
Yes, we set the maintainers for charms to Canonical Data Platform
, we should most probably do the same here.
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, @dragomirp! I updated it on 60d378c.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
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.
Tnx!
Issue
There are no unit tests for the migrated PostgreSQL charm library code.
Solution
Copy the unit tests from the K8s charm repository and adapt them to the V1 code (by removing mentions to the admin role, which doesn't exist for PG 16).
Also, some additional files were added to allow developers to run the unit tests.