Skip to content

Add integration tests for role assignments with same role on multiple scopes (Issue #513)#751

Open
MohidSheraz wants to merge 1 commit into
openstack-experimental:mainfrom
MohidSheraz:add-role-assignment-tests-issue-513
Open

Add integration tests for role assignments with same role on multiple scopes (Issue #513)#751
MohidSheraz wants to merge 1 commit into
openstack-experimental:mainfrom
MohidSheraz:add-role-assignment-tests-issue-513

Conversation

@MohidSheraz
Copy link
Copy Markdown

Closes #513

Added two integration tests to catch the bugs described in issue #513:

  • test_list_role_assignments_by_user_same_role_multiple_scopes

    • Assigns same role to user on 2 projects + system
    • Verifies listing by user_id returns all 3 assignments
  • test_list_role_assignments_by_role_id_same_role_multiple_scopes

    • Assigns same role to user on 2 projects + system
    • Verifies listing by role_id returns all 3 assignments

Both tests pass successfully.

…e assignments with same role on multiple scopes

Tests verify that listing role assignments correctly handles cases where
the same role is assigned to a user on multiple different targets (projects + system).

Fixes: openstack-experimental#513
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add integration test for listing role assignments for particular user

1 participant