-
Notifications
You must be signed in to change notification settings - Fork 32
Feat: Added SetDatafileAccessToken method in OptimizelyFactory #384
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
Pull Request Test Coverage Report for Build 1447
💛 - Coveralls |
String expected = "datafile-access-token"; | ||
OptimizelyFactory.setDatafileAccessToken(expected); | ||
assertEquals(expected, PropertyUtils.get(HttpProjectConfigManager.CONFIG_DATAFILE_AUTH_TOKEN)); |
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.
You have already tested this previously. Why here? This can be removed.
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 PR may not be needed.
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 feature request was to maintain consistency and support for these global setters to override system parameters. They are convenience methods so not strictly necessary, but they add visibility/discoverability as well so I see no harm in adding them. That being said, as a very minimum we should update the README.md
removed extra line of authtoken test
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.
LGTM
Summary
Test plan