Skip to content

Add API test for /auth/projects with empty role assignments (Issue #515)#752

Open
MohidSheraz wants to merge 2 commits into
openstack-experimental:mainfrom
MohidSheraz:main
Open

Add API test for /auth/projects with empty role assignments (Issue #515)#752
MohidSheraz wants to merge 2 commits into
openstack-experimental:mainfrom
MohidSheraz:main

Conversation

@MohidSheraz
Copy link
Copy Markdown

Closes #515

Added an API test to verify that when a user has no role assignments,
the /auth/projects endpoint returns an empty list instead of all projects.

This is a regression test for the bug described in the parent issue #513.

Test: test_auth_projects_empty_when_no_roles

  • Attempts to list projects for a user without authentication/roles
  • Verifies either 401 (unauthorized) or empty project list
  • Should NOT return all projects in the system

…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
…turns empty for user without roles

Tests that when a user has no role assignments, the /auth/projects endpoint
returns an empty list, not all projects in the system.

Fixes: openstack-experimental#515
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 test to the /auth/projects with empty assignments list being returned

1 participant