-
Notifications
You must be signed in to change notification settings - Fork 10
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
TDL-16139 Support of service account authentication #53
base: master
Are you sure you want to change the base?
TDL-16139 Support of service account authentication #53
Conversation
with self.assertRaises(Exception) as e: | ||
with MixpanelClient(None, None, None, None,"api_domain", 300) as client_: | ||
pass |
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.
with self.assertRaises(Exception) as e: | |
with MixpanelClient(None, None, None, None,"api_domain", 300) as client_: | |
pass | |
with self.assertRaises(Exception) as e: | |
MixpanelClient(None, None, None, None,"api_domain", 300) |
""" | ||
with MixpanelClient("api_secret", None, None, None,"api_domain", 300) as client_: | ||
pass |
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.
""" | |
with MixpanelClient("api_secret", None, None, None,"api_domain", 300) as client_: | |
pass | |
MixpanelClient("api_secret", None, None, None,"api_domain", 300) |
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.
Unless I am missing something here.
mock_check_access: Mock the check_access method to test authentication. | ||
""" | ||
with MixpanelClient(None, "service_account_username", "service_account_secret", "project_id","api_domain", 300, auth_type="saa") as client_: |
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.
mock_check_access: Mock the check_access method to test authentication. | |
""" | |
with MixpanelClient(None, "service_account_username", "service_account_secret", "project_id","api_domain", 300, auth_type="saa") as client_: | |
MixpanelClient(None, "service_account_username", "service_account_secret", "project_id","api_domain", 300) |
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.
Requested few changes in-line.
Description of change
service_account_username
service_account_secret
project_id
Note: Currently, the build is failing because config parameters for the service account authentication are not added in the UI.
Manual QA steps
Risks
Rollback steps