Skip to content

test: Auth projects returns empty for user without roles#783

Open
MohidSheraz wants to merge 1 commit into
openstack-experimental:mainfrom
MohidSheraz:fix-515-auth-projects-empty-list
Open

test: Auth projects returns empty for user without roles#783
MohidSheraz wants to merge 1 commit into
openstack-experimental:mainfrom
MohidSheraz:fix-515-auth-projects-empty-list

Conversation

@MohidSheraz

Copy link
Copy Markdown
Collaborator

Closes #515

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

Test: test_auth_projects_empty_for_user_without_roles

  • Creates a user with no role assignments
  • Authenticates as that user
  • Calls /auth/projects
  • Verifies the returned list is empty

@MohidSheraz MohidSheraz force-pushed the fix-515-auth-projects-empty-list branch 2 times, most recently from 0278bc8 to ee17258 Compare June 10, 2026 10:29
@gtema gtema force-pushed the fix-515-auth-projects-empty-list branch from ee17258 to bd5b7fd Compare June 12, 2026 08:36
@MohidSheraz MohidSheraz force-pushed the fix-515-auth-projects-empty-list branch 2 times, most recently from 85367e9 to eae7de4 Compare June 12, 2026 23:44
@MohidSheraz MohidSheraz force-pushed the fix-515-auth-projects-empty-list branch from eae7de4 to 16fe289 Compare June 13, 2026 12:08
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