Skip to content

Conversation

@thbkrkr
Copy link
Contributor

@thbkrkr thbkrkr commented Sep 10, 2016

Signed-off-by: thb thb.krkr@gmail.com

type CkRequest struct {
client *Client
AccessRules []AccessRule `json:"accessRules"`
Redirection string `json:"redirection"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make this parameter optional ? https://api.ovh.com/1.0/auth.json

@yadutaf
Copy link
Contributor

yadutaf commented Sep 12, 2016

Thanks for the fix! Can you add/fix related unit tests?

@thbkrkr
Copy link
Contributor Author

thbkrkr commented Sep 12, 2016

I have added 'omitempty' to make the parameter optional.
It fixes the unit tests. I don't know what pertinent unit test to add.
I have also fixed a typo in the test function names.

@yadutaf
Copy link
Contributor

yadutaf commented Sep 12, 2016

Thanks ! I'd add a test to make sure NewCkRequestWithRedirection and then issuing a requests actually sends the redirection field

Signed-off-by: thb <thb.krkr@gmail.com>
@yadutaf yadutaf merged commit d6763cc into ovh:master Nov 9, 2016
@yadutaf
Copy link
Contributor

yadutaf commented Nov 9, 2016

Merged. Thanks !

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.

2 participants