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
varnishtest "Check expired grace with sick backends" | |
# ################################ | |
# Sample varnishtest script to test expired varnish grace period. | |
# TODO: | |
# - Include our VCL | |
# - Overwrite grace and ttl periods | |
# ################################ | |
server s1 { |
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
varnishtest "Unhealthy Fnord responds with cached content" | |
# fnord. fake server name must start with "s" | |
server s1 { | |
rxreq | |
expect req.url == "/platform/test" | |
txresp -hdr "Content-Type: application/vnd.itv.ctv.production.v1+hal+json; charset=UTF-8" -hdr "Vary: Accept" -body "{\"hello\": \"world\"}" | |
accept |
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
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
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
// In Google sheets make sure the date is passed as text. | |
// If you have date use formula: =Text(A31, "yyyy-mm-dd") | |
const exchangeRates = [ | |
['2014-01-01', 'EUR', 0], | |
['2014-01-02', 'EUR', 8.8855], | |
['2014-01-03', 'EUR', 8.8825], | |
['2014-01-04', 'EUR', 0], | |
['2014-01-05', 'EUR', 0], | |
['2014-01-06', 'EUR', 0], |