Skip to content

Implement resource provider aggregates - #3685

Merged
mandre merged 4 commits into
gophercloud:mainfrom
Etua:implement-resource-provider-aggregates
Apr 10, 2026
Merged

mandre merged 4 commits into
gophercloud:mainfrom
Etua:implement-resource-provider-aggregates

Conversation

@github-actions github-actions Bot added edit:placement This PR updates placement code semver:minor Backwards-compatible change backport-v2 This PR will be backported to v2 labels Apr 3, 2026
@coveralls

coveralls commented Apr 3, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 64.002% (+0.03%) from 63.973% — Etua:implement-resource-provider-aggregates into gophercloud:main

@Etua

Etua commented Apr 3, 2026

Copy link
Copy Markdown
Contributor Author

@mandre Seems like the test failed on one branch due to setup issues.

@mandre

mandre commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

@mandre Seems like the test failed on one branch due to setup issues.

re-running it now, let's see how it goes.

@Etua

Etua commented Apr 7, 2026

Copy link
Copy Markdown
Contributor Author

@mandre Looks like it passed on recheck.

Comment thread openstack/placement/v1/resourceproviders/requests.go
Comment thread openstack/placement/v1/resourceproviders/doc.go
Comment thread openstack/placement/v1/resourceproviders/requests.go Outdated
Etua added 2 commits April 9, 2026 21:12
We don't provide resource provider's generation in request nor do we get
it back in response. The original tests got it slightly wrong; fix it.
Automatically correct the request if user wrongly provides generation in
opts for pre-1.19.

Signed-off-by: Dominik Danelski <[email protected]>
@Etua

Etua commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor Author

@mandre I acknowledged the difference between 1.19+ and earlier versions, but I got it wrong due to a subtlety: the request and its response are identical only for 1.19+, yet I acted as if it was also true for 1.10-1.18. Even though the tests passed, the values checked were wrong. I created the comment highlighting the difference, lest someone miss it like I did.
I added your helper function and have dedicated tests for when it's useful. Thank you.

@mandre
mandre enabled auto-merge April 10, 2026 07:28
@mandre
mandre added this pull request to the merge queue Apr 10, 2026
Merged via the queue into gophercloud:main with commit 33316d1 Apr 10, 2026
64 checks passed
@github-actions

Copy link
Copy Markdown

Failed to backport PR to v2 branch. See logs for details.

@Etua
Etua deleted the implement-resource-provider-aggregates branch April 10, 2026 10:14
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:placement This PR updates placement code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants