canonical / data-platform-libs

A collection of charm libraries curated by the Data Platform Team
https://charmhub.io/data-platform-libs
Apache License 2.0
10 stars 9 forks source link

Add is_postgresql_plugin_enabled method #61

Closed marceloneppel closed 1 year ago

marceloneppel commented 1 year ago

Issue

Jira ticket: DPE-1373

As an juju admin, I should be able to run:

Solution

Created the new method and add a local import to psycopg to avoid requiring that application charms not using the new method need to install psycopg as a dependency.

Added unit and integration tests.