-
Notifications
You must be signed in to change notification settings - Fork 320
Add support for V3 Roles #1079
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
Add support for V3 Roles #1079
Conversation
|
|
|
Thanks for the PR @radito3! I did a quick check through the code and the only thing that jumped out at me is we're naming all new V3 endpoints with their version, e.g. RolesV3. If you could update that, and sign the EasyCLA, I should be able to get this merged quickly. |
|
@twoseat Thanks for the comment! I renamed the appropriate classes from |
twoseat
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.
Looks great with just a couple of issues. Once updated I'll put some integration tests behind it, which almost always reveal a problem (generally a gap between the API and the documentation, not us!)
| import org.cloudfoundry.client.v3.ToOneRelationship; | ||
| import org.junit.Test; | ||
|
|
||
| public class CreateRoleRequestTest { |
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.
Please add a couple of tests for the @Value.Check in the request.
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.
Will do
| import static org.cloudfoundry.operations.applications.ApplicationHealthCheck.PORT; | ||
| import static org.junit.Assume.assumeTrue; | ||
|
|
||
| @org.junit.Ignore |
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.
Should this be here?
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.
Oops, my bad. Will remove it
|
@twoseat Could you take another look? |
Fixes #1078