Skip to content

Commit

Permalink
Update Image Optimizer default settings fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
daboross committed May 14, 2024
1 parent 078cd6f commit 4fc3b72
Show file tree
Hide file tree
Showing 19 changed files with 112 additions and 150 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
headers:
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/enabled-products/image_optimizer/services/qDAwPNSjDoCytjIZ6SfjF5
url: https://api.fastly.com/enabled-products/image_optimizer/services/7i6HN3TK9wS159v2gPAZ8A
method: DELETE
response:
body: ""
Expand All @@ -16,12 +16,10 @@ interactions:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:16 GMT
- Mon, 13 May 2024 21:27:45 GMT
Pragma:
- no-cache
Server:
Expand All @@ -39,9 +37,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495135.395036,VS0,VE693
- S1715635665.011325,VS0,VE856
status: 204 No Content
code: 204
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,33 @@
version: 1
interactions:
- request:
body: ProductID=image_optimizer&ServiceID=qDAwPNSjDoCytjIZ6SfjF5
body: ProductID=image_optimizer&ServiceID=7i6HN3TK9wS159v2gPAZ8A
form:
ProductID:
- image_optimizer
ServiceID:
- qDAwPNSjDoCytjIZ6SfjF5
- 7i6HN3TK9wS159v2gPAZ8A
headers:
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/enabled-products/image_optimizer/services/qDAwPNSjDoCytjIZ6SfjF5
url: https://api.fastly.com/enabled-products/image_optimizer/services/7i6HN3TK9wS159v2gPAZ8A
method: PUT
response:
body: |
{"product":{"id":"image_optimizer","object":"product"},"service":{"id":"qDAwPNSjDoCytjIZ6SfjF5","object":"service"},"_links":{"self":"/enabled-products/image_optimizer/services/qDAwPNSjDoCytjIZ6SfjF5"}}
{"product":{"id":"image_optimizer","object":"product"},"service":{"id":"7i6HN3TK9wS159v2gPAZ8A","object":"service"},"_links":{"self":"/enabled-products/image_optimizer/services/7i6HN3TK9wS159v2gPAZ8A"}}
headers:
Accept-Ranges:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Length:
- "203"
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:10 GMT
- Mon, 13 May 2024 21:27:39 GMT
Pragma:
- no-cache
Server:
Expand All @@ -48,9 +46,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495130.808709,VS0,VE992
- S1715635658.927563,VS0,VE1264
status: 200 OK
code: 200
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 1
interactions:
- request:
body: '{"webp":false,"webp_quality":85,"upscale":false}'
body: '{"webp":false,"webp_quality":85,"jpeg_quality":85,"upscale":false,"allow_video":false}'
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/service/qDAwPNSjDoCytjIZ6SfjF5/version/38/image_optimizer_default_settings
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/86/image_optimizer_default_settings
method: PATCH
response:
body: '{"resize_filter":"lanczos3","webp":false,"webp_quality":85,"jpeg_type":"auto","jpeg_quality":85,"upscale":false,"allow_video":false}'
Expand All @@ -20,16 +20,14 @@ interactions:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:15 GMT
- Mon, 13 May 2024 21:27:44 GMT
Fastly-Ratelimit-Remaining:
- "927"
- "978"
Fastly-Ratelimit-Reset:
- "1713495600"
- "1715637600"
Pragma:
- no-cache
Server:
Expand All @@ -47,9 +45,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495135.056363,VS0,VE253
- S1715635665.681277,VS0,VE319
status: 200 OK
code: 200
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,24 @@ interactions:
- application/json
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/service/qDAwPNSjDoCytjIZ6SfjF5/version/38/image_optimizer_default_settings
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/86/image_optimizer_default_settings
method: PATCH
response:
body: '{"type":"https://www.fastly.com/documentation/reference/api/services/image_optimizer_default_settings/","title":"Bad
request","detail":"Webp quality must be less than or equal to 100"}'
body: '{"type":"https://www.fastly.com/documentation/reference/api/services/image-optimizer-default-settings/","title":"Bad
request","detail":"WebP quality must be less than or equal to 100."}'
headers:
Accept-Ranges:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
- application/problem+json
Date:
- Fri, 19 Apr 2024 02:52:12 GMT
- Mon, 13 May 2024 21:27:40 GMT
Fastly-Ratelimit-Remaining:
- "937"
- "988"
Fastly-Ratelimit-Reset:
- "1713495600"
- "1715637600"
Pragma:
- no-cache
Server:
Expand All @@ -48,9 +46,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495132.050585,VS0,VE155
- S1715635661.735633,VS0,VE196
status: 400 Bad Request
code: 400
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
headers:
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/service/qDAwPNSjDoCytjIZ6SfjF5/version/38/image_optimizer_default_settings
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/86/image_optimizer_default_settings
method: GET
response:
body: '{"resize_filter":"lanczos3","webp":false,"webp_quality":85,"jpeg_type":"auto","jpeg_quality":85,"upscale":false,"allow_video":false}'
Expand All @@ -16,12 +16,10 @@ interactions:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:11 GMT
- Mon, 13 May 2024 21:27:39 GMT
Pragma:
- no-cache
Server:
Expand All @@ -39,9 +37,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495131.868264,VS0,VE188
- S1715635659.213525,VS0,VE330
status: 200 OK
code: 200
duration: ""
14 changes: 6 additions & 8 deletions fastly/fixtures/image_optimizer_default_settings/set_full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/service/qDAwPNSjDoCytjIZ6SfjF5/version/38/image_optimizer_default_settings
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/86/image_optimizer_default_settings
method: PATCH
response:
body: '{"resize_filter":"lanczos3","webp":false,"webp_quality":85,"jpeg_type":"auto","jpeg_quality":85,"upscale":false,"allow_video":false}'
Expand All @@ -20,16 +20,14 @@ interactions:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:15 GMT
- Mon, 13 May 2024 21:27:44 GMT
Fastly-Ratelimit-Remaining:
- "928"
- "979"
Fastly-Ratelimit-Reset:
- "1713495600"
- "1715637600"
Pragma:
- no-cache
Server:
Expand All @@ -47,9 +45,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495135.776020,VS0,VE264
- S1715635664.186982,VS0,VE392
status: 200 OK
code: 200
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/service/qDAwPNSjDoCytjIZ6SfjF5/version/38/image_optimizer_default_settings
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/86/image_optimizer_default_settings
method: PATCH
response:
body: '{"resize_filter":"nearest","webp":true,"webp_quality":42,"jpeg_type":"auto","jpeg_quality":85,"upscale":true,"allow_video":false}'
Expand All @@ -20,16 +20,14 @@ interactions:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:14 GMT
- Mon, 13 May 2024 21:27:43 GMT
Fastly-Ratelimit-Remaining:
- "931"
- "982"
Fastly-Ratelimit-Reset:
- "1713495600"
- "1715637600"
Pragma:
- no-cache
Server:
Expand All @@ -47,9 +45,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495134.887720,VS0,VE237
- S1715635663.973275,VS0,VE274
status: 200 OK
code: 200
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/service/qDAwPNSjDoCytjIZ6SfjF5/version/38/image_optimizer_default_settings
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/86/image_optimizer_default_settings
method: PATCH
response:
body: '{"resize_filter":"nearest","webp":true,"webp_quality":42,"jpeg_type":"baseline","jpeg_quality":85,"upscale":true,"allow_video":false}'
Expand All @@ -20,16 +20,14 @@ interactions:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:14 GMT
- Mon, 13 May 2024 21:27:43 GMT
Fastly-Ratelimit-Remaining:
- "930"
- "981"
Fastly-Ratelimit-Reset:
- "1713495600"
- "1715637600"
Pragma:
- no-cache
Server:
Expand All @@ -47,9 +45,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495134.144395,VS0,VE289
- S1715635663.364952,VS0,VE309
status: 200 OK
code: 200
duration: ""
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
- application/json
User-Agent:
- FastlyGo/9.3.1 (+github.com/fastly/go-fastly; go1.22.2)
url: https://api.fastly.com/service/qDAwPNSjDoCytjIZ6SfjF5/version/38/image_optimizer_default_settings
url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/86/image_optimizer_default_settings
method: PATCH
response:
body: '{"resize_filter":"nearest","webp":true,"webp_quality":42,"jpeg_type":"progressive","jpeg_quality":85,"upscale":true,"allow_video":false}'
Expand All @@ -20,16 +20,14 @@ interactions:
- bytes
Cache-Control:
- no-store
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Fri, 19 Apr 2024 02:52:14 GMT
- Mon, 13 May 2024 21:27:44 GMT
Fastly-Ratelimit-Remaining:
- "929"
- "980"
Fastly-Ratelimit-Reset:
- "1713495600"
- "1715637600"
Pragma:
- no-cache
Server:
Expand All @@ -47,9 +45,9 @@ interactions:
X-Cache-Hits:
- "0"
X-Served-By:
- cache-bfi-krnt7300112-BFI
- cache-bfi-krnt7300118-BFI
X-Timer:
- S1713495134.451909,VS0,VE274
- S1715635664.774726,VS0,VE351
status: 200 OK
code: 200
duration: ""
Loading

0 comments on commit 4fc3b72

Please sign in to comment.