diff --git a/lib/charms/glauth_k8s/v0/ldap.py b/lib/charms/glauth_k8s/v0/ldap.py index 9c6b1b9c..206c3ac8 100644 --- a/lib/charms/glauth_k8s/v0/ldap.py +++ b/lib/charms/glauth_k8s/v0/ldap.py @@ -155,7 +155,7 @@ def _on_ldap_requested(self, event: LdapRequestedEvent) -> None: # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 5 +LIBPATCH = 6 PYDEPS = ["pydantic~=2.5.3"] @@ -242,7 +242,7 @@ def validate_ldap_urls(cls, vs: List[str] | str) -> List[str]: for v in vs: if not v.startswith("ldap://"): - raise ValidationError("Invalid LDAP URL scheme.") + raise ValidationError.from_exception_data("Invalid LDAP URL scheme.") return vs diff --git a/tests/integration/test_charm.py b/tests/integration/test_charm.py index 4912b7d5..f66be778 100644 --- a/tests/integration/test_charm.py +++ b/tests/integration/test_charm.py @@ -144,7 +144,7 @@ async def test_ldap_client_integration( timeout=1000, ) - ldap_integration_data = app_integration_data( + ldap_integration_data = await app_integration_data( GLAUTH_PROXY, "ldap-client", )