Skip to content

Closes #2321 - Fix TestRolesCRUD by including DomainID to TestRolesCRUD #3509

Merged
stephenfin merged 1 commit intogophercloud:mainfrom
dlaw4608:remove_role_from_domain
Sep 17, 2025
Merged

Closes #2321 - Fix TestRolesCRUD by including DomainID to TestRolesCRUD #3509
stephenfin merged 1 commit intogophercloud:mainfrom
dlaw4608:remove_role_from_domain

Conversation

@dlaw4608
Copy link
Copy Markdown
Contributor

Fixes #[2321]

The original issue said that Gophercloud did not support deleting roles from a specific domain. This isn't really the case as to create a role, a domain must be specified also. The API allows deletion by role ID without specifying a domain,but this is fine as the role ID is all that is needed for the role to be deleted from a specific domain.
API call refs

To make the Acceptance test consistent with this API behaviour, "DomainID" was added to both calls CreateOpts & ListOpts in roles_test.go.

So going to close this issue as no new feature needed because Delete Role works as expected.

…CreateOpts/ListOps structs.

Signed-off-by: Dan Lawton <dlawton@redhat.com>
@github-actions github-actions bot added edit:identity This PR updates identity code semver:patch No API change backport-v2 This PR will be backported to v2 labels Sep 17, 2025
@stephenfin stephenfin added this pull request to the merge queue Sep 17, 2025
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 63.81%. remained the same
when pulling 6e98767 on dlaw4608:remove_role_from_domain
into 8de6478 on gophercloud:main.

Merged via the queue into gophercloud:main with commit 4462300 Sep 17, 2025
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:identity This PR updates identity code semver:patch No API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants