Skip to content

Commit

Permalink
Merge pull request #62 from canonical/IAM-998-fix
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
nsklikas authored Sep 2, 2024
2 parents 8ab3dac + eac931a commit 9c228a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/charms/glauth_k8s/v0/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down

0 comments on commit 9c228a3

Please sign in to comment.