-
Notifications
You must be signed in to change notification settings - Fork 366
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
Adding api endpoints for resources to heat api #840
Conversation
@vinodborole PTAL when you get a chance. |
Thanks @drmaas for this, the code looks good. Is it possible for you add few test cases for the resource health use case? |
In addition to Vinods comment: Could you resolve the conflicts and stick to the import style in |
Will address comments. |
@vinodborole @auhlig added tests - PTAL |
LGTM, @auhlig can you have a look once; especially the json files used for test cases |
Yeah. I get what you mean Vinod: d69e213#diff-8159b497a2f70e96643a4d320903a5bbR2 makes no sense. |
But the rest of the code looks good. |
@auhlig what makes no sense? If you are referring to patchWithResponse and postWithResponse, I return an ActionResponse so that the response code can be obtained to check the status, because the responses return no data. If you are referring to the json files themselves, what would be a better set of test data to use? The resource response is an example of actual metadata returned from a stack resource. The signal json is made up, since I have no context for what a real payload would look like. Or are you saying that the signal api does not accept a request body? |
Hi @drmaas , While reading the the API documentation I was wondering, where the |
@auhlig I tested out all of the endpoints in ResourcesServiceImpl against our Mitaka install. They all do use the tenant (project id) in the URI path that is baked into the client when the client (v2 or v3) is built. This seems to be the pattern for all Openstack4j api calls - automatically use the project id that was specified at client build time. I've seen instances where the docs are wrong. You're right about no payload needing to be sent - I will update the PR. |
providing some tests, return ActionResponse instead of void remove unused imports Removing payload for signal api endpoint
Interesting. Thanks for sharing the info. Could you also submit a PR to update the docs? That would be much appreciated! Besides this PR looks good. What do you think @vinodborole? |
@auhlig http://developer.openstack.org/api-ref/orchestration/v1/index.html#stack-resources looks correct to me (tenant id is in the path for all endpoints) - are you referring to something else? |
I'm referring to our docs :) |
@auhlig @vinodborole issue submitted |
Thanks. I guess it's ready to merge, right @vinodborole? If so please merge |
No description provided.