-
Notifications
You must be signed in to change notification settings - Fork 987
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
Fixes #3650, #11600 - Compute Resource availability_zones, flavors, security_groups API v2 endpoints #2657
Fixes #3650, #11600 - Compute Resource availability_zones, flavors, security_groups API v2 endpoints #2657
Conversation
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
@@ -0,0 +1,5 @@ | |||
collection @available_availability_zones, root_object: false | |||
|
|||
node :name do |s| |
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.
Nitpick, there must exist more descriptive name than 's' 😄
[test] this triggers our Jenkins job |
@@ -96,6 +96,7 @@ def teardown | |||
assert_response :not_found | |||
end | |||
|
|||
|
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.
Remove this extra line and the other one in line 126, they'll likely cause Rubocop to fail
Hi @kairel ! Thanks for your patch, it's highly appreciated. Also thanks for the putting the work to write the tests for it, it's close to merge IMO, there are a few minor issues I've commented inline. If you think your commit is fixing #3650 and #11600, reference it as "Fixes #3650, #11600" on your commit. We use the word 'refs' only when there are more than one commit fixing the same issue. Sorry it's a bit confusing! I'm on the fence about the Thanks again, let us know on #theforeman-dev on Freenode IRC if you have any questions! |
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
[test] |
@@ -71,6 +71,18 @@ def flavors | |||
client.flavors | |||
end | |||
|
|||
def available_availability_zones |
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.
To avoid making these kind of wrappers, you can write at the beginning of the file, bellow the other delegate
:
delegate :security_groups, :flavors, :zones, :to => :self, :prefix => 'available'
available_availability_zones is a bit redundant plus we call them zones on Foreman to be more generic
fe22540
to
38e5e8c
Compare
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
[test] - this allows our Jenkins CI to pick up this PR and test it |
cc72486
to
e31b90f
Compare
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
i must be something for test ? |
Sorry! [test] will re-run it since the change. |
Hi, All checks have passed, i need to change something ? |
It's waiting on a review at the moment, but all the bot is saying that the commit message isn't quite right - there's a missing "#" before the second ticket number. |
@@ -199,6 +199,10 @@ def supports_update? | |||
false | |||
end | |||
|
|||
def available_availability_zones |
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.
I think you forgot to rename this to available_zones
Nice job @kairel ! 2 very minor things and we're done:
Thank you! |
e31b90f
to
f5b2e2e
Compare
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
…flavors, security_groups API v2 endpoints
f5b2e2e
to
45c1a85
Compare
[test] |
ref #3650 and ref#11600