Skip to content

Commit

Permalink
update cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzou committed Oct 25, 2024
1 parent fac7edf commit 5ff3e2a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 86 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-01-12T17:06:42.723708+01:00
2024-10-25T13:56:56.877909-04:00
98 changes: 13 additions & 85 deletions datadog/tests/cassettes/TestAccDatadogIPAllowlist_CreateUpdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ interactions:
content_length: -1
uncompressed: true
body: |
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":false,"entries":[{"data":{"type":"ip_allowlist_entry","id":"65c5d736-46b5-42e5-bad0-2ac8eaca6de5","attributes":{"note":"entry 2","cidr_block":"1.2.3.4/32","created_at":"2024-01-12T16:06:46.671882+00:00","modified_at":"2024-01-12T16:06:46.671882+00:00"}}},{"data":{"type":"ip_allowlist_entry","id":"7a874ede-36e2-4742-95af-1f9f109b5b71","attributes":{"note":"entry 1","cidr_block":"127.0.0.1/32","created_at":"2024-01-12T16:06:46.671882+00:00","modified_at":"2024-01-12T16:06:46.671882+00:00"}}},{"data":{"type":"ip_allowlist_entry","id":"40c38a6f-e850-453f-a6e3-ebb9398a77c8","attributes":{"note":"ipv6 entry","cidr_block":"::/0","created_at":"2024-01-12T16:06:46.671882+00:00","modified_at":"2024-01-12T16:06:46.671882+00:00"}}}]}}}
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":false,"entries":[{"data":{"type":"ip_allowlist_entry","id":"d965f209-6165-4622-8e60-caf7e8556a33","attributes":{"cidr_block":"1.2.3.4/32","note":"entry 2","created_at":"2024-10-25T17:57:00.445244+00:00","modified_at":"2024-10-25T17:57:00.445244+00:00"}}},{"data":{"type":"ip_allowlist_entry","id":"30082066-888c-4d1a-ab97-4583696c5025","attributes":{"cidr_block":"127.0.0.1/32","note":"entry 1","created_at":"2024-10-25T17:57:00.445244+00:00","modified_at":"2024-10-25T17:57:00.445244+00:00"}}},{"data":{"type":"ip_allowlist_entry","id":"0bb48462-f50c-46a1-9e62-f086cc00e834","attributes":{"cidr_block":"::/0","note":"ipv6 entry","created_at":"2024-10-25T17:57:00.445244+00:00","modified_at":"2024-10-25T17:57:00.445244+00:00"}}}]}}}
headers:
Content-Type:
- application/json
status: 200 OK
code: 200
duration: 512.341216ms
duration: 163.7425ms
- id: 1
request:
proto: HTTP/1.1
Expand Down Expand Up @@ -67,13 +67,13 @@ interactions:
content_length: -1
uncompressed: true
body: |
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":false,"entries":[{"data":{"type":"ip_allowlist_entry","id":"65c5d736-46b5-42e5-bad0-2ac8eaca6de5","attributes":{"note":"entry 2","created_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"1.2.3.4/32","modified_at":"2024-01-12T16:06:46.671882+00:00"}}},{"data":{"type":"ip_allowlist_entry","id":"7a874ede-36e2-4742-95af-1f9f109b5b71","attributes":{"note":"entry 1","created_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"127.0.0.1/32","modified_at":"2024-01-12T16:06:46.671882+00:00"}}},{"data":{"type":"ip_allowlist_entry","id":"40c38a6f-e850-453f-a6e3-ebb9398a77c8","attributes":{"note":"ipv6 entry","created_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"::/0","modified_at":"2024-01-12T16:06:46.671882+00:00"}}}]}}}
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":false,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"modified_at":"2024-10-25T17:57:00.445244+00:00","cidr_block":"1.2.3.4/32","created_at":"2024-10-25T17:57:00.445244+00:00","note":"entry 2"},"id":"d965f209-6165-4622-8e60-caf7e8556a33"}},{"data":{"type":"ip_allowlist_entry","attributes":{"modified_at":"2024-10-25T17:57:00.445244+00:00","cidr_block":"127.0.0.1/32","created_at":"2024-10-25T17:57:00.445244+00:00","note":"entry 1"},"id":"30082066-888c-4d1a-ab97-4583696c5025"}},{"data":{"type":"ip_allowlist_entry","attributes":{"modified_at":"2024-10-25T17:57:00.445244+00:00","cidr_block":"::/0","created_at":"2024-10-25T17:57:00.445244+00:00","note":"ipv6 entry"},"id":"0bb48462-f50c-46a1-9e62-f086cc00e834"}}]}}}
headers:
Content-Type:
- application/json
status: 200 OK
code: 200
duration: 174.13143ms
duration: 61.056375ms
- id: 2
request:
proto: HTTP/1.1
Expand Down Expand Up @@ -102,13 +102,13 @@ interactions:
content_length: -1
uncompressed: true
body: |
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":false,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"modified_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"1.2.3.4/32","created_at":"2024-01-12T16:06:46.671882+00:00","note":"entry 2"},"id":"65c5d736-46b5-42e5-bad0-2ac8eaca6de5"}},{"data":{"type":"ip_allowlist_entry","attributes":{"modified_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"127.0.0.1/32","created_at":"2024-01-12T16:06:46.671882+00:00","note":"entry 1"},"id":"7a874ede-36e2-4742-95af-1f9f109b5b71"}},{"data":{"type":"ip_allowlist_entry","attributes":{"modified_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"::/0","created_at":"2024-01-12T16:06:46.671882+00:00","note":"ipv6 entry"},"id":"40c38a6f-e850-453f-a6e3-ebb9398a77c8"}}]}}}
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":false,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"1.2.3.4/32","modified_at":"2024-10-25T17:57:00.445244+00:00","created_at":"2024-10-25T17:57:00.445244+00:00","note":"entry 2"},"id":"d965f209-6165-4622-8e60-caf7e8556a33"}},{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"127.0.0.1/32","modified_at":"2024-10-25T17:57:00.445244+00:00","created_at":"2024-10-25T17:57:00.445244+00:00","note":"entry 1"},"id":"30082066-888c-4d1a-ab97-4583696c5025"}},{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"::/0","modified_at":"2024-10-25T17:57:00.445244+00:00","created_at":"2024-10-25T17:57:00.445244+00:00","note":"ipv6 entry"},"id":"0bb48462-f50c-46a1-9e62-f086cc00e834"}}]}}}
headers:
Content-Type:
- application/json
status: 200 OK
code: 200
duration: 173.167744ms
duration: 78.546916ms
- id: 3
request:
proto: HTTP/1.1
Expand Down Expand Up @@ -140,13 +140,13 @@ interactions:
content_length: -1
uncompressed: true
body: |
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":true,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"note":"ipv6 entry","created_at":"2024-01-12T16:06:46.671882+00:00","modified_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"::/0"},"id":"40c38a6f-e850-453f-a6e3-ebb9398a77c8"}},{"data":{"type":"ip_allowlist_entry","attributes":{"note":"all","created_at":"2024-01-12T16:06:49.040767+00:00","modified_at":"2024-01-12T16:06:49.040767+00:00","cidr_block":"0.0.0.0/0"},"id":"dbe1c027-682e-4781-ba30-856afe48456b"}},{"data":{"type":"ip_allowlist_entry","attributes":{"note":"fake entry","created_at":"2024-01-12T16:06:46.671882+00:00","modified_at":"2024-01-12T16:06:49.038293+00:00","cidr_block":"1.2.3.4/32"},"id":"65c5d736-46b5-42e5-bad0-2ac8eaca6de5"}}]}}}
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":true,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"::/0","note":"ipv6 entry","modified_at":"2024-10-25T17:57:00.445244+00:00","created_at":"2024-10-25T17:57:00.445244+00:00"},"id":"0bb48462-f50c-46a1-9e62-f086cc00e834"}},{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"0.0.0.0/0","note":"all","modified_at":"2024-10-25T17:57:02.451509+00:00","created_at":"2024-10-25T17:57:02.451509+00:00"},"id":"dcd7628d-205d-49a6-a555-ef08d171a984"}},{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"1.2.3.4/32","note":"fake entry","modified_at":"2024-10-25T17:57:02.445194+00:00","created_at":"2024-10-25T17:57:00.445244+00:00"},"id":"d965f209-6165-4622-8e60-caf7e8556a33"}}]}}}
headers:
Content-Type:
- application/json
status: 200 OK
code: 200
duration: 195.627689ms
duration: 136.224042ms
- id: 4
request:
proto: HTTP/1.1
Expand Down Expand Up @@ -175,86 +175,14 @@ interactions:
content_length: -1
uncompressed: true
body: |
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":true,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"note":"all","created_at":"2024-01-12T16:06:49.040767+00:00","cidr_block":"0.0.0.0/0","modified_at":"2024-01-12T16:06:49.040767+00:00"},"id":"dbe1c027-682e-4781-ba30-856afe48456b"}},{"data":{"type":"ip_allowlist_entry","attributes":{"note":"fake entry","created_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"1.2.3.4/32","modified_at":"2024-01-12T16:06:49.038293+00:00"},"id":"65c5d736-46b5-42e5-bad0-2ac8eaca6de5"}},{"data":{"type":"ip_allowlist_entry","attributes":{"note":"ipv6 entry","created_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"::/0","modified_at":"2024-01-12T16:06:46.671882+00:00"},"id":"40c38a6f-e850-453f-a6e3-ebb9398a77c8"}}]}}}
{"data":{"type":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":true,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"0.0.0.0/0","note":"all","created_at":"2024-10-25T17:57:02.451509+00:00","modified_at":"2024-10-25T17:57:02.451509+00:00"},"id":"dcd7628d-205d-49a6-a555-ef08d171a984"}},{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"1.2.3.4/32","note":"fake entry","created_at":"2024-10-25T17:57:00.445244+00:00","modified_at":"2024-10-25T17:57:02.445194+00:00"},"id":"d965f209-6165-4622-8e60-caf7e8556a33"}},{"data":{"type":"ip_allowlist_entry","attributes":{"cidr_block":"::/0","note":"ipv6 entry","created_at":"2024-10-25T17:57:00.445244+00:00","modified_at":"2024-10-25T17:57:00.445244+00:00"},"id":"0bb48462-f50c-46a1-9e62-f086cc00e834"}}]}}}
headers:
Content-Type:
- application/json
status: 200 OK
code: 200
duration: 217.166576ms
duration: 85.060917ms
- id: 5
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/ip_allowlist
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":"ip_allowlist","id":"4dee724d-00cc-11ea-a77b-570c9d03c6c5","attributes":{"enabled":true,"entries":[{"data":{"type":"ip_allowlist_entry","attributes":{"note":"all","modified_at":"2024-01-12T16:06:49.040767+00:00","cidr_block":"0.0.0.0/0","created_at":"2024-01-12T16:06:49.040767+00:00"},"id":"dbe1c027-682e-4781-ba30-856afe48456b"}},{"data":{"type":"ip_allowlist_entry","attributes":{"note":"fake entry","modified_at":"2024-01-12T16:06:49.038293+00:00","cidr_block":"1.2.3.4/32","created_at":"2024-01-12T16:06:46.671882+00:00"},"id":"65c5d736-46b5-42e5-bad0-2ac8eaca6de5"}},{"data":{"type":"ip_allowlist_entry","attributes":{"note":"ipv6 entry","modified_at":"2024-01-12T16:06:46.671882+00:00","cidr_block":"::/0","created_at":"2024-01-12T16:06:46.671882+00:00"},"id":"40c38a6f-e850-453f-a6e3-ebb9398a77c8"}}]}}}
headers:
Content-Type:
- application/json
status: 200 OK
code: 200
duration: 218.288945ms
- id: 6
request:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
content_length: 175
transfer_encoding: []
trailer: {}
host: api.datadoghq.com
remote_addr: ""
request_uri: ""
body: |
{"data":{"attributes":{"enabled":true,"entries":[{"data":{"attributes":{"cidr_block":"1.2.3.4/32","note":"fake entry"},"type":"ip_allowlist_entry"}}]},"type":"ip_allowlist"}}
form: {}
headers:
Accept:
- application/json
Content-Type:
- application/json
url: https://api.datadoghq.com/api/v2/ip_allowlist
method: PATCH
response:
proto: HTTP/1.1
proto_major: 1
proto_minor: 1
transfer_encoding:
- chunked
trailer: {}
content_length: -1
uncompressed: true
body: '{"errors":["Cannot enable or keep enabled an IP Allowlist without the current IP address in it"]}'
headers:
Content-Type:
- application/json
status: 400 Bad Request
code: 400
duration: 337.30072ms
- id: 7
request:
proto: HTTP/1.1
proto_major: 1
Expand Down Expand Up @@ -291,8 +219,8 @@ interactions:
- application/json
status: 200 OK
code: 200
duration: 319.129196ms
- id: 8
duration: 125.512041ms
- id: 6
request:
proto: HTTP/1.1
proto_major: 1
Expand Down Expand Up @@ -326,4 +254,4 @@ interactions:
- application/json
status: 200 OK
code: 200
duration: 169.360386ms
duration: 75.733875ms

0 comments on commit 5ff3e2a

Please sign in to comment.