diff --git a/tests/system_tests/compose.yaml b/tests/system_tests/compose.yaml index 5b34f4784d..61025a9e87 100644 --- a/tests/system_tests/compose.yaml +++ b/tests/system_tests/compose.yaml @@ -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/ diff --git a/tests/system_tests/services/tiled_config/dls.py b/tests/system_tests/services/tiled_config/dls.py index 5ab3580d40..875b559d5a 100644 --- a/tests/system_tests/services/tiled_config/dls.py +++ b/tests/system_tests/services/tiled_config/dls.py @@ -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"}, ) @@ -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()