Skip to content

Commit 2150eec

Browse files
Fix failing test due to model changes
1 parent 75c8b76 commit 2150eec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/api/test_keycloak_middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_token_with_missing_required_roles(
4545
# Mock the token verification to return a valid payload but with insufficient roles
4646
mock_verify_jwt.return_value = {
4747
"name": "Test User",
48+
"preferred_username": "test-user",
4849
"resource_access": {
4950
"openremote": {
5051
"roles": ["some-other-role"] # Missing required write:admin and read:admin roles

0 commit comments

Comments
 (0)