Skip to content

Commit

Permalink
update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks committed Dec 22, 2021
1 parent ed4a537 commit c1ccea3
Show file tree
Hide file tree
Showing 23 changed files with 260 additions and 177 deletions.
20 changes: 10 additions & 10 deletions fastly/fixtures/acl_entries/acl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
version: 1
interactions:
- request:
body: ServiceID=5XPrLhrnNoOk0tcpWh1fpS&ServiceVersion=2&name=test_acl_ACLEntries
body: ServiceID=7i6HN3TK9wS159v2gPAZ8A&ServiceVersion=2&name=test_acl_ACLEntries
form:
ServiceID:
- 5XPrLhrnNoOk0tcpWh1fpS
- 7i6HN3TK9wS159v2gPAZ8A
ServiceVersion:
- "2"
name:
Expand All @@ -14,11 +14,11 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
url: https://api.fastly.com/service/5XPrLhrnNoOk0tcpWh1fpS/version/2/acl
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/2/acl
method: POST
response:
body: '{"service_id":"5XPrLhrnNoOk0tcpWh1fpS","version":"2","name":"test_acl_ACLEntries","deleted_at":null,"id":"052T9UE1HyiRIW2K9FiMr3","created_at":"2021-11-03T14:30:48Z","updated_at":"2021-11-03T14:30:48Z"}'
body: '{"service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"2","name":"test_acl_ACLEntries","updated_at":"2021-12-22T03:02:13Z","id":"12pStJK7x7jIrG6SGYMaUb","created_at":"2021-12-22T03:02:13Z","deleted_at":null}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -27,11 +27,11 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:48 GMT
- Wed, 22 Dec 2021 03:02:13 GMT
Fastly-Ratelimit-Remaining:
- "4991"
- "4997"
Fastly-Ratelimit-Reset:
- "1635951600"
- "1640145600"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -45,9 +45,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9036-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9035-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949848.407776,VS0,VE513
- S1640142133.168512,VS0,VE252
status: 200 OK
code: 200
duration: ""
24 changes: 12 additions & 12 deletions fastly/fixtures/acl_entries/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
version: 1
interactions:
- request:
body: ACLID=052T9UE1HyiRIW2K9FiMr3&ServiceID=5XPrLhrnNoOk0tcpWh1fpS&comment=test+entry&ip=10.0.0.3&subnet=8
body: ACLID=12pStJK7x7jIrG6SGYMaUb&ServiceID=7i6HN3TK9wS159v2gPAZ8A&comment=test+entry&ip=10.0.0.3&subnet=8
form:
ACLID:
- 052T9UE1HyiRIW2K9FiMr3
- 12pStJK7x7jIrG6SGYMaUb
ServiceID:
- 5XPrLhrnNoOk0tcpWh1fpS
- 7i6HN3TK9wS159v2gPAZ8A
comment:
- test entry
ip:
Expand All @@ -18,12 +18,12 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
url: https://api.fastly.com/service/5XPrLhrnNoOk0tcpWh1fpS/acl/052T9UE1HyiRIW2K9FiMr3/entry
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/acl/12pStJK7x7jIrG6SGYMaUb/entry
method: POST
response:
body: '{"service_id":"5XPrLhrnNoOk0tcpWh1fpS","acl_id":"052T9UE1HyiRIW2K9FiMr3","ip":"10.0.0.3","subnet":8,"comment":"test
entry","id":"0rSunhGyoHgvQWj05vPlC0","negated":0,"created_at":"2021-11-03T14:30:49Z","updated_at":"2021-11-03T14:30:49Z"}'
body: '{"service_id":"7i6HN3TK9wS159v2gPAZ8A","acl_id":"12pStJK7x7jIrG6SGYMaUb","ip":"10.0.0.3","subnet":8,"comment":"test
entry","updated_at":"2021-12-22T03:02:13Z","id":"1uf5l6laVrMWujt7AZAI6c","created_at":"2021-12-22T03:02:13Z","negated":0}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -32,11 +32,11 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:49 GMT
- Wed, 22 Dec 2021 03:02:13 GMT
Fastly-Ratelimit-Remaining:
- "4990"
- "4996"
Fastly-Ratelimit-Reset:
- "1635951600"
- "1640145600"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -50,9 +50,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9036-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9036-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949849.961590,VS0,VE216
- S1640142133.430096,VS0,VE284
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/acl_entries/create_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service
method: POST
response:
body: '{"customer_id":"51MumwLiSJyFTWhtbByYgR","comment":"go-fastly client test","name":"test_service_ACLEntries","type":"vcl","paused":false,"publish_key":"","id":"5XPrLhrnNoOk0tcpWh1fpS","versions":[{"comment":"","staging":false,"service_id":"5XPrLhrnNoOk0tcpWh1fpS","deployed":false,"testing":false,"active":false,"number":1,"deleted_at":null,"created_at":"2021-11-03T14:30:47Z","locked":false,"updated_at":"2021-11-03T14:30:47Z"}],"deleted_at":null,"created_at":"2021-11-03T14:30:47Z","updated_at":"2021-11-03T14:30:47Z"}'
body: '{"customer_id":"2mEgzQsbxIHPAkmXcKCBG5","comment":"go-fastly client test","name":"test_service_ACLEntries","type":"vcl","created_at":"2021-12-22T03:02:12Z","deleted_at":null,"publish_key":"","id":"7i6HN3TK9wS159v2gPAZ8A","updated_at":"2021-12-22T03:02:12Z","versions":[{"service_id":"7i6HN3TK9wS159v2gPAZ8A","deployed":false,"active":false,"deleted_at":null,"locked":false,"created_at":"2021-12-22T03:02:12Z","updated_at":"2021-12-22T03:02:12Z","testing":false,"comment":"","number":1,"staging":false}],"paused":false}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -27,11 +27,11 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:47 GMT
- Wed, 22 Dec 2021 03:02:12 GMT
Fastly-Ratelimit-Remaining:
- "4993"
- "4999"
Fastly-Ratelimit-Reset:
- "1635951600"
- "1640145600"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -45,9 +45,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9037-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9037-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949847.308442,VS0,VE513
- S1640142133.512806,VS0,VE368
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/acl_entries/delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
url: https://api.fastly.com/service/5XPrLhrnNoOk0tcpWh1fpS/acl/052T9UE1HyiRIW2K9FiMr3/entry/0rSunhGyoHgvQWj05vPlC0
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/acl/12pStJK7x7jIrG6SGYMaUb/entry/1uf5l6laVrMWujt7AZAI6c
method: DELETE
response:
body: '{"status":"ok"}'
Expand All @@ -19,11 +19,11 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:50 GMT
- Wed, 22 Dec 2021 03:02:15 GMT
Fastly-Ratelimit-Remaining:
- "4988"
- "4994"
Fastly-Ratelimit-Reset:
- "1635951600"
- "1640145600"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -37,9 +37,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9037-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949850.256735,VS0,VE205
- S1640142135.810588,VS0,VE268
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/acl_entries/delete_acl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
url: https://api.fastly.com/service/5XPrLhrnNoOk0tcpWh1fpS/version/2/acl/test_acl_ACLEntries
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/2/acl/test_acl_ACLEntries
method: DELETE
response:
body: '{"status":"ok"}'
Expand All @@ -19,11 +19,11 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:50 GMT
- Wed, 22 Dec 2021 03:02:15 GMT
Fastly-Ratelimit-Remaining:
- "4987"
- "4993"
Fastly-Ratelimit-Reset:
- "1635951600"
- "1640145600"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -37,9 +37,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9036-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949850.498158,VS0,VE203
- S1640142135.086844,VS0,VE368
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/acl_entries/delete_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
url: https://api.fastly.com/service/5XPrLhrnNoOk0tcpWh1fpS
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A
method: DELETE
response:
body: '{"status":"ok"}'
Expand All @@ -19,11 +19,11 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:51 GMT
- Wed, 22 Dec 2021 03:02:15 GMT
Fastly-Ratelimit-Remaining:
- "4986"
- "4992"
Fastly-Ratelimit-Reset:
- "1635951600"
- "1640145600"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -37,9 +37,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9036-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9037-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949851.773682,VS0,VE553
- S1640142135.466182,VS0,VE308
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/acl_entries/get.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
url: https://api.fastly.com/service/5XPrLhrnNoOk0tcpWh1fpS/acl/052T9UE1HyiRIW2K9FiMr3/entry/0rSunhGyoHgvQWj05vPlC0
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/acl/12pStJK7x7jIrG6SGYMaUb/entry/1uf5l6laVrMWujt7AZAI6c
method: GET
response:
body: '{"negated":"0","id":"0rSunhGyoHgvQWj05vPlC0","subnet":8,"comment":"test
entry","created_at":"2021-11-03T14:30:49Z","acl_id":"052T9UE1HyiRIW2K9FiMr3","service_id":"5XPrLhrnNoOk0tcpWh1fpS","ip":"10.0.0.3","updated_at":"2021-11-03T14:30:49Z"}'
body: '{"acl_id":"12pStJK7x7jIrG6SGYMaUb","negated":"0","id":"1uf5l6laVrMWujt7AZAI6c","ip":"10.0.0.3","created_at":"2021-12-22T03:02:13Z","subnet":8,"service_id":"7i6HN3TK9wS159v2gPAZ8A","comment":"test
entry","updated_at":"2021-12-22T03:02:13Z"}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -20,7 +20,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:49 GMT
- Wed, 22 Dec 2021 03:02:14 GMT
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -34,9 +34,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9037-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949850.578290,VS0,VE405
- S1640142134.252426,VS0,VE237
status: 200 OK
code: 200
duration: ""
12 changes: 6 additions & 6 deletions fastly/fixtures/acl_entries/list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/5.1.1 (+github.com/fastly/go-fastly; go1.17)
url: https://api.fastly.com/service/5XPrLhrnNoOk0tcpWh1fpS/acl/052T9UE1HyiRIW2K9FiMr3/entries
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/acl/12pStJK7x7jIrG6SGYMaUb/entries
method: GET
response:
body: '[{"service_id":"5XPrLhrnNoOk0tcpWh1fpS","comment":"test entry","id":"0rSunhGyoHgvQWj05vPlC0","subnet":8,"negated":"0","created_at":"2021-11-03T14:30:49Z","updated_at":"2021-11-03T14:30:49Z","acl_id":"052T9UE1HyiRIW2K9FiMr3","ip":"10.0.0.3"}]'
body: '[{"comment":"test entry","updated_at":"2021-12-22T03:02:13Z","ip":"10.0.0.3","created_at":"2021-12-22T03:02:13Z","negated":"0","subnet":8,"id":"1uf5l6laVrMWujt7AZAI6c","acl_id":"12pStJK7x7jIrG6SGYMaUb","service_id":"7i6HN3TK9wS159v2gPAZ8A"}]'
headers:
Accept-Ranges:
- bytes
Expand All @@ -19,7 +19,7 @@ interactions:
Content-Type:
- application/json
Date:
- Wed, 03 Nov 2021 14:30:49 GMT
- Wed, 22 Dec 2021 03:02:13 GMT
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -33,9 +33,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9037-CONTROL-SLWDC, cache-man4139-MAN
- cache-control-slwdc9035-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1635949849.208039,VS0,VE339
- S1640142134.729597,VS0,VE254
status: 200 OK
code: 200
duration: ""
42 changes: 42 additions & 0 deletions fastly/fixtures/acl_entries/list2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
version: 1
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/acl/12pStJK7x7jIrG6SGYMaUb/entries?page=1&per_page=100
method: GET
response:
body: '[{"subnet":8,"id":"1uf5l6laVrMWujt7AZAI6c","updated_at":"2021-12-22T03:02:13Z","service_id":"7i6HN3TK9wS159v2gPAZ8A","acl_id":"12pStJK7x7jIrG6SGYMaUb","ip":"10.0.0.3","negated":"0","created_at":"2021-12-22T03:02:13Z","comment":"test
entry"}]'
headers:
Accept-Ranges:
- bytes
Cache-Control:
- no-store
Content-Type:
- application/json
Date:
- Wed, 22 Dec 2021 03:02:14 GMT
Status:
- 200 OK
Strict-Transport-Security:
- max-age=31536000
Vary:
- Accept-Encoding
Via:
- 1.1 varnish, 1.1 varnish
X-Cache:
- MISS, MISS
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9037-CONTROL-SLWDC, cache-tyo11945-TYO
X-Timer:
- S1640142134.993590,VS0,VE234
status: 200 OK
code: 200
duration: ""
Loading

0 comments on commit c1ccea3

Please sign in to comment.