Skip to content

[v2] Implement resource provider aggregates v2 - #3709

Merged
stephenfin merged 3 commits into
gophercloud:v2from
shiftstack:implement-resource-provider-aggregates-v2
Apr 10, 2026
Merged

stephenfin merged 3 commits into
gophercloud:v2from
shiftstack:implement-resource-provider-aggregates-v2

Conversation

@github-actions github-actions Bot added v2 This PR targets v2 edit:placement This PR updates placement code semver:minor Backwards-compatible change labels Apr 10, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 63.809% (+0.03%) from 63.778% — shiftstack:implement-resource-provider-aggregates-v2 into gophercloud:v2

@mandre mandre mentioned this pull request Apr 10, 2026

@stephenfin stephenfin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small things, mainly around tests, but this is otherwise good from my perspective.

}

func TestResourceProviderAggregatesGetSuccess(t *testing.T) {
// Resource_provider_generation in the aggregates response was introduced in microversion 1.19.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment isn't that helpful. It has the impression of being bound to the clients.SkipReleasesBelow call on the next line but I believe the more important aspect is the setting of client.Microversion below. Can we just drop it? Ditto for the other comments below. IMO it would be more helpful to add comments explaining the "story" of the test as we're doing in the test above this one.

Comment thread openstack/placement/v1/resourceproviders/requests.go
Comment thread openstack/placement/v1/resourceproviders/util.go
@stephenfin

Copy link
Copy Markdown
Contributor

...and I just realised this is a backport 🤦 I'll address these myself on main.

@stephenfin
stephenfin merged commit a61df9b into gophercloud:v2 Apr 10, 2026
15 checks passed
@stephenfin
stephenfin deleted the implement-resource-provider-aggregates-v2 branch April 10, 2026 12:34
stephenfin added a commit to shiftstack/gophercloud that referenced this pull request Apr 10, 2026
Per comments [1], remove an unnecessary helper and tweak some tests.

[1] gophercloud#3709

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/gophercloud that referenced this pull request Apr 10, 2026
Per comments [1], remove an unnecessary helper and tweak some tests.

[1] gophercloud#3709

Signed-off-by: Stephen Finucane <[email protected]>
stephenfin added a commit to shiftstack/gophercloud that referenced this pull request Apr 10, 2026
Per comments [1], remove an unnecessary helper and tweak some tests.

[1] gophercloud#3709

Signed-off-by: Stephen Finucane <[email protected]>
gophercloud-backport-bot Bot pushed a commit that referenced this pull request Apr 10, 2026
Per comments [1], remove an unnecessary helper and tweak some tests.

[1] #3709

Signed-off-by: Stephen Finucane <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:placement This PR updates placement code semver:minor Backwards-compatible change v2 This PR targets v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants