-
Notifications
You must be signed in to change notification settings - Fork 306
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
Use headers only #446
Use headers only #446
Conversation
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 !
/azp run DataDog.datadogpy.integration |
Azure Pipelines successfully started running 1 pipeline(s). |
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'm seeing a lot of integration test failures that I haven't seen without this PR. Specifically:
- Any integration tests that try to send metrics fail with 403.
- Any integration tests that try to create events fail with 403.
- Any integration tests that try to post service check statuses fail with 403.
Have these API endpoints been adapted to respect the headers? If not, they'll need to be before we can accept this PR (alternatively we would need to differentiate which endpoint the HTTP request is being sent to and based on that we'd need to add headers or query params)
/azp run |
/azp run DataDog.datadogpy.integration |
/azp run |
Comment was made before the most recent commit for PR 446 in repo DataDog/datadogpy |
1 similar comment
Comment was made before the most recent commit for PR 446 in repo DataDog/datadogpy |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run DataDog.datadogpy.integration |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run DataDog.datadogpy.integration |
Azure Pipelines successfully started running 1 pipeline(s). |
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
* Use headers only * Check if api_key is required in params for some endpoints * Add unit test for api_keys in params * Fix blank lines * Remove more spaces * Add a set of excluded paths * flake * flake8 * Flake8 on another file
* Use headers only * Check if api_key is required in params for some endpoints * Add unit test for api_keys in params * Fix blank lines * Remove more spaces * Add a set of excluded paths * flake * flake8 * Flake8 on another file
Datadog now accepts api and app keys in headers. This PR modified datadogpy to pass api and app keys in headers only.