Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/system_tests/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
- label=disable

tiled:
image: ghcr.io/bluesky/tiled:0.2.4
image: ghcr.io/zohebshaikh/test-tiled-proxided:10.0.1
network_mode: host
environment:
- PYTHONPATH=/deploy/
Expand Down
6 changes: 3 additions & 3 deletions tests/system_tests/services/tiled_config/dls.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def _check_principal(principal: Principal | None):
detail="Principal is None",
headers={"WWW-Authenticate": "Bearer"},
)
if principal.type != PrincipalType.external:
if principal.type != PrincipalType.user:
raise HTTPException(
status_code=HTTP_401_UNAUTHORIZED,
detail=f"Principal of type {PrincipalType.external}"
detail=f"Principal of type {PrincipalType.user}"
f" required but given {principal.type}",
headers={"WWW-Authenticate": "Bearer"},
)
Expand Down Expand Up @@ -121,7 +121,7 @@ def build_input(

if (
isinstance(principal, Principal)
and principal.type is PrincipalType.external
and principal.type is PrincipalType.user
and principal.access_token is not None
):
_input["token"] = principal.access_token.get_secret_value()
Expand Down
Loading