Skip to content

Limits: Fix ToDo to create registered limit and use it#2627

Merged
mandre merged 1 commit intogophercloud:masterfrom
konan-abhi:use-registered-limits
May 24, 2023
Merged

Limits: Fix ToDo to create registered limit and use it#2627
mandre merged 1 commit intogophercloud:masterfrom
konan-abhi:use-registered-limits

Conversation

@konan-abhi
Copy link
Copy Markdown
Contributor

Since we have API to create a registered limit, we can use it in the acceptance test to create and then override the same in project.

Also simplified fetching service logic since we didn't be depending on glance service anymore.

@coveralls
Copy link
Copy Markdown

coveralls commented May 23, 2023

Coverage Status

Coverage: 79.115%. Remained the same when pulling 0bda0ef on konan-abhi:use-registered-limits into 7097b89 on gophercloud:master.

// TODO: After https://github.com/gophercloud/gophercloud/issues/2290 is implemented
// use registered limits API to create global registered limit and then overwrite it with limit.
// Current solution (using glance limit) only works with Openstack Xena and above.
clients.SkipReleasesBelow(t, "stable/xena")
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.

Thanks for doing this. I believe we can also remove the skip below stable/xena as we used that as a workaround for a project that had existing registered limits.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@konan-abhi konan-abhi force-pushed the use-registered-limits branch from 084f97f to a40cb5e Compare May 23, 2023 16:23
Since we have API to create a registered limit, we can use it in the
acceptance test to create and then override the same in project.

Also simplified fetching service logic since we didn't be depending on
glance service anymore.
@konan-abhi konan-abhi force-pushed the use-registered-limits branch from a40cb5e to 0bda0ef Compare May 23, 2023 16:48
Copy link
Copy Markdown
Contributor

@mandre mandre left a comment

Choose a reason for hiding this comment

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

Sweet, that seems to work and we can now test on all openstack versions.

@mandre mandre merged commit b9730cf into gophercloud:master May 24, 2023
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.

3 participants