-
Notifications
You must be signed in to change notification settings - Fork 26
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
Rsa8e #487
Conversation
|
||
let mergedParams2 = rest.auth.mergeParams(tokenParams2) | ||
expect(mergedParams2.ttl) == 25.0 | ||
expect(mergedParams2.clientId).to(beNil()) |
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 am not really following the test code here. Thee test code is not testing the requestToken
method here but instead you are testing private undocumented APIs. The point of the test is to "should not merge with the configured params and options but instead replace all corresponding values, even when @null@" yet this is not asserting that?
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.
Many thanks, I'll improve it.
@@ -91,6 +91,7 @@ ART_ASSUME_NONNULL_BEGIN | |||
- (NSString *)description; | |||
|
|||
- (ARTAuthOptions *)mergeWith:(ARTAuthOptions *)precedenceOptions; |
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.
Is this function called from somewhere now?
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.
Yes, in authorise
method.
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.
OK, I'll guess it will go away later as now authorize
also replaces rather than merging.
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.
Exactly.
@tcard thanks for feedback, please find time to review. |
LGTM |
As a step by step part of /~https://github.com/ably/docs/pull/113/files