-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Resources to Cloudflare Terraform Provider (#2633)
* Allow customers to provision which resources they collect when configuring a Cloudflare account using the Terraform Provider and update tests accordingly.
- Loading branch information
1 parent
8bcd826
commit 9ffde5c
Showing
7 changed files
with
163 additions
and
80 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
2 changes: 1 addition & 1 deletion
2
datadog/tests/cassettes/TestAccDatadogSoftwareCatalogEntity_Basic.freeze
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-10-01T09:42:13.446934-04:00 | ||
2024-10-31T15:31:32.714325-04:00 |
28 changes: 14 additions & 14 deletions
28
datadog/tests/cassettes/TestAccDatadogSoftwareCatalogEntity_Basic.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
datadog/tests/cassettes/TestAccIntegrationCloudflareAccountBasic.freeze
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-04-10T08:26:30.816762-04:00 | ||
2024-10-31T16:13:12.292368-04:00 |
163 changes: 107 additions & 56 deletions
163
datadog/tests/cassettes/TestAccIntegrationCloudflareAccountBasic.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,109 @@ | ||
--- | ||
version: 2 | ||
interactions: | ||
- request: | ||
body: | | ||
{"data":{"attributes":{"api_key":"1234567891012331asdd","email":"[email protected]","name":"tf-TestAccIntegrationCloudflareAccountBasic-local-1681129590"},"type":"cloudflare-accounts"}} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
url: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts | ||
method: POST | ||
id: 0 | ||
response: | ||
body: | | ||
{"data":{"type":"cloudflare-accounts","attributes":{"email":"[email protected]","name":"tf-TestAccIntegrationCloudflareAccountBasic-local-1681129590"},"id":"9e9054f8a21fd8dd20feee8e9fa31447"}} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 201 Created | ||
code: 201 | ||
duration: "0ms" | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
url: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/9e9054f8a21fd8dd20feee8e9fa31447 | ||
method: GET | ||
id: 1 | ||
response: | ||
body: | | ||
{"data":{"type":"cloudflare-accounts","id":"9e9054f8a21fd8dd20feee8e9fa31447","attributes":{"email":"[email protected]","name":"tf-TestAccIntegrationCloudflareAccountBasic-local-1681129590"}}} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 200 OK | ||
code: 200 | ||
duration: "0ms" | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- '*/*' | ||
url: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/9e9054f8a21fd8dd20feee8e9fa31447 | ||
method: DELETE | ||
id: 2 | ||
response: | ||
body: "" | ||
headers: | ||
Content-Type: | ||
- text/html; charset=utf-8 | ||
status: 204 No Content | ||
code: 204 | ||
duration: "0ms" | ||
- id: 0 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 226 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: api.datadoghq.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: | | ||
{"data":{"attributes":{"api_key":"12345","email":"[email protected]","name":"tf-TestAccIntegrationCloudflareAccountBasic-local-1730405592","resources":["web"]},"type":"cloudflare-accounts"}} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
url: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts | ||
method: POST | ||
response: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
transfer_encoding: | ||
- chunked | ||
trailer: {} | ||
content_length: -1 | ||
uncompressed: true | ||
body: | | ||
{"data":{"type":"cloudflare-accounts","attributes":{"resources":["web"],"email":"[email protected]","zones":[],"name":"tf-TestAccIntegrationCloudflareAccountBasic-local-1730405592"},"id":"0b7e1a40578e2e4742c5183aa3b0502f9116ab249b16dc10ff09135a51663560"}} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 201 Created | ||
code: 201 | ||
duration: 554.743709ms | ||
- id: 1 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: api.datadoghq.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
url: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/0b7e1a40578e2e4742c5183aa3b0502f9116ab249b16dc10ff09135a51663560 | ||
method: GET | ||
response: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
transfer_encoding: | ||
- chunked | ||
trailer: {} | ||
content_length: -1 | ||
uncompressed: true | ||
body: | | ||
{"data":{"type":"cloudflare-accounts","attributes":{"zones":[],"email":"[email protected]","resources":["web"],"name":"tf-TestAccIntegrationCloudflareAccountBasic-local-1730405592"},"id":"0b7e1a40578e2e4742c5183aa3b0502f9116ab249b16dc10ff09135a51663560"}} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
status: 200 OK | ||
code: 200 | ||
duration: 85.251292ms | ||
- id: 2 | ||
request: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
content_length: 0 | ||
transfer_encoding: [] | ||
trailer: {} | ||
host: api.datadoghq.com | ||
remote_addr: "" | ||
request_uri: "" | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- '*/*' | ||
url: https://api.datadoghq.com/api/v2/integrations/cloudflare/accounts/0b7e1a40578e2e4742c5183aa3b0502f9116ab249b16dc10ff09135a51663560 | ||
method: DELETE | ||
response: | ||
proto: HTTP/1.1 | ||
proto_major: 1 | ||
proto_minor: 1 | ||
transfer_encoding: [] | ||
trailer: {} | ||
content_length: 0 | ||
uncompressed: false | ||
body: "" | ||
headers: | ||
Content-Type: | ||
- text/html; charset=utf-8 | ||
status: 204 No Content | ||
code: 204 | ||
duration: 194.638084ms |
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