Skip to content

Commit

Permalink
📐📐🔵📐 I guess we doin' enter_username_password now (upstream breakin…
Browse files Browse the repository at this point in the history
…g API change)
  • Loading branch information
Kezzsim committed Oct 2, 2024
1 parent 1634d7c commit 4f3b35c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tiled/_tests/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,15 +658,15 @@ def test_api_key_bypass_scopes(enter_username_password, principals_context):


def test_admin_delete_principal_apikey(
enter_password,
enter_username_password,
principals_context,
):
"""
Admin can delete API keys for any prinicipal, revoking access.
"""
with principals_context["context"] as context:
# Log in as Bob (Ordinary user)
with enter_password("secret2"):
with enter_username_password("bob", "secret2"):
context.authenticate(username="bob")

# Create an ordinary user API Key
Expand All @@ -675,7 +675,7 @@ def test_admin_delete_principal_apikey(
context.logout()

# Log in as Alice (Admin)
with enter_password("secret1"):
with enter_username_password("alice", "secret1"):
context.authenticate(username="alice")

# Delete the created API Key via service principal
Expand Down

0 comments on commit 4f3b35c

Please sign in to comment.