-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added support for Authenticated Datafiles (#271)
* add enum constants for auth datafile * create AuthDatafileConfigManager which extends PollingConfigManager and create constructor * override fetch_datafile method in AuthDatafilePollingConfigManager to add access token to authorization header * add import statement for AuthDatafilePollingConfigManager and add conditional for it based on if access token is provided * add setter method for access_token * add 3 tests for AuthDatafilePollingConfigManager * modify expected_datafile_url to use presets in enums for consistency * add test for optimizely.py for condition where AuthDatafilePollingConfigManager will be used * modify access_token input check to disallow an empty or None access_token * style: fix linting issues * style: remove whitespace for linting * style: rewrite test comment * refactor: reorder constructor argument for access_token * refactor: change args to **kwargs and add a url_template setter method * docs: add method comments * refactor: convert to *args and **kwargs and remove url setter method * docs: add constructor comment * refactor: make requested changes Co-authored-by: Pawel Szczodruch <44238966+pawels-optimizely@users.noreply.github.com>
- Loading branch information
1 parent
30ff44c
commit 93689b9
Showing
5 changed files
with
127 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters