Skip to content
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

Add support for basicAuth and query in Synthetics resource #586

Merged
merged 2 commits into from
Jul 21, 2020

Conversation

therve
Copy link
Contributor

@therve therve commented Jul 21, 2020

This adds 2 requests fields that we didn't expose previously. As request_headers, this needs to be outside of the request attribute but it only supports basic types.

Closes #305

therve added 2 commits July 21, 2020 14:14
This adds 2 requests fields that we didn't expose previously. As
`request_headers`, this needs to be outside of the `request` attribute
but it only supports basic types.
@therve therve changed the title Pull request for therve/synthetics-basic-auth Add support for basicAuth and query in Synthetics resource Jul 21, 2020
@@ -125,6 +125,10 @@ The following arguments are supported:
- `method` - (Required) no-op, use GET
- `url` - (Required) Any url
- `request_headers` - (Optional) Header name and value map
- `request_query` - (Optional) Query arguments name and value map
- `request_basicauth` - (Optional) Array of 1 item containing HTTP basic authentication credentials
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it an array of one item and not the item directly?

Comment on lines +52 to +56
"request_query": {
Type: schema.TypeMap,
Optional: true,
},
"request_basicauth": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For my knowledge, you said As request_headers, this needs to be outside of the request but why?

@therve therve merged commit c9c8141 into master Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Authentication for datadog_synthetics_tests
4 participants