-
Notifications
You must be signed in to change notification settings - Fork 300
Add Remote Config Pubish, Validate, and GetTemplateAtVersion operations #496
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
Conversation
5750833 to
2611e9e
Compare
2611e9e to
c63daf2
Compare
hiranya911
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 pretty good. Just a couple of suggestion on improving the implementation and cleaning up the tests.
src/main/java/com/google/firebase/remoteconfig/FirebaseRemoteConfig.java
Show resolved
Hide resolved
src/test/java/com/google/firebase/remoteconfig/FirebaseRemoteConfigClientImplTest.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| @Test(expected = IllegalStateException.class) | ||
| public void testGetTemplateAtVersionWithInvalidEtags() throws FirebaseRemoteConfigException { |
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.
Which line is supposed to throw in this test case?
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.
Good catch! It should throw on client.getTemplateAtVersion("24");. Converted into to two separate tests.
src/test/java/com/google/firebase/remoteconfig/FirebaseRemoteConfigClientImplTest.java
Show resolved
Hide resolved
hiranya911
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.
Thanks. LGTM with a suggestion.
| @@ -0,0 +1,33 @@ | |||
| package com.google.firebase.remoteconfig.internal; | |||
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.
This can probably live in the parent package as a package-protected class.
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.
Good call! Moved to the parent class and made package protected, including the ctor. Thanks!
getTemplateAtVersion(),publishTemplate(),validateTemplate(), andforcePublishTemplate()operations.Related to: #446