Skip to content

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Sep 2, 2025

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.

Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
@marceloneppel marceloneppel changed the title Add unit tests [DPE-8276] Add unit tests Sep 3, 2025
@@ -0,0 +1 @@
no-binary = false
Copy link
Contributor

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
Comment on lines 11 to 12
{name = "Dragomir Penev", email = "dragomir.penev@canonical.com"},
{name = "Marcelo Henrique Neppel", email = "marcelo.neppel@canonical.com"}
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

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.

Copy link
Member Author

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>
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Tnx!

@marceloneppel marceloneppel merged commit 5dc9791 into 16/edge Sep 4, 2025
@marceloneppel marceloneppel deleted the unit-tests branch September 4, 2025 11:39
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