Skip to content

Commit b2d8ee9

Browse files
authored
chore(tests): Update tiled to v0.2.12 (#1488)
Update policy for new tiled version We are currently on [v0.2.4](https://github.com/bluesky/tiled/blob/main/CHANGELOG.md#v024-2026-02-18)
1 parent 7fe3fda commit b2d8ee9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/system_tests/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ services:
4646
- label=disable
4747

4848
tiled:
49-
image: ghcr.io/bluesky/tiled:0.2.4
49+
image: ghcr.io/bluesky/tiled:0.2.12
5050
network_mode: host # Port 8407
5151
environment:
5252
- PYTHONPATH=/deploy/

tests/system_tests/services/tiled_config/dls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ def _check_principal(principal: Principal | None):
3333
detail="Principal is None",
3434
headers={"WWW-Authenticate": "Bearer"},
3535
)
36-
if principal.type != PrincipalType.external:
36+
if principal.type != PrincipalType.user:
3737
raise HTTPException(
3838
status_code=HTTP_401_UNAUTHORIZED,
39-
detail=f"Principal of type {PrincipalType.external}"
39+
detail=f"Principal of type {PrincipalType.user}"
4040
f" required but given {principal.type}",
4141
headers={"WWW-Authenticate": "Bearer"},
4242
)
@@ -121,7 +121,7 @@ def build_input(
121121

122122
if (
123123
isinstance(principal, Principal)
124-
and principal.type is PrincipalType.external
124+
and principal.type is PrincipalType.user
125125
and principal.access_token is not None
126126
):
127127
_input["token"] = principal.access_token.get_secret_value()

0 commit comments

Comments
 (0)