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

Ensure all relevant 'create' input fields are using pointers. #382

Merged
merged 51 commits into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
29c397a
ACLs
Integralist Nov 3, 2022
b92b4e9
ERLs
Integralist Nov 3, 2022
04e170a
Loggly
Integralist Nov 4, 2022
5961426
SFTP
Integralist Nov 4, 2022
f9d489a
FTP
Integralist Nov 4, 2022
7c31282
S3
Integralist Nov 4, 2022
01aff1f
Azure Blob Storage
Integralist Nov 4, 2022
dcf619d
Datadog
Integralist Nov 4, 2022
a3d80ac
LogShuttle
Integralist Nov 4, 2022
a4220b7
Papertrail
Integralist Nov 4, 2022
41cc747
GCS
Integralist Nov 4, 2022
607a938
HTTPS
Integralist Nov 4, 2022
b9089f1
Honeycomb
Integralist Nov 4, 2022
fd52cbb
Elasticsearch
Integralist Nov 4, 2022
b986419
Gzip
Integralist Nov 4, 2022
89be1b4
NewRelic
Integralist Nov 4, 2022
5381c11
Logentries
Integralist Nov 4, 2022
8f2ef3b
Splunk
Integralist Nov 4, 2022
256b7e4
Digital Ocean
Integralist Nov 4, 2022
3800696
Sumologic
Integralist Nov 4, 2022
cfa1743
Heroku
Integralist Nov 4, 2022
b8f13e8
Syslog
Integralist Nov 4, 2022
98bf48d
Kafka
Integralist Nov 4, 2022
91945a3
Scalyr
Integralist Nov 4, 2022
562dbbd
Kinesis
Integralist Nov 4, 2022
21aab93
OpenStack
Integralist Nov 4, 2022
ec37b2a
BigQuery
Integralist Nov 4, 2022
3147f10
Cloudfiles
Integralist Nov 4, 2022
2ef225c
Headers
Integralist Nov 4, 2022
59c3f33
Backend
Integralist Nov 4, 2022
87ac220
Directors
Integralist Nov 4, 2022
c709f72
Server
Integralist Nov 4, 2022
2e62b91
Domains
Integralist Nov 4, 2022
c0e0be2
PubSub
Integralist Nov 4, 2022
bd977c3
Versions
Integralist Nov 4, 2022
d204bc4
Services
Integralist Nov 4, 2022
935c066
User
Integralist Nov 4, 2022
98cf1b1
Health checks
Integralist Nov 7, 2022
53b615f
VCL
Integralist Nov 7, 2022
963e563
VCL Snippets
Integralist Nov 7, 2022
0b57c95
Conditions
Integralist Nov 7, 2022
e14d396
ACL Entries
Integralist Nov 7, 2022
a91ba80
Pools
Integralist Nov 7, 2022
f1a7d05
Response Objects
Integralist Nov 7, 2022
75ec167
Cache Settings
Integralist Nov 7, 2022
a0fe2b2
Request Settings
Integralist Nov 7, 2022
0b6b220
Service Authorizations
Integralist Nov 7, 2022
171cd7d
Object Store
Integralist Nov 7, 2022
a7087d1
Dictionaries
Integralist Nov 7, 2022
c5d2f77
Dictionary Item
Integralist Nov 7, 2022
a87439d
Token
Integralist Nov 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
VCL Snippets
  • Loading branch information
Integralist committed Nov 7, 2022
commit 963e5630db131e788fdf8c3ae207edb3441d818f
22 changes: 9 additions & 13 deletions fastly/fixtures/vcl_snippets/create_with_all_fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
version: 1
interactions:
- request:
body: ServiceID=7i6HN3TK9wS159v2gPAZ8A&ServiceVersion=80&content=%23vcl&dynamic=1&name=snipdyn&priority=123&type=fetch
body: content=%23vcl&dynamic=1&name=snipdyn&priority=123&type=fetch
form:
ServiceID:
- 7i6HN3TK9wS159v2gPAZ8A
ServiceVersion:
- "80"
content:
- '#vcl'
dynamic:
Expand All @@ -22,11 +18,11 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/80/snippet
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/88/snippet
method: POST
response:
body: '{"content":null,"dynamic":1,"name":"snipdyn","priority":"123","type":"fetch","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"80","deleted_at":null,"updated_at":"2021-11-26T07:21:19Z","created_at":"2021-11-26T07:21:19Z","id":"2lag0ngIB569L99MYVaUMb"}'
body: '{"content":null,"dynamic":1,"name":"snipdyn","priority":"123","type":"fetch","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"88","updated_at":"2022-11-07T12:19:34Z","created_at":"2022-11-07T12:19:34Z","id":"ZoMomE3AaTnyJjM4cslCA1","deleted_at":null}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -35,11 +31,11 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:19 GMT
- Mon, 07 Nov 2022 12:19:34 GMT
Fastly-Ratelimit-Remaining:
- "4956"
- "9990"
Fastly-Ratelimit-Reset:
- "1637913600"
- "1667826000"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -53,9 +49,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-5-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911279.854605,VS0,VE315
- S1667823575.777307,VS0,VE203
status: 200 OK
code: 200
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
version: 1
interactions:
- request:
body: ServiceID=7i6HN3TK9wS159v2gPAZ8A&ServiceVersion=80&content=%23vcl&dynamic=0&name=snipver&type=fetch
body: content=%23vcl&dynamic=0&name=snipver&type=fetch
form:
ServiceID:
- 7i6HN3TK9wS159v2gPAZ8A
ServiceVersion:
- "80"
content:
- '#vcl'
dynamic:
Expand All @@ -20,11 +16,11 @@ interactions:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/80/snippet
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/88/snippet
method: POST
response:
body: '{"content":"#vcl","dynamic":0,"name":"snipver","type":"fetch","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"80","priority":100,"created_at":"2021-11-26T07:21:18Z","updated_at":"2021-11-26T07:21:18Z","id":"2t19aLnUdhacWY37Cgi3d9","deleted_at":null}'
body: '{"content":"#vcl","dynamic":0,"name":"snipver","type":"fetch","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"88","priority":100,"deleted_at":null,"created_at":"2022-11-07T12:19:34Z","id":"WT2ibuLy1IEgBOgN7ZvtI4","updated_at":"2022-11-07T12:19:34Z"}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -33,11 +29,11 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:18 GMT
- Mon, 07 Nov 2022 12:19:34 GMT
Fastly-Ratelimit-Remaining:
- "4957"
- "9991"
Fastly-Ratelimit-Reset:
- "1637913600"
- "1667826000"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -51,9 +47,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9037-CONTROL-SLWDC, cache-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-6-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911279.556287,VS0,VE290
- S1667823574.462572,VS0,VE281
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/vcl_snippets/delete_dynamic.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.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/80/snippet/snipdyn
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/88/snippet/snipdyn
method: DELETE
response:
body: '{"status":"ok"}'
Expand All @@ -19,11 +19,11 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:22 GMT
- Mon, 07 Nov 2022 12:19:37 GMT
Fastly-Ratelimit-Remaining:
- "4952"
- "9986"
Fastly-Ratelimit-Reset:
- "1637913600"
- "1667826000"
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-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-2-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911282.200837,VS0,VE380
- S1667823577.933810,VS0,VE198
status: 200 OK
code: 200
duration: ""
14 changes: 7 additions & 7 deletions fastly/fixtures/vcl_snippets/delete_versioned.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.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/80/snippet/snipverUpdated
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/88/snippet/snipverUpdated
method: DELETE
response:
body: '{"status":"ok"}'
Expand All @@ -19,11 +19,11 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:22 GMT
- Mon, 07 Nov 2022 12:19:36 GMT
Fastly-Ratelimit-Remaining:
- "4953"
- "9987"
Fastly-Ratelimit-Reset:
- "1637913600"
- "1667826000"
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-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-6-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911282.873036,VS0,VE320
- S1667823577.647762,VS0,VE185
status: 200 OK
code: 200
duration: ""
12 changes: 6 additions & 6 deletions fastly/fixtures/vcl_snippets/get_dynamic.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.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/snippet/2lag0ngIB569L99MYVaUMb
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/snippet/ZoMomE3AaTnyJjM4cslCA1
method: GET
response:
body: '{"created_at":"2021-11-26T07:21:19Z","snippet_id":"2lag0ngIB569L99MYVaUMb","service_id":"7i6HN3TK9wS159v2gPAZ8A","updated_at":"2021-11-26T07:21:19Z","content":"#vcl"}'
body: '{"snippet_id":"ZoMomE3AaTnyJjM4cslCA1","created_at":"2022-11-07T12:19:34Z","updated_at":"2022-11-07T12:19:34Z","service_id":"7i6HN3TK9wS159v2gPAZ8A","content":"#vcl"}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -19,7 +19,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:20 GMT
- Mon, 07 Nov 2022 12:19:36 GMT
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -33,9 +33,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-6-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911280.280693,VS0,VE255
- S1667823576.712839,VS0,VE301
status: 200 OK
code: 200
duration: ""
20 changes: 10 additions & 10 deletions fastly/fixtures/vcl_snippets/get_versioned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@ interactions:
form: {}
headers:
User-Agent:
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/80/snippet/snipver
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/88/snippet/snipver
method: GET
response:
body: '{"type":"fetch","updated_at":"2021-11-26T07:21:18Z","name":"snipver","priority":"100","deleted_at":null,"service_id":"7i6HN3TK9wS159v2gPAZ8A","dynamic":"0","created_at":"2021-11-26T07:21:18Z","content":"#vcl","version":"80","id":"2t19aLnUdhacWY37Cgi3d9"}'
body: '{"version":"88","updated_at":"2022-11-07T12:19:34Z","priority":"100","id":"WT2ibuLy1IEgBOgN7ZvtI4","created_at":"2022-11-07T12:19:34Z","type":"fetch","service_id":"7i6HN3TK9wS159v2gPAZ8A","deleted_at":null,"dynamic":"0","name":"snipver","content":"#vcl"}'
headers:
Accept-Ranges:
- bytes
Cache-Control:
- no-store, s-maxage=0
- no-store
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:20 GMT
- Mon, 07 Nov 2022 12:19:35 GMT
Status:
- 200 OK
Strict-Transport-Security:
- max-age=31536000
Vary:
- Accept-Encoding
Via:
- 1.1 varnish, 1.1 varnish, 1.1 varnish
- 1.1 varnish, 1.1 varnish
X-Cache:
- MISS, MISS, MISS
- MISS, MISS
X-Cache-Hits:
- 0, 0, 0
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-tyo11943-TYO, cache-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-4-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911280.526279,VS0,VE747
- S1667823575.377706,VS0,VE303
status: 200 OK
code: 200
duration: ""
12 changes: 6 additions & 6 deletions fastly/fixtures/vcl_snippets/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.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/80/snippet
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/88/snippet
method: GET
response:
body: '[{"content":null,"type":"fetch","dynamic":"1","priority":"123","created_at":"2021-11-26T07:21:19Z","id":"2lag0ngIB569L99MYVaUMb","name":"snipdyn","version":"80","service_id":"7i6HN3TK9wS159v2gPAZ8A","deleted_at":null,"updated_at":"2021-11-26T07:21:19Z"},{"content":"#vcl","type":"fetch","version":"80","name":"snipver","priority":"100","dynamic":"0","id":"2t19aLnUdhacWY37Cgi3d9","created_at":"2021-11-26T07:21:18Z","service_id":"7i6HN3TK9wS159v2gPAZ8A","deleted_at":null,"updated_at":"2021-11-26T07:21:18Z"}]'
body: '[{"name":"snipdyn","version":"88","created_at":"2022-11-07T12:19:34Z","dynamic":"1","type":"fetch","deleted_at":null,"service_id":"7i6HN3TK9wS159v2gPAZ8A","priority":"123","content":null,"id":"ZoMomE3AaTnyJjM4cslCA1","updated_at":"2022-11-07T12:19:34Z"},{"priority":"100","updated_at":"2022-11-07T12:19:34Z","id":"WT2ibuLy1IEgBOgN7ZvtI4","content":"#vcl","version":"88","name":"snipver","created_at":"2022-11-07T12:19:34Z","deleted_at":null,"service_id":"7i6HN3TK9wS159v2gPAZ8A","dynamic":"0","type":"fetch"}]'
headers:
Accept-Ranges:
- bytes
Expand All @@ -19,7 +19,7 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:19 GMT
- Mon, 07 Nov 2022 12:19:35 GMT
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -33,9 +33,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9035-CONTROL-SLWDC, cache-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-6-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911279.206605,VS0,VE275
- S1667823575.008395,VS0,VE332
status: 200 OK
code: 200
duration: ""
22 changes: 9 additions & 13 deletions fastly/fixtures/vcl_snippets/update_dynamic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@
version: 1
interactions:
- request:
body: ID=2lag0ngIB569L99MYVaUMb&ServiceID=7i6HN3TK9wS159v2gPAZ8A&content=%23vclUpdated
body: content=%23vclUpdated
form:
ID:
- 2lag0ngIB569L99MYVaUMb
ServiceID:
- 7i6HN3TK9wS159v2gPAZ8A
content:
- '#vclUpdated'
headers:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/5.1.2 (+github.com/fastly/go-fastly; go1.17.3)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/snippet/2lag0ngIB569L99MYVaUMb
- FastlyGo/6.8.0 (+github.com/fastly/go-fastly; go1.16.15)
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/snippet/ZoMomE3AaTnyJjM4cslCA1
method: PUT
response:
body: '{"updated_at":"2021-11-26T07:21:19Z","snippet_id":"2lag0ngIB569L99MYVaUMb","created_at":"2021-11-26T07:21:19Z","content":"#vclUpdated","service_id":"7i6HN3TK9wS159v2gPAZ8A"}'
body: '{"created_at":"2022-11-07T12:19:34Z","content":"#vclUpdated","snippet_id":"ZoMomE3AaTnyJjM4cslCA1","service_id":"7i6HN3TK9wS159v2gPAZ8A","updated_at":"2022-11-07T12:19:34Z"}'
headers:
Accept-Ranges:
- bytes
Expand All @@ -27,11 +23,11 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 26 Nov 2021 07:21:21 GMT
- Mon, 07 Nov 2022 12:19:36 GMT
Fastly-Ratelimit-Remaining:
- "4954"
- "9988"
Fastly-Ratelimit-Reset:
- "1637913600"
- "1667826000"
Status:
- 200 OK
Strict-Transport-Security:
Expand All @@ -45,9 +41,9 @@ interactions:
X-Cache-Hits:
- 0, 0
X-Served-By:
- cache-control-slwdc9036-CONTROL-SLWDC, cache-tyo11955-TYO
- cache-control-cp-aws-us-east-1-prod-6-CONTROL-AWS, cache-man4131-MAN
X-Timer:
- S1637911281.833511,VS0,VE1030
- S1667823576.344554,VS0,VE209
status: 200 OK
code: 200
duration: ""
Loading