-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CLOUDSTACK-9602: API: improve resource limits comprehension #1554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests:
Skipped tests: Passed test suits: |
95d9114 to
6062c47
Compare
|
@marcaurele can you squash your changs, and add a JIRA ticket, thanks |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-220 |
|
@rhtyd I added the JIRA ticket. Isn't it simpler if you do the squash when you'll merge the PR on master? |
58ef573 to
f3ecd4b
Compare
|
@marcaurele if I squash while merging, the git sha of the commit will change and the PR won't be marked as 'merged'. Which is why we use the |
| } | ||
| } else if (resourceType != null) { | ||
| try { | ||
| resourceTypeResult = Resource.ResourceType.values()[resourceType]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code here assumes that the ResourceType.getOrdinal() is always in the same order as the enum values.
This might at one moment not be the case..
I would prefer to search for the ResourceType returning the correct value when calling type.getOrdinal()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, I updated the change to use the ordinal value use in the each value.
Add resource type name in request and response for listResources API call. Signed-off-by: Marc-Aurèle Brothier <m@brothier.org>
f3ecd4b to
95c0c7b
Compare
|
@fmaximus comment has been addressed |
|
LGTM, pending testing. |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1283 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1683)
|
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1294 |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1315 |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1416 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1827)
|
|
Test LGTM, additional review requested for merging this. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1484 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1913)
|
|
Tests LGTM, can we have a more code review/lgtm to merge this -- @borisstoyanov @wido @nvazquez @rafaelweingartner @DaanHoogland and others? |
borisstoyanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM based on core review and test results
|
Thanks. Merging this based on 2lgtm/code reviews and test results. |
Add resource type name in request and response.
This adds in the response a new attribute
typenamewith the String value for the corresponding resource enum.