Skip to content

Commit 7c463a3

Browse files
committed
Fill in assertion
1 parent 391664a commit 7c463a3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test_app/tests/rbac/test_claims.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ def test_user_claims_comprehensive_permissions(self):
7474
# The user will fill in the expected structure later
7575
assert isinstance(claims, dict)
7676

77-
# Placeholder assertion - user will replace this with actual expected structure
78-
expected_claims = {}
77+
expected_claims = {
78+
'global_roles': ['Platform Auditor'],
79+
'object_roles': {'Organization Admin': {'content_type': 'organization', 'objects': [0]}, 'Team Member': {'content_type': 'team', 'objects': [0]}},
80+
'objects': {
81+
'organization': [{'ansible_id': str(org.resource.ansible_id), 'name': 'Test Org'}],
82+
'team': [{'ansible_id': str(team.resource.ansible_id), 'name': 'Test Team', 'org': 0}],
83+
},
84+
}
85+
7986
assert claims == expected_claims

0 commit comments

Comments
 (0)