From 6ee4def3e8b8444ee0dd5eb9262c7814c76adaef Mon Sep 17 00:00:00 2001 From: Kieren Hynd Date: Tue, 10 Oct 2017 11:37:33 +0100 Subject: [PATCH] Added support for some extra fields to the "backend" config "weight", "max_conn", "error_threshold", "connect_timeout", "first_byte_timeout" and "between_bytes_timeout" --- README.md | 26 +- library/fastly_service.py | 12 + .../TestFastlyCacheSettings_tearDown.yml | 54 +-- ...cheSettings_test_fastly_cache_settings.yml | 214 ++++++------ ...test_fastly_cache_settings_with_action.yml | 214 ++++++------ ...astly_cache_settings_without_stale_ttl.yml | 208 ++++++------ .../TestFastlyCondition_tearDown.yml | 53 +-- ...yCondition_test_fastly_cache_condition.yml | 169 +++++----- ...ondition_test_fastly_request_condition.yml | 177 +++++----- .../TestFastlyDirectors_tearDown.yml | 53 +-- ..._test_fastly_director_with_one_backend.yml | 224 ++++++------- .../cassettes/TestFastlyGzip_tearDown.yml | 58 ++-- .../TestFastlyGzip_test_fastly_gzip.yml | 185 +++++------ .../TestFastlyHealthchecks_tearDown.yml | 53 +-- ...yHealthchecks_test_fastly_healthchecks.yml | 219 +++++++------ .../TestFastlyRequestSetting_tearDown.yml | 52 +-- ...g_test_fastly_request_setting_defaults.yml | 219 +++++++------ ...y_response_object_content_content_type.yml | 203 ++++++------ .../TestFastlyResponseObject_tearDown.yml | 53 ++- ...y_response_object_content_content_type.yml | 79 ++--- ...t_test_fastly_response_object_defaults.yml | 199 ++++++------ .../cassettes/TestFastlySettings_tearDown.yml | 54 +-- ...estFastlySettings_test_fastly_settings.yml | 192 +++++------ .../TestFastlyVclSnippets_tearDown.yml | 54 +-- ...tly_vcl_snippets_deliver_stale_content.yml | 221 ++++++------- tests/fixtures/cassettes/tearDown | 52 +-- .../test_fastly_backend_empty_ssl_ca_cert | 119 ++++--- .../test_fastly_backend_port_not_required | 160 ++++----- .../cassettes/test_fastly_backend_weight_even | 239 ++++++++++++++ .../test_fastly_domain_comment_not_required | 225 +++++++++++-- .../test_fastly_header_action_not_required | 155 ++++----- ...t_fastly_header_ignore_if_set_not_required | 38 +-- .../test_fastly_header_priority_not_required | 38 +-- .../cassettes/test_service_does_exist | 307 +++++++++--------- ...exist_and_activate_new_version_is_disabled | 275 ++++++++-------- ...vice_does_exist_and_configuration_is_equal | 197 +++++------ ...equal_and_activate_new_version_is_disabled | 79 ++--- .../cassettes/test_service_does_not_exist | 214 ++++++------ ...exist_and_activate_new_version_is_disabled | 195 +++++------ tests/test_fastly_service.py | 20 ++ 40 files changed, 3046 insertions(+), 2512 deletions(-) create mode 100644 tests/fixtures/cassettes/test_fastly_backend_weight_even diff --git a/README.md b/README.md index 69ebe8b..f4e7126 100644 --- a/README.md +++ b/README.md @@ -36,16 +36,22 @@ $ ansible-galaxy install Jimdo.fastly [Fastly documentation](https://docs.fastly.com/api/config#backend) -| Field | Required | Type | Default | -|:------------------|:---------|:--------------------------------------------------------|:--------| -| name | true | string | | -| port | false | integer | 80 | -| address | true | string | | -| ssl_hostname | false | string | | -| ssl_ca_cert | false | string | | -| ssl_cert_hostname | false | string | | -| shield | false | string | | -| healthcheck | false | string | | +| Field | Required | Type | Default | +|:----------------------|:---------|:--------------------------------------------------|:--------| +| name | true | string | | +| port | false | integer | 80 | +| address | true | string | | +| ssl_hostname | false | string | | +| ssl_ca_cert | false | string | | +| ssl_cert_hostname | false | string | | +| shield | false | string | | +| healthcheck | false | string | | +| weight | false | integer | 100 | +| connect_timeout | false | integer | 1000 | +| first_byte_timeout | false | integer | 15000 | +| between_bytes_timeout | false | integer | 10000 | +| error_threshold | false | integer | 0 | +| max_conn | false | integer | 200 | ### Cache Settings diff --git a/library/fastly_service.py b/library/fastly_service.py index 9089b62..e0f8521 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -249,6 +249,12 @@ class FastlyBackend(FastlyObject): 'ssl_cert_hostname': dict(required=False, type='str', default=None, exclude_empty_str=True), 'shield': dict(required=False, type='str', default=None, exclude_empty_str=True), 'healthcheck': dict(required=False, type='str', default=None, exclude_empty_str=True), + 'weight': dict(required=False, type='int', default=100), + 'connect_timeout': dict(required=False, type='int', default=1000), + 'first_byte_timeout': dict(required=False, type='int', default=15000), + 'between_bytes_timeout': dict(required=False, type='int', default=10000), + 'error_threshold': dict(required=False, type='int', default=0), + 'max_conn': dict(required=False, type='int', default=200), } def __init__(self, config, validate_choices): @@ -261,6 +267,12 @@ def __init__(self, config, validate_choices): self.ssl_cert_hostname = self.read_config(config, validate_choices, 'ssl_cert_hostname') self.shield = self.read_config(config, validate_choices, 'shield') self.healthcheck = self.read_config(config, validate_choices, 'healthcheck') + self.weight = self.read_config(config, validate_choices, 'weight') + self.connect_timeout = self.read_config(config, validate_choices, 'connect_timeout') + self.first_byte_timeout = self.read_config(config, validate_choices, 'first_byte_timeout') + self.between_bytes_timeout = self.read_config(config, validate_choices, 'between_bytes_timeout') + self.error_threshold = self.read_config(config, validate_choices, 'error_threshold') + self.max_conn = self.read_config(config, validate_choices, 'max_conn') def sort_key(f): return f.name diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml index 8a302d1..9a39998 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml @@ -6,80 +6,82 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:35:50+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:58 GMT'] + date: ['Tue, 10 Oct 2017 10:33:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472558.367430,VS0,VE82'] + x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] + x-timer: ['S1507631609.073426,VS0,VE135'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/details + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:55+00:00","deployed":false}],"created_at":"2017-09-27T00:35:50+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg","version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4111'] + content-length: ['4061'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:58 GMT'] + date: ['Tue, 10 Oct 2017 10:33:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472559.867946,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4133-AMS'] + x-timer: ['S1507631609.335051,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/deactivate + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:55+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:59 GMT'] - fastly-ratelimit-remaining: ['989'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:30 GMT'] + fastly-ratelimit-remaining: ['984'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472559.116235,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] + x-timer: ['S1507631610.534354,VS0,VE497'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -88,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:59 GMT'] - fastly-ratelimit-remaining: ['988'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:30 GMT'] + fastly-ratelimit-remaining: ['983'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472560.604607,VS0,VE82'] + x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] + x-timer: ['S1507631610.112493,VS0,VE445'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml index a2b17f1..deb4776 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:49 GMT'] + date: ['Tue, 10 Oct 2017 10:33:22 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472550.555559,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631602.698219,VS0,VE420'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"e88712487c7faa034b10bf8cb03009aca0940fb8","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg"}'} + Ansible Module Test","publish_key":"e4ad93e2ccb3238c7264f41cc00e36447cac4e62","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:33:22Z","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['532'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:50 GMT'] - fastly-ratelimit-remaining: ['998'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:22 GMT'] + fastly-ratelimit-remaining: ['993'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472550.992642,VS0,VE170'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631602.201345,VS0,VE408'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/details + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false}],"created_at":"2017-09-27T00:35:50+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg","version":{"testing":false,"number":1,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:50+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":1,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:22Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:33:22Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1071'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:50 GMT'] + date: ['Tue, 10 Oct 2017 10:33:23 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472550.384822,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] + x-timer: ['S1507631603.697389,VS0,VE495'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version response: - body: {string: !!python/unicode '{"service_id":"6JpirHt7dTku4S29iY9ZPg","number":2}'} + body: {string: !!python/unicode '{"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:50 GMT'] - fastly-ratelimit-remaining: ['997'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:23 GMT'] + fastly-ratelimit-remaining: ['992'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472551.752067,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] + x-timer: ['S1507631603.293114,VS0,VE466'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/domain + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6JpirHt7dTku4S29iY9ZPg","version":2,"deleted_at":null,"created_at":"2017-09-27T00:35:51+00:00","updated_at":"2017-09-27T00:35:51+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":2,"deleted_at":null,"created_at":"2017-10-10T10:33:24Z","updated_at":"2017-10-10T10:33:24Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:51 GMT'] - fastly-ratelimit-remaining: ['996'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:24 GMT'] + fastly-ratelimit-remaining: ['991'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472551.298232,VS0,VE229'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631604.854816,VS0,VE546'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/backend + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"6JpirHt7dTku4S29iY9ZPg","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:35:51+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:35:51+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:24Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:24Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:51 GMT'] - fastly-ratelimit-remaining: ['995'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:24 GMT'] + fastly-ratelimit-remaining: ['990'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472552.785767,VS0,VE133'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631605.535777,VS0,VE431'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 10, "name": "cache-settings-config-name", @@ -157,25 +159,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/cache_settings + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"6JpirHt7dTku4S29iY9ZPg","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-09-27T00:35:52+00:00","updated_at":"2017-09-27T00:35:52+00:00"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-10-10T10:33:25Z","updated_at":"2017-10-10T10:33:25Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['250'] + content-length: ['240'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:52 GMT'] - fastly-ratelimit-remaining: ['994'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:25 GMT'] + fastly-ratelimit-remaining: ['989'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472552.124471,VS0,VE187'] + x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] + x-timer: ['S1507631605.076293,VS0,VE487'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -185,26 +187,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/header + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"6JpirHt7dTku4S29iY9ZPg","version":"2","updated_at":"2017-09-27T00:35:52+00:00","deleted_at":null,"created_at":"2017-09-27T00:35:52+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":"2","updated_at":"2017-10-10T10:33:26Z","deleted_at":null,"created_at":"2017-10-10T10:33:26Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:52 GMT'] - fastly-ratelimit-remaining: ['993'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:26 GMT'] + fastly-ratelimit-remaining: ['988'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472553.622558,VS0,VE219'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631606.657269,VS0,VE474'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -212,87 +214,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/response_object + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6JpirHt7dTku4S29iY9ZPg","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:35:53+00:00","updated_at":"2017-09-27T00:35:53+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:26Z","updated_at":"2017-10-10T10:33:26Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:53 GMT'] - fastly-ratelimit-remaining: ['992'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:26 GMT'] + fastly-ratelimit-remaining: ['987'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472553.068185,VS0,VE250'] + x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] + x-timer: ['S1507631606.217521,VS0,VE412'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/settings + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6JpirHt7dTku4S29iY9ZPg"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:54 GMT'] - fastly-ratelimit-remaining: ['991'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:26 GMT'] + fastly-ratelimit-remaining: ['986'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472555.515558,VS0,VE248'] + x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] + x-timer: ['S1507631607.710003,VS0,VE174'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/version/2/activate + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:53+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:26Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:55 GMT'] - fastly-ratelimit-remaining: ['990'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:28 GMT'] + fastly-ratelimit-remaining: ['985'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472555.057088,VS0,VE655'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631607.971129,VS0,VE1076'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/details + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:55+00:00","deployed":false}],"created_at":"2017-09-27T00:35:50+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg","version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -300,16 +302,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4111'] + content-length: ['4061'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:56 GMT'] + date: ['Tue, 10 Oct 2017 10:33:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472556.915208,VS0,VE90'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631608.135743,VS0,VE154'] status: {code: 200, message: OK} - request: body: null @@ -318,33 +320,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:35:50+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:56 GMT'] + date: ['Tue, 10 Oct 2017 10:33:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472556.281955,VS0,VE74'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631608.377508,VS0,VE135'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/details + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:55+00:00","deployed":false}],"created_at":"2017-09-27T00:35:50+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg","version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -352,27 +354,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4111'] + content-length: ['4061'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:56 GMT'] + date: ['Tue, 10 Oct 2017 10:33:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472557.894953,VS0,VE50'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631609.628332,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6JpirHt7dTku4S29iY9ZPg/details + uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"created_at":"2017-09-27T00:35:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:35:55+00:00","deployed":false}],"created_at":"2017-09-27T00:35:50+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:35:50+00:00","id":"6JpirHt7dTku4S29iY9ZPg","version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6JpirHt7dTku4S29iY9ZPg","staging":false,"updated_at":"2017-09-27T00:35:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:35:50+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -380,15 +382,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4111'] + content-length: ['4061'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:35:58 GMT'] + date: ['Tue, 10 Oct 2017 10:33:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472558.969514,VS0,VE48'] + x-served-by: ['app-slwdc9051-SL, cache-ams4123-AMS'] + x-timer: ['S1507631609.840059,VS0,VE118'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_with_action.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_with_action.yml index 8a99401..20f7aa2 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_with_action.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_with_action.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:00 GMT'] + date: ['Tue, 10 Oct 2017 10:33:30 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472560.989887,VS0,VE52'] + x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] + x-timer: ['S1507631611.650167,VS0,VE113'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"140c65390c72bc89e4366a1e9890e9d966b4353a","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:36:00+00:00","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + Ansible Module Test","publish_key":"981c63738f7aa8c09aa25528004ecad51d517882","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:33:31Z","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['532'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:00 GMT'] - fastly-ratelimit-remaining: ['987'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:31 GMT'] + fastly-ratelimit-remaining: ['982'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472560.341729,VS0,VE172'] + x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] + x-timer: ['S1507631611.861112,VS0,VE438'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":1,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:00+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:36:00+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":1,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:31Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:33:31Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1071'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:00 GMT'] + date: ['Tue, 10 Oct 2017 10:33:31 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472561.727436,VS0,VE81'] + x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] + x-timer: ['S1507631611.378485,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version response: - body: {string: !!python/unicode '{"service_id":"6VTSqFVeHjgjWpDUWvXGRK","number":2}'} + body: {string: !!python/unicode '{"service_id":"3aTVJbIAPR9U6MuBeKWli2","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:02 GMT'] - fastly-ratelimit-remaining: ['986'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:32 GMT'] + fastly-ratelimit-remaining: ['981'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472562.054061,VS0,VE81'] + x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] + x-timer: ['S1507631612.612276,VS0,VE480'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/2/domain + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":2,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","updated_at":"2017-09-27T00:36:02+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":2,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","updated_at":"2017-10-10T10:33:32Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:02 GMT'] - fastly-ratelimit-remaining: ['985'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:32 GMT'] + fastly-ratelimit-remaining: ['980'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472563.603997,VS0,VE190'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631612.175779,VS0,VE459'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/2/backend + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:36:04+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:36:04+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:33Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:33Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:04 GMT'] - fastly-ratelimit-remaining: ['984'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:33 GMT'] + fastly-ratelimit-remaining: ['979'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472565.683913,VS0,VE95'] + x-served-by: ['app-slwdc9051-SL, cache-ams4127-AMS'] + x-timer: ['S1507631613.718402,VS0,VE423'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": "pass", "stale_ttl": 10, "name": "cache-settings-config-name", @@ -157,25 +159,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/2/cache_settings + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-09-27T00:36:05+00:00","updated_at":"2017-09-27T00:36:05+00:00"}'} + body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-10-10T10:33:33Z","updated_at":"2017-10-10T10:33:33Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['252'] + content-length: ['242'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:05 GMT'] - fastly-ratelimit-remaining: ['983'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:33 GMT'] + fastly-ratelimit-remaining: ['978'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472565.371798,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-ams4123-AMS'] + x-timer: ['S1507631613.218748,VS0,VE447'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -185,26 +187,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/2/header + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"2","updated_at":"2017-09-27T00:36:06+00:00","deleted_at":null,"created_at":"2017-09-27T00:36:06+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"2","updated_at":"2017-10-10T10:33:34Z","deleted_at":null,"created_at":"2017-10-10T10:33:34Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:06 GMT'] - fastly-ratelimit-remaining: ['982'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:34 GMT'] + fastly-ratelimit-remaining: ['977'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472566.162768,VS0,VE220'] + x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] + x-timer: ['S1507631614.741186,VS0,VE401'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -212,87 +214,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/2/response_object + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:36:07+00:00","updated_at":"2017-09-27T00:36:07+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:34Z","updated_at":"2017-10-10T10:33:34Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:07 GMT'] - fastly-ratelimit-remaining: ['981'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:34 GMT'] + fastly-ratelimit-remaining: ['976'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472567.127124,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] + x-timer: ['S1507631614.216843,VS0,VE434'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/2/settings + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:08 GMT'] - fastly-ratelimit-remaining: ['980'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:35 GMT'] + fastly-ratelimit-remaining: ['975'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472569.528994,VS0,VE207'] + x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] + x-timer: ['S1507631615.733485,VS0,VE472'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/2/activate + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:07+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:34Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:10 GMT'] - fastly-ratelimit-remaining: ['979'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:36 GMT'] + fastly-ratelimit-remaining: ['974'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472570.893434,VS0,VE856'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631615.303755,VS0,VE1092'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:10+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -300,16 +302,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4115'] + content-length: ['4065'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:11 GMT'] + date: ['Tue, 10 Oct 2017 10:33:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472571.378251,VS0,VE86'] + x-served-by: ['app-slwdc9051-SL, cache-ams4444-AMS'] + x-timer: ['S1507631616.485837,VS0,VE143'] status: {code: 200, message: OK} - request: body: null @@ -318,33 +320,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:11 GMT'] + date: ['Tue, 10 Oct 2017 10:33:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472572.787671,VS0,VE108'] + x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] + x-timer: ['S1507631617.719679,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:10+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -352,27 +354,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4115'] + content-length: ['4065'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:12 GMT'] + date: ['Tue, 10 Oct 2017 10:33:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472572.250470,VS0,VE55'] + x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] + x-timer: ['S1507631617.973581,VS0,VE106'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:10+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -380,15 +382,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4115'] + content-length: ['4065'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:12 GMT'] + date: ['Tue, 10 Oct 2017 10:33:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472573.587280,VS0,VE46'] + x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] + x-timer: ['S1507631617.170687,VS0,VE106'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml index 70b7728..e85ef64 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:13 GMT'] + date: ['Tue, 10 Oct 2017 10:33:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472574.850862,VS0,VE107'] + x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] + x-timer: ['S1507631617.479227,VS0,VE136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:10+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:02+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,93 +40,95 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4115'] + content-length: ['4065'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:14 GMT'] + date: ['Tue, 10 Oct 2017 10:33:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472575.551074,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] + x-timer: ['S1507631618.690899,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version response: - body: {string: !!python/unicode '{"service_id":"6VTSqFVeHjgjWpDUWvXGRK","number":3}'} + body: {string: !!python/unicode '{"service_id":"3aTVJbIAPR9U6MuBeKWli2","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:15 GMT'] - fastly-ratelimit-remaining: ['978'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:38 GMT'] + fastly-ratelimit-remaining: ['973'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472575.296960,VS0,VE77'] + x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] + x-timer: ['S1507631618.890878,VS0,VE471'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/3/domain + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":3,"deleted_at":null,"created_at":"2017-09-27T00:36:16+00:00","updated_at":"2017-09-27T00:36:16+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":3,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","updated_at":"2017-10-10T10:33:38Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:16 GMT'] - fastly-ratelimit-remaining: ['977'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:38 GMT'] + fastly-ratelimit-remaining: ['972'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472577.523682,VS0,VE227'] + x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] + x-timer: ['S1507631618.462249,VS0,VE187'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/3/backend + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:36:17+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:36:17+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:39Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:39Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:17 GMT'] - fastly-ratelimit-remaining: ['976'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:39 GMT'] + fastly-ratelimit-remaining: ['971'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472577.085029,VS0,VE200'] + x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] + x-timer: ['S1507631619.733875,VS0,VE434'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 0, "name": "cache-settings-config-name", @@ -134,25 +136,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/3/cache_settings + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"3","ttl":null,"deleted_at":null,"created_at":"2017-09-27T00:36:18+00:00","updated_at":"2017-09-27T00:36:18+00:00"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"3","ttl":null,"deleted_at":null,"created_at":"2017-10-10T10:33:39Z","updated_at":"2017-10-10T10:33:39Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['249'] + content-length: ['239'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:18 GMT'] - fastly-ratelimit-remaining: ['975'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:39 GMT'] + fastly-ratelimit-remaining: ['970'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472578.455683,VS0,VE183'] + x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] + x-timer: ['S1507631619.253156,VS0,VE445'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -162,26 +164,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/3/header + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"3","updated_at":"2017-09-27T00:36:19+00:00","deleted_at":null,"created_at":"2017-09-27T00:36:19+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"3","updated_at":"2017-10-10T10:33:40Z","deleted_at":null,"created_at":"2017-10-10T10:33:40Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:19 GMT'] - fastly-ratelimit-remaining: ['974'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:40 GMT'] + fastly-ratelimit-remaining: ['969'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472579.048529,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4130-AMS'] + x-timer: ['S1507631620.778475,VS0,VE446'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -189,103 +191,104 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/3/response_object + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:36:19+00:00","updated_at":"2017-09-27T00:36:19+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:40Z","updated_at":"2017-10-10T10:33:40Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:19 GMT'] - fastly-ratelimit-remaining: ['973'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:40 GMT'] + fastly-ratelimit-remaining: ['968'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472580.661796,VS0,VE76'] + x-served-by: ['app-slwdc9051-SL, cache-ams4444-AMS'] + x-timer: ['S1507631620.428807,VS0,VE481'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/3/settings + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:20 GMT'] - fastly-ratelimit-remaining: ['972'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:41 GMT'] + fastly-ratelimit-remaining: ['967'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472580.241481,VS0,VE166'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631621.061418,VS0,VE474'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/3/activate + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:19+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:40Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:23 GMT'] - fastly-ratelimit-remaining: ['971'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:42 GMT'] + fastly-ratelimit-remaining: ['966'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472582.248467,VS0,VE809'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631622.641774,VS0,VE997'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:23+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4351'] + content-length: ['4291'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:26 GMT'] + date: ['Tue, 10 Oct 2017 10:33:42 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472587.632396,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] + x-timer: ['S1507631623.784650,VS0,VE144'] status: {code: 200, message: OK} - request: body: null @@ -294,32 +297,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['858'] + content-length: ['828'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:27 GMT'] + date: ['Tue, 10 Oct 2017 10:33:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472587.316868,VS0,VE350'] + x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] + x-timer: ['S1507631623.124485,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:23+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -327,27 +331,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4351'] + content-length: ['4291'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:28 GMT'] + date: ['Tue, 10 Oct 2017 10:33:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472588.084973,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] + x-timer: ['S1507631624.541548,VS0,VE146'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:23+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -355,15 +359,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4351'] + content-length: ['4291'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:32 GMT'] + date: ['Tue, 10 Oct 2017 10:33:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472592.298347,VS0,VE44'] + x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] + x-timer: ['S1507631624.845260,VS0,VE103'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml index 6c08f55..90fcaf1 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml @@ -6,33 +6,34 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:44+00:00","deployed":false},{"testing":false,"number":4,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false},{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1100'] + content-length: ['1060'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:47 GMT'] + date: ['Tue, 10 Oct 2017 10:33:50 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472607.902398,VS0,VE251'] + x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] + x-timer: ['S1507631631.591521,VS0,VE135'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:44+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:39+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:44+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":4,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:44+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:39+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:44+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:39+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -41,48 +42,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4633'] + content-length: ['4563'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:47 GMT'] + date: ['Tue, 10 Oct 2017 10:33:51 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472607.379490,VS0,VE46'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631631.268210,VS0,VE102'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/deactivate + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:39+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:44+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:47 GMT'] - fastly-ratelimit-remaining: ['962'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:52 GMT'] + fastly-ratelimit-remaining: ['957'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472608.672615,VS0,VE133'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631631.471618,VS0,VE552'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -91,15 +92,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:48 GMT'] - fastly-ratelimit-remaining: ['961'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:52 GMT'] + fastly-ratelimit-remaining: ['956'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472608.075162,VS0,VE223'] + x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] + x-timer: ['S1507631632.163975,VS0,VE480'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml index 3e18a2b..cb79871 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml @@ -6,99 +6,100 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['858'] + content-length: ['828'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:37 GMT'] + date: ['Tue, 10 Oct 2017 10:33:44 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472597.330169,VS0,VE173'] + x-served-by: ['app-slwdc9051-SL, cache-ams4125-AMS'] + x-timer: ['S1507631625.626696,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:23+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:23+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:15+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4351'] + content-length: ['4291'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:38 GMT'] + date: ['Tue, 10 Oct 2017 10:33:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472599.521824,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631625.944751,VS0,VE103'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version response: - body: {string: !!python/unicode '{"service_id":"6VTSqFVeHjgjWpDUWvXGRK","number":4}'} + body: {string: !!python/unicode '{"service_id":"3aTVJbIAPR9U6MuBeKWli2","number":4}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:39 GMT'] - fastly-ratelimit-remaining: ['970'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:45 GMT'] + fastly-ratelimit-remaining: ['965'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472600.683665,VS0,VE194'] + x-served-by: ['app-slwdc9051-SL, cache-ams4150-AMS'] + x-timer: ['S1507631625.179690,VS0,VE145'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/domain + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":4,"deleted_at":null,"created_at":"2017-09-27T00:36:40+00:00","updated_at":"2017-09-27T00:36:40+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":4,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","updated_at":"2017-10-10T10:33:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:40 GMT'] - fastly-ratelimit-remaining: ['969'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:46 GMT'] + fastly-ratelimit-remaining: ['964'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472600.150647,VS0,VE222'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631625.458507,VS0,VE561'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "CACHE", "name": @@ -106,53 +107,55 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/condition + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"CACHE","name":"condition-name","statement":"req.url - ~ \"^/some_asset.js\"","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"4","deleted_at":null,"created_at":"2017-09-27T00:36:40+00:00","updated_at":"2017-09-27T00:36:40+00:00"}'} + ~ \"^/some_asset.js\"","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"4","deleted_at":null,"created_at":"2017-10-10T10:33:46Z","updated_at":"2017-10-10T10:33:46Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['264'] + content-length: ['254'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:40 GMT'] - fastly-ratelimit-remaining: ['968'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:46 GMT'] + fastly-ratelimit-remaining: ['963'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472601.616395,VS0,VE61'] + x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] + x-timer: ['S1507631626.156507,VS0,VE397'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/backend + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:36:41+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:36:41+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:47Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:47Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:41 GMT'] - fastly-ratelimit-remaining: ['967'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:47 GMT'] + fastly-ratelimit-remaining: ['962'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472601.224134,VS0,VE99'] + x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] + x-timer: ['S1507631627.658776,VS0,VE467'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -162,26 +165,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/header + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - cache control header","src":"\"public, max-age=86400\"","dst":"http.Cache-Control","substitution":"","priority":"100","cache_condition":"condition-name","action":"set","type":"cache","response_condition":null,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"4","updated_at":"2017-09-27T00:36:42+00:00","deleted_at":null,"created_at":"2017-09-27T00:36:42+00:00"}'} + cache control header","src":"\"public, max-age=86400\"","dst":"http.Cache-Control","substitution":"","priority":"100","cache_condition":"condition-name","action":"set","type":"cache","response_condition":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"4","updated_at":"2017-10-10T10:33:47Z","deleted_at":null,"created_at":"2017-10-10T10:33:47Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['430'] + content-length: ['420'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:42 GMT'] - fastly-ratelimit-remaining: ['966'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:47 GMT'] + fastly-ratelimit-remaining: ['961'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472603.582194,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] + x-timer: ['S1507631627.224380,VS0,VE415'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -189,88 +192,88 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/response_object + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6VTSqFVeHjgjWpDUWvXGRK","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:36:43+00:00","updated_at":"2017-09-27T00:36:43+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:48Z","updated_at":"2017-10-10T10:33:48Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:43 GMT'] - fastly-ratelimit-remaining: ['965'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:48 GMT'] + fastly-ratelimit-remaining: ['960'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472603.335053,VS0,VE79'] + x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] + x-timer: ['S1507631628.800663,VS0,VE445'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/settings + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"6VTSqFVeHjgjWpDUWvXGRK"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"3aTVJbIAPR9U6MuBeKWli2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:43 GMT'] - fastly-ratelimit-remaining: ['964'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:48 GMT'] + fastly-ratelimit-remaining: ['959'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472604.778599,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] + x-timer: ['S1507631628.413901,VS0,VE473'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/version/4/activate + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:39+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:43+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:48Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:44 GMT'] - fastly-ratelimit-remaining: ['963'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:49 GMT'] + fastly-ratelimit-remaining: ['958'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472604.223191,VS0,VE732'] + x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] + x-timer: ['S1507631629.034097,VS0,VE663'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6VTSqFVeHjgjWpDUWvXGRK/details + uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:00+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:22+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:44+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"created_at":"2017-09-27T00:36:39+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:44+00:00","deployed":false}],"created_at":"2017-09-27T00:36:00+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:00+00:00","id":"6VTSqFVeHjgjWpDUWvXGRK","version":{"testing":false,"number":4,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:44+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:39+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"6VTSqFVeHjgjWpDUWvXGRK","staging":false,"updated_at":"2017-09-27T00:36:44+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:39+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -278,15 +281,15 @@ interactions: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4633'] + content-length: ['4563'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:46 GMT'] + date: ['Tue, 10 Oct 2017 10:33:50 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472606.421989,VS0,VE89'] + x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] + x-timer: ['S1507631630.817681,VS0,VE451'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml index f37af2d..2e96f98 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml @@ -10,19 +10,18 @@ interactions: service ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:48 GMT'] + date: ['Tue, 10 Oct 2017 10:33:53 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472609.526030,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631633.842488,VS0,VE441'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,97 +31,97 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"b47037edecd701cc54347cd05787ef28a48c2214","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:36:48+00:00","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg"}'} + Ansible Module Test","publish_key":"8f3fe2556e319bac9e0eab7a622ee813276a21c3","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:33:53Z","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['532'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:48 GMT'] - fastly-ratelimit-remaining: ['960'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:53 GMT'] + fastly-ratelimit-remaining: ['955'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472609.830168,VS0,VE167'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631633.432945,VS0,VE438'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/details + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg","version":{"testing":false,"number":1,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:36:48+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:36:48+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":1,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:53Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:33:53Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1071'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:49 GMT'] + date: ['Tue, 10 Oct 2017 10:33:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472609.263820,VS0,VE83'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631634.004296,VS0,VE418'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version response: - body: {string: !!python/unicode '{"service_id":"7O0LyYNjKEPf0a7ef9WuAg","number":2}'} + body: {string: !!python/unicode '{"service_id":"3zrbQBlV8EKHJTiItIbxr2","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:49 GMT'] - fastly-ratelimit-remaining: ['959'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:54 GMT'] + fastly-ratelimit-remaining: ['954'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472610.656587,VS0,VE176'] + x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] + x-timer: ['S1507631635.546822,VS0,VE445'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/2/domain + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":2,"deleted_at":null,"created_at":"2017-09-27T00:36:50+00:00","updated_at":"2017-09-27T00:36:50+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":2,"deleted_at":null,"created_at":"2017-10-10T10:33:55Z","updated_at":"2017-10-10T10:33:55Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:50 GMT'] - fastly-ratelimit-remaining: ['958'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:55 GMT'] + fastly-ratelimit-remaining: ['953'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472610.025015,VS0,VE299'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631635.096080,VS0,VE520'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "REQUEST", "name": @@ -130,53 +129,55 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/2/condition + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"REQUEST","name":"condition-name","statement":"req.url - ~ \"^/robots.txt\"","service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":"2","deleted_at":null,"created_at":"2017-09-27T00:36:50+00:00","updated_at":"2017-09-27T00:36:50+00:00"}'} + ~ \"^/robots.txt\"","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"2","deleted_at":null,"created_at":"2017-10-10T10:33:56Z","updated_at":"2017-10-10T10:33:56Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['263'] + content-length: ['253'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:50 GMT'] - fastly-ratelimit-remaining: ['957'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:56 GMT'] + fastly-ratelimit-remaining: ['952'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472611.554359,VS0,VE63'] + x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] + x-timer: ['S1507631636.737544,VS0,VE426'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/2/backend + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:36:51+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:36:51+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:56Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:56Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:51 GMT'] - fastly-ratelimit-remaining: ['956'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:56 GMT'] + fastly-ratelimit-remaining: ['951'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472611.850310,VS0,VE201'] + x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] + x-timer: ['S1507631636.308533,VS0,VE465'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -186,26 +187,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/2/header + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":"2","updated_at":"2017-09-27T00:36:51+00:00","deleted_at":null,"created_at":"2017-09-27T00:36:51+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"2","updated_at":"2017-10-10T10:33:57Z","deleted_at":null,"created_at":"2017-10-10T10:33:57Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:51 GMT'] - fastly-ratelimit-remaining: ['955'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:57 GMT'] + fastly-ratelimit-remaining: ['950'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472611.300319,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] + x-timer: ['S1507631637.873940,VS0,VE480'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -213,88 +214,88 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/2/response_object + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:36:52+00:00","updated_at":"2017-09-27T00:36:52+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:57Z","updated_at":"2017-10-10T10:33:57Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:52 GMT'] - fastly-ratelimit-remaining: ['954'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:57 GMT'] + fastly-ratelimit-remaining: ['949'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472612.834793,VS0,VE250'] + x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] + x-timer: ['S1507631637.463263,VS0,VE475'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/2/settings + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"7O0LyYNjKEPf0a7ef9WuAg"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3zrbQBlV8EKHJTiItIbxr2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:52 GMT'] - fastly-ratelimit-remaining: ['953'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:58 GMT'] + fastly-ratelimit-remaining: ['948'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472613.502739,VS0,VE106'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631638.057556,VS0,VE468'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/2/activate + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:52+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:57Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:53 GMT'] - fastly-ratelimit-remaining: ['952'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:33:59 GMT'] + fastly-ratelimit-remaining: ['947'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472613.962708,VS0,VE804'] + x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] + x-timer: ['S1507631639.613799,VS0,VE994'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/details + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:53+00:00","deployed":false}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg","version":{"testing":false,"number":2,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:36:53+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:59Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:36:53+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -303,15 +304,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4133'] + content-length: ['4083'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:54 GMT'] + date: ['Tue, 10 Oct 2017 10:33:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472615.626806,VS0,VE92'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631640.735210,VS0,VE144'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml b/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml index 39848f9..1ea424b 100644 --- a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml @@ -6,32 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false},{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['858'] + content-length: ['828'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:11 GMT'] + date: ['Tue, 10 Oct 2017 10:34:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472631.248959,VS0,VE73'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631648.543346,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/details + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg","version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -39,48 +40,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4609'] + content-length: ['4529'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:11 GMT'] + date: ['Tue, 10 Oct 2017 10:34:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472632.790563,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] + x-timer: ['S1507631648.766698,VS0,VE110'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/deactivate + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:12 GMT'] - fastly-ratelimit-remaining: ['942'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:08 GMT'] + fastly-ratelimit-remaining: ['937'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472632.324350,VS0,VE129'] + x-served-by: ['app-slwdc9051-SL, cache-ams4130-AMS'] + x-timer: ['S1507631648.973318,VS0,VE485'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:13 GMT'] - fastly-ratelimit-remaining: ['941'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:09 GMT'] + fastly-ratelimit-remaining: ['936'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472633.214297,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] + x-timer: ['S1507631649.539796,VS0,VE495'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml b/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml index 859504c..ba98cde 100644 --- a/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml +++ b/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml @@ -6,129 +6,130 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"number":2,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:55 GMT'] + date: ['Tue, 10 Oct 2017 10:34:00 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472615.345010,VS0,VE76'] + x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] + x-timer: ['S1507631640.117342,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/details + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:53+00:00","deployed":false}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg","version":{"testing":false,"number":2,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:36:53+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:59Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:36:53+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4133'] + content-length: ['4083'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:56 GMT'] + date: ['Tue, 10 Oct 2017 10:34:00 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472616.991692,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631641.543227,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version response: - body: {string: !!python/unicode '{"service_id":"7O0LyYNjKEPf0a7ef9WuAg","number":3}'} + body: {string: !!python/unicode '{"service_id":"3zrbQBlV8EKHJTiItIbxr2","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:36:57 GMT'] - fastly-ratelimit-remaining: ['951'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:01 GMT'] + fastly-ratelimit-remaining: ['946'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472617.493766,VS0,VE227'] + x-served-by: ['app-slwdc9051-SL, cache-ams4426-AMS'] + x-timer: ['S1507631641.784170,VS0,VE415'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/domain + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":3,"deleted_at":null,"created_at":"2017-09-27T00:37:00+00:00","updated_at":"2017-09-27T00:37:00+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","updated_at":"2017-10-10T10:34:01Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:00 GMT'] - fastly-ratelimit-remaining: ['950'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:01 GMT'] + fastly-ratelimit-remaining: ['945'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472620.132359,VS0,VE223'] + x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] + x-timer: ['S1507631642.732534,VS0,VE206'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/backend + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:37:01+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:37:01+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:02Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:02Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:01 GMT'] - fastly-ratelimit-remaining: ['949'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:02 GMT'] + fastly-ratelimit-remaining: ['944'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472621.928583,VS0,VE203'] + x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] + x-timer: ['S1507631642.044043,VS0,VE175'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "retries": 5, "capacity": 100, "shield": @@ -136,50 +137,50 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/director + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/director response: - body: {string: !!python/unicode '{"comment":"","retries":5,"capacity":100,"shield":null,"backends":[],"quorum":75,"type":4,"name":"client_director","service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":3,"deleted_at":null,"created_at":"2017-09-27T00:37:01+00:00","updated_at":"2017-09-27T00:37:01+00:00"}'} + body: {string: !!python/unicode '{"comment":"","retries":5,"capacity":100,"shield":null,"backends":[],"quorum":75,"type":4,"name":"client_director","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"deleted_at":null,"created_at":"2017-10-10T10:34:02Z","updated_at":"2017-10-10T10:34:02Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['265'] + content-length: ['255'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:01 GMT'] - fastly-ratelimit-remaining: ['948'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:02 GMT'] + fastly-ratelimit-remaining: ['943'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472622.642616,VS0,VE189'] + x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] + x-timer: ['S1507631642.363895,VS0,VE458'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/director/client_director/backend/localhost + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/director/client_director/backend/localhost response: - body: {string: !!python/unicode '{"service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2017-09-27T00:37:02+00:00","deleted_at":null,"updated_at":"2017-09-27T00:37:02+00:00"}'} + body: {string: !!python/unicode '{"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2017-10-10T10:34:03Z","deleted_at":null,"updated_at":"2017-10-10T10:34:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['212'] + content-length: ['202'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:02 GMT'] - fastly-ratelimit-remaining: ['947'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:03 GMT'] + fastly-ratelimit-remaining: ['942'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472622.473547,VS0,VE197'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631643.966117,VS0,VE454'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -189,26 +190,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/header + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":"3","updated_at":"2017-09-27T00:37:03+00:00","deleted_at":null,"created_at":"2017-09-27T00:37:03+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"3","updated_at":"2017-10-10T10:34:03Z","deleted_at":null,"created_at":"2017-10-10T10:34:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:03 GMT'] - fastly-ratelimit-remaining: ['946'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:03 GMT'] + fastly-ratelimit-remaining: ['941'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472623.067720,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-ams4441-AMS'] + x-timer: ['S1507631644.520510,VS0,VE449'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -216,103 +217,104 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/response_object + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"7O0LyYNjKEPf0a7ef9WuAg","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:37:03+00:00","updated_at":"2017-09-27T00:37:03+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:04Z","updated_at":"2017-10-10T10:34:04Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:03 GMT'] - fastly-ratelimit-remaining: ['945'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:04 GMT'] + fastly-ratelimit-remaining: ['940'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472623.451160,VS0,VE193'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631644.083235,VS0,VE440'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/settings + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"7O0LyYNjKEPf0a7ef9WuAg"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3zrbQBlV8EKHJTiItIbxr2"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:05 GMT'] - fastly-ratelimit-remaining: ['944'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:05 GMT'] + fastly-ratelimit-remaining: ['939'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472625.158495,VS0,VE208'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631645.645230,VS0,VE479'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/version/3/activate + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:03+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:04Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:07 GMT'] - fastly-ratelimit-remaining: ['943'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:06 GMT'] + fastly-ratelimit-remaining: ['938'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472626.262942,VS0,VE759'] + x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] + x-timer: ['S1507631645.227030,VS0,VE1007'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/details + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg","version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4609'] + content-length: ['4529'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:08 GMT'] + date: ['Tue, 10 Oct 2017 10:34:06 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472629.602483,VS0,VE190'] + x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] + x-timer: ['S1507631646.335371,VS0,VE449'] status: {code: 200, message: OK} - request: body: null @@ -321,33 +323,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false},{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['858'] + content-length: ['828'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:09 GMT'] + date: ['Tue, 10 Oct 2017 10:34:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472629.119236,VS0,VE74'] + x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] + x-timer: ['S1507631647.870373,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/details + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg","version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -355,27 +357,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4609'] + content-length: ['4529'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:09 GMT'] + date: ['Tue, 10 Oct 2017 10:34:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472630.825895,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631647.122923,VS0,VE110'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/7O0LyYNjKEPf0a7ef9WuAg/details + uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:36:48+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"created_at":"2017-09-27T00:36:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:06+00:00","deployed":false}],"created_at":"2017-09-27T00:36:48+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:36:48+00:00","id":"7O0LyYNjKEPf0a7ef9WuAg","version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"7O0LyYNjKEPf0a7ef9WuAg","staging":false,"updated_at":"2017-09-27T00:37:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:36:57+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-27T00:37:01+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-27T00:37:01+00:00","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -383,15 +385,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4609'] + content-length: ['4529'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:10 GMT'] + date: ['Tue, 10 Oct 2017 10:34:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472630.449618,VS0,VE46'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631647.325270,VS0,VE110'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml index 5a06bfd..85f3829 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml @@ -6,84 +6,86 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:15+00:00","deployed":false},{"testing":false,"number":2,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:37:15+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:15+00:00","id":"4FxTvVJXnyF5c1bwS4aqU"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false},{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:23 GMT'] + date: ['Tue, 10 Oct 2017 10:34:14 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472644.521138,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631655.861023,VS0,VE135'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/details + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:15+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:21+00:00","deployed":false}],"created_at":"2017-09-27T00:37:15+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:15+00:00","id":"4FxTvVJXnyF5c1bwS4aqU","version":{"testing":false,"number":2,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"updated_at":"2017-09-27T00:37:21+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-09-27T00:37:17+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-27T00:37:17+00:00","content_types":"text/html + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:14Z","deployed":false}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0","version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"updated_at":"2017-09-27T00:37:21+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-09-27T00:37:17+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-27T00:37:17+00:00","content_types":"text/html + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4376'] + content-length: ['4311'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:24 GMT'] + date: ['Tue, 10 Oct 2017 10:34:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472644.297456,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] + x-timer: ['S1507631655.183462,VS0,VE149'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/deactivate + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:21+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:14Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['240'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:25 GMT'] - fastly-ratelimit-remaining: ['931'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:16 GMT'] + fastly-ratelimit-remaining: ['926'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472645.393275,VS0,VE268'] + x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] + x-timer: ['S1507631655.433554,VS0,VE571'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -92,15 +94,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:26 GMT'] - fastly-ratelimit-remaining: ['930'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:16 GMT'] + fastly-ratelimit-remaining: ['925'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472646.031629,VS0,VE201'] + x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] + x-timer: ['S1507631656.100428,VS0,VE440'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml b/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml index 30325ce..4a0d117 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml @@ -10,18 +10,19 @@ interactions: service ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:14 GMT'] + date: ['Tue, 10 Oct 2017 10:34:09 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472634.407998,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] + x-timer: ['S1507631649.133871,VS0,VE113'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"a8c44fc095fada8621c661431075edbbfa601fcc","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:15+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:37:15+00:00","comment":"","updated_at":"2017-09-27T00:37:15+00:00","id":"4FxTvVJXnyF5c1bwS4aqU"}'} + Ansible Module Test","publish_key":"8383c77596abe975a7f7747582243f576e8aa580","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:09Z","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['530'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:15 GMT'] - fastly-ratelimit-remaining: ['940'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:09 GMT'] + fastly-ratelimit-remaining: ['935'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472635.926963,VS0,VE137'] + x-served-by: ['app-slwdc9051-SL, cache-ams4133-AMS'] + x-timer: ['S1507631649.363695,VS0,VE415'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/details + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:15+00:00","deployed":false}],"created_at":"2017-09-27T00:37:15+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:15+00:00","id":"4FxTvVJXnyF5c1bwS4aqU","version":{"testing":false,"number":1,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"updated_at":"2017-09-27T00:37:15+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:37:15+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0","version":{"testing":false,"number":1,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:09Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:09Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1068'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:15 GMT'] + date: ['Tue, 10 Oct 2017 10:34:10 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472636.508867,VS0,VE81'] + x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] + x-timer: ['S1507631650.867033,VS0,VE145'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version response: - body: {string: !!python/unicode '{"service_id":"4FxTvVJXnyF5c1bwS4aqU","number":2}'} + body: {string: !!python/unicode '{"service_id":"4HlJytmc1TIv4wK5kD0Af0","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['49'] + content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:16 GMT'] - fastly-ratelimit-remaining: ['939'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:10 GMT'] + fastly-ratelimit-remaining: ['934'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472636.984292,VS0,VE183'] + x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] + x-timer: ['S1507631650.101653,VS0,VE181'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/domain + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4FxTvVJXnyF5c1bwS4aqU","version":2,"deleted_at":null,"created_at":"2017-09-27T00:37:16+00:00","updated_at":"2017-09-27T00:37:16+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4HlJytmc1TIv4wK5kD0Af0","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","updated_at":"2017-10-10T10:34:10Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:16 GMT'] - fastly-ratelimit-remaining: ['938'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:10 GMT'] + fastly-ratelimit-remaining: ['933'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472637.753561,VS0,VE195'] + x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] + x-timer: ['S1507631650.375867,VS0,VE186'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/backend + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"4FxTvVJXnyF5c1bwS4aqU","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:37:17+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:37:17+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4HlJytmc1TIv4wK5kD0Af0","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:11Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:11Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['725'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:17 GMT'] - fastly-ratelimit-remaining: ['937'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:11 GMT'] + fastly-ratelimit-remaining: ['932'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472637.307058,VS0,VE90'] + x-served-by: ['app-slwdc9051-SL, cache-ams4426-AMS'] + x-timer: ['S1507631651.666151,VS0,VE486'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content_types": "text/html text/css application/javascript", @@ -157,26 +160,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/gzip + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/gzip response: body: {string: !!python/unicode '{"content_types":"text/html text/css application/javascript","extensions":"html - css js","name":"gzip-config-name","cache_condition":"","service_id":"4FxTvVJXnyF5c1bwS4aqU","version":"2","deleted_at":null,"created_at":"2017-09-27T00:37:17+00:00","updated_at":"2017-09-27T00:37:17+00:00"}'} + css js","name":"gzip-config-name","cache_condition":"","service_id":"4HlJytmc1TIv4wK5kD0Af0","version":"2","deleted_at":null,"created_at":"2017-10-10T10:34:11Z","updated_at":"2017-10-10T10:34:11Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['286'] + content-length: ['277'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:18 GMT'] - fastly-ratelimit-remaining: ['936'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:11 GMT'] + fastly-ratelimit-remaining: ['931'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472638.830229,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-ams4127-AMS'] + x-timer: ['S1507631651.243089,VS0,VE487'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -186,26 +189,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/header + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4FxTvVJXnyF5c1bwS4aqU","version":"2","updated_at":"2017-09-27T00:37:18+00:00","deleted_at":null,"created_at":"2017-09-27T00:37:18+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4HlJytmc1TIv4wK5kD0Af0","version":"2","updated_at":"2017-10-10T10:34:12Z","deleted_at":null,"created_at":"2017-10-10T10:34:12Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:18 GMT'] - fastly-ratelimit-remaining: ['935'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:12 GMT'] + fastly-ratelimit-remaining: ['930'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472638.441501,VS0,VE268'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631652.814987,VS0,VE465'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -213,90 +216,90 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/response_object + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"4FxTvVJXnyF5c1bwS4aqU","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:37:20+00:00","updated_at":"2017-09-27T00:37:20+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4HlJytmc1TIv4wK5kD0Af0","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:12Z","updated_at":"2017-10-10T10:34:12Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['287'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:20 GMT'] - fastly-ratelimit-remaining: ['934'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:12 GMT'] + fastly-ratelimit-remaining: ['929'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472640.126475,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] + x-timer: ['S1507631652.379436,VS0,VE437'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/settings + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4FxTvVJXnyF5c1bwS4aqU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4HlJytmc1TIv4wK5kD0Af0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['127'] + content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:20 GMT'] - fastly-ratelimit-remaining: ['933'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:13 GMT'] + fastly-ratelimit-remaining: ['928'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472640.436756,VS0,VE213'] + x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] + x-timer: ['S1507631653.905907,VS0,VE470'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/version/2/activate + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:20+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:12Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['250'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:21 GMT'] - fastly-ratelimit-remaining: ['932'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:14 GMT'] + fastly-ratelimit-remaining: ['927'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472641.882227,VS0,VE768'] + x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] + x-timer: ['S1507631653.461469,VS0,VE1011'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4FxTvVJXnyF5c1bwS4aqU/details + uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:15+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"created_at":"2017-09-27T00:37:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:21+00:00","deployed":false}],"created_at":"2017-09-27T00:37:15+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:15+00:00","id":"4FxTvVJXnyF5c1bwS4aqU","version":{"testing":false,"number":2,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"updated_at":"2017-09-27T00:37:21+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-09-27T00:37:17+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-27T00:37:17+00:00","content_types":"text/html + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:14Z","deployed":false}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0","version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4FxTvVJXnyF5c1bwS4aqU","staging":false,"updated_at":"2017-09-27T00:37:21+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-09-27T00:37:17+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-27T00:37:17+00:00","content_types":"text/html + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -305,15 +308,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4376'] + content-length: ['4311'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:22 GMT'] + date: ['Tue, 10 Oct 2017 10:34:14 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472642.253307,VS0,VE164'] + x-served-by: ['app-slwdc9051-SL, cache-ams4150-AMS'] + x-timer: ['S1507631655.577478,VS0,VE150'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml index 6019463..d5c5e73 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml @@ -6,80 +6,81 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false},{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:37:26+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:42 GMT'] + date: ['Tue, 10 Oct 2017 10:34:24 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472663.614111,VS0,VE109'] + x-served-by: ['app-slwdc9051-SL, cache-ams4125-AMS'] + x-timer: ['S1507631664.714776,VS0,VE409'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/details + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:35+00:00","deployed":false}],"created_at":"2017-09-27T00:37:26+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY","version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4378'] + content-length: ['4333'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:43 GMT'] + date: ['Tue, 10 Oct 2017 10:34:24 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472663.321347,VS0,VE156'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631664.264076,VS0,VE109'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/deactivate + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:35+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['240'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:44 GMT'] - fastly-ratelimit-remaining: ['920'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:24 GMT'] + fastly-ratelimit-remaining: ['915'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472664.956156,VS0,VE293'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631664.463623,VS0,VE484'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -88,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:44 GMT'] - fastly-ratelimit-remaining: ['919'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:25 GMT'] + fastly-ratelimit-remaining: ['914'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472665.608250,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] + x-timer: ['S1507631665.033185,VS0,VE454'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml b/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml index e76ff43..df9ec2b 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml @@ -14,14 +14,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:26 GMT'] + date: ['Tue, 10 Oct 2017 10:34:16 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472647.574804,VS0,VE56'] + x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] + x-timer: ['S1507631657.645955,VS0,VE151'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,97 +31,97 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"8eeb74896ba09f61324f0ff5b4cad695a9a89712","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:37:26+00:00","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY"}'} + Ansible Module Test","publish_key":"9aab099ce74114d38cb39aef6874ee36199d9dcf","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['530'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:26 GMT'] - fastly-ratelimit-remaining: ['929'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:17 GMT'] + fastly-ratelimit-remaining: ['924'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472647.813459,VS0,VE85'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631657.899417,VS0,VE431'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/details + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false}],"created_at":"2017-09-27T00:37:26+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY","version":{"testing":false,"number":1,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:26+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:37:26+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":1,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:17Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1068'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:27 GMT'] + date: ['Tue, 10 Oct 2017 10:34:17 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472648.769249,VS0,VE83'] + x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] + x-timer: ['S1507631657.417345,VS0,VE152'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version response: - body: {string: !!python/unicode '{"service_id":"HZGOu3cF6xdLM0Nj580TY","number":2}'} + body: {string: !!python/unicode '{"service_id":"4QFxZxf32MisKh2IE0OulQ","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['49'] + content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:28 GMT'] - fastly-ratelimit-remaining: ['928'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:18 GMT'] + fastly-ratelimit-remaining: ['923'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472649.565591,VS0,VE191'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631658.655071,VS0,VE410'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/domain + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"HZGOu3cF6xdLM0Nj580TY","version":2,"deleted_at":null,"created_at":"2017-09-27T00:37:29+00:00","updated_at":"2017-09-27T00:37:29+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4QFxZxf32MisKh2IE0OulQ","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:18Z","updated_at":"2017-10-10T10:34:18Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:29 GMT'] - fastly-ratelimit-remaining: ['927'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:18 GMT'] + fastly-ratelimit-remaining: ['922'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472650.595226,VS0,VE223'] + x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] + x-timer: ['S1507631658.156446,VS0,VE426'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "test_healthcheck", "http_version": @@ -131,52 +131,54 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/healthcheck + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/healthcheck response: - body: {string: !!python/unicode '{"comment":"","name":"test_healthcheck","http_version":"1.1","window":5,"initial":4,"timeout":5000,"host":"example8000.com","expected_response":200,"check_interval":15000,"threshold":3,"path":"/healthcheck","method":"GET","service_id":"HZGOu3cF6xdLM0Nj580TY","version":2,"updated_at":"2017-09-27T00:37:30+00:00","deleted_at":null,"created_at":"2017-09-27T00:37:30+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"test_healthcheck","http_version":"1.1","window":5,"initial":4,"timeout":5000,"host":"example8000.com","expected_response":200,"check_interval":15000,"threshold":3,"path":"/healthcheck","method":"GET","service_id":"4QFxZxf32MisKh2IE0OulQ","version":2,"updated_at":"2017-10-10T10:34:19Z","deleted_at":null,"created_at":"2017-10-10T10:34:19Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['371'] + content-length: ['362'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:30 GMT'] - fastly-ratelimit-remaining: ['926'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:19 GMT'] + fastly-ratelimit-remaining: ['921'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472650.230040,VS0,VE81'] + x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] + x-timer: ['S1507631659.668112,VS0,VE487'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": "test_healthcheck", "ssl_cert_hostname": null, "address": - "127.0.0.1", "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": "test_healthcheck", "first_byte_timeout": + 15000, "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, + "address": "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": + 80, "ssl_hostname": null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/backend + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":"test_healthcheck","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"HZGOu3cF6xdLM0Nj580TY","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:37:30+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:37:30+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":"test_healthcheck","first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4QFxZxf32MisKh2IE0OulQ","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:19Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:19Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['739'] + content-length: ['730'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:30 GMT'] - fastly-ratelimit-remaining: ['925'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:19 GMT'] + fastly-ratelimit-remaining: ['920'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472651.593961,VS0,VE204'] + x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] + x-timer: ['S1507631659.254287,VS0,VE582'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -186,26 +188,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/header + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"HZGOu3cF6xdLM0Nj580TY","version":"2","updated_at":"2017-09-27T00:37:32+00:00","deleted_at":null,"created_at":"2017-09-27T00:37:32+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4QFxZxf32MisKh2IE0OulQ","version":"2","updated_at":"2017-10-10T10:34:20Z","deleted_at":null,"created_at":"2017-10-10T10:34:20Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:32 GMT'] - fastly-ratelimit-remaining: ['924'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:20 GMT'] + fastly-ratelimit-remaining: ['919'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472653.576937,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] + x-timer: ['S1507631660.924720,VS0,VE207'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -213,87 +215,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/response_object + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"HZGOu3cF6xdLM0Nj580TY","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:37:33+00:00","updated_at":"2017-09-27T00:37:33+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4QFxZxf32MisKh2IE0OulQ","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:20Z","updated_at":"2017-10-10T10:34:20Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['287'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:33 GMT'] - fastly-ratelimit-remaining: ['923'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:20 GMT'] + fastly-ratelimit-remaining: ['918'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472653.092081,VS0,VE78'] + x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] + x-timer: ['S1507631660.223859,VS0,VE449'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/settings + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"HZGOu3cF6xdLM0Nj580TY"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4QFxZxf32MisKh2IE0OulQ"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['127'] + content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:33 GMT'] - fastly-ratelimit-remaining: ['922'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:20 GMT'] + fastly-ratelimit-remaining: ['917'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472654.567510,VS0,VE65'] + x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] + x-timer: ['S1507631661.763853,VS0,VE171'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/version/2/activate + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:33+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:20Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['250'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:35 GMT'] - fastly-ratelimit-remaining: ['921'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:22 GMT'] + fastly-ratelimit-remaining: ['916'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472655.043439,VS0,VE767'] + x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] + x-timer: ['S1507631661.020607,VS0,VE1292'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/details + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:35+00:00","deployed":false}],"created_at":"2017-09-27T00:37:26+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY","version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -301,16 +303,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4378'] + content-length: ['4333'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:38 GMT'] + date: ['Tue, 10 Oct 2017 10:34:22 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472659.637134,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631663.825321,VS0,VE160'] status: {code: 200, message: OK} - request: body: null @@ -319,32 +321,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false},{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:37:26+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:40 GMT'] + date: ['Tue, 10 Oct 2017 10:34:23 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472660.931325,VS0,VE69'] + x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] + x-timer: ['S1507631663.076751,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/details + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:35+00:00","deployed":false}],"created_at":"2017-09-27T00:37:26+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY","version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -352,27 +355,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4378'] + content-length: ['4333'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:41 GMT'] + date: ['Tue, 10 Oct 2017 10:34:23 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472661.284303,VS0,VE45'] + x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] + x-timer: ['S1507631663.302423,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/HZGOu3cF6xdLM0Nj580TY/details + uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:26+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"created_at":"2017-09-27T00:37:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:35+00:00","deployed":false}],"created_at":"2017-09-27T00:37:26+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:26+00:00","id":"HZGOu3cF6xdLM0Nj580TY","version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"HZGOu3cF6xdLM0Nj580TY","staging":false,"updated_at":"2017-09-27T00:37:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:28+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -380,15 +383,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4378'] + content-length: ['4333'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:41 GMT'] + date: ['Tue, 10 Oct 2017 10:34:23 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472662.892847,VS0,VE45'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631664.505316,VS0,VE113'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml index 2f30ffc..c761838 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false},{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:37:47+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:59 GMT'] + date: ['Tue, 10 Oct 2017 10:34:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472679.264842,VS0,VE74'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631673.853931,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/details + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:57+00:00","deployed":false}],"created_at":"2017-09-27T00:37:47+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU","version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,48 +40,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4490'] + content-length: ['4445'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:59 GMT'] + date: ['Tue, 10 Oct 2017 10:34:33 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472680.632384,VS0,VE46'] + x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] + x-timer: ['S1507631673.145449,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/deactivate + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:57+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['240'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:00 GMT'] - fastly-ratelimit-remaining: ['909'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:33 GMT'] + fastly-ratelimit-remaining: ['904'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472681.770332,VS0,VE208'] + x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] + x-timer: ['S1507631673.414893,VS0,VE516'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:01 GMT'] - fastly-ratelimit-remaining: ['908'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:34 GMT'] + fastly-ratelimit-remaining: ['903'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472682.724275,VS0,VE188'] + x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] + x-timer: ['S1507631674.060451,VS0,VE415'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml index 74876a7..f060eed 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:45 GMT'] + date: ['Tue, 10 Oct 2017 10:34:25 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472665.222440,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] + x-timer: ['S1507631666.597328,VS0,VE115'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"cf24d8e9579f290e519663291ed063526c49cde9","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:37:47+00:00","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU"}'} + Ansible Module Test","publish_key":"d50f347752bc265d53b3917b325774b59aa07e26","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:26Z","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['530'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:47 GMT'] - fastly-ratelimit-remaining: ['918'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:26 GMT'] + fastly-ratelimit-remaining: ['913'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472668.620211,VS0,VE212'] + x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] + x-timer: ['S1507631666.825254,VS0,VE434'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/details + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false}],"created_at":"2017-09-27T00:37:47+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU","version":{"testing":false,"number":1,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:47+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:37:47+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":1,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:26Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:26Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1068'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:48 GMT'] + date: ['Tue, 10 Oct 2017 10:34:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472668.475972,VS0,VE85'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631666.365046,VS0,VE454'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version response: - body: {string: !!python/unicode '{"service_id":"f74B1t0ZfRuzkh4qE4uJU","number":2}'} + body: {string: !!python/unicode '{"service_id":"4aIcRStjbGbmtsrU17Kcno","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['49'] + content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:49 GMT'] - fastly-ratelimit-remaining: ['917'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:27 GMT'] + fastly-ratelimit-remaining: ['912'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472669.121472,VS0,VE76'] + x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] + x-timer: ['S1507631667.924247,VS0,VE440'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/domain + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"f74B1t0ZfRuzkh4qE4uJU","version":2,"deleted_at":null,"created_at":"2017-09-27T00:37:50+00:00","updated_at":"2017-09-27T00:37:50+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4aIcRStjbGbmtsrU17Kcno","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","updated_at":"2017-10-10T10:34:27Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:50 GMT'] - fastly-ratelimit-remaining: ['916'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:27 GMT'] + fastly-ratelimit-remaining: ['911'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472671.565580,VS0,VE235'] + x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] + x-timer: ['S1507631667.453834,VS0,VE453'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/backend + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"f74B1t0ZfRuzkh4qE4uJU","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:37:51+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:37:51+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4aIcRStjbGbmtsrU17Kcno","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:28Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:28Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['725'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:51 GMT'] - fastly-ratelimit-remaining: ['915'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:28 GMT'] + fastly-ratelimit-remaining: ['910'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472671.248550,VS0,VE239'] + x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] + x-timer: ['S1507631668.994018,VS0,VE484'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,26 +161,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/header + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"f74B1t0ZfRuzkh4qE4uJU","version":"2","updated_at":"2017-09-27T00:37:52+00:00","deleted_at":null,"created_at":"2017-09-27T00:37:52+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4aIcRStjbGbmtsrU17Kcno","version":"2","updated_at":"2017-10-10T10:34:28Z","deleted_at":null,"created_at":"2017-10-10T10:34:28Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:52 GMT'] - fastly-ratelimit-remaining: ['914'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:29 GMT'] + fastly-ratelimit-remaining: ['909'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472672.192420,VS0,VE80'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631669.577704,VS0,VE490'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"request_condition": "", "name": "request-setting-config-name", @@ -188,25 +190,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/request_settings + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/request_settings response: - body: {string: !!python/unicode '{"request_condition":"","name":"request-setting-config-name","force_miss":"1","xff":"append","bypass_busy_wait":"1","timer_support":"1","force_ssl":"1","action":"pass","geo_headers":"1","default_host":"example.net","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":30,"service_id":"f74B1t0ZfRuzkh4qE4uJU","version":"2","updated_at":"2017-09-27T00:37:52+00:00","deleted_at":null,"created_at":"2017-09-27T00:37:52+00:00"}'} + body: {string: !!python/unicode '{"request_condition":"","name":"request-setting-config-name","force_miss":"1","xff":"append","bypass_busy_wait":"1","timer_support":"1","force_ssl":"1","action":"pass","geo_headers":"1","default_host":"example.net","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":30,"service_id":"4aIcRStjbGbmtsrU17Kcno","version":"2","updated_at":"2017-10-10T10:34:29Z","deleted_at":null,"created_at":"2017-10-10T10:34:29Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['441'] + content-length: ['432'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:52 GMT'] - fastly-ratelimit-remaining: ['913'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:29 GMT'] + fastly-ratelimit-remaining: ['908'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472672.456980,VS0,VE217'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631669.156274,VS0,VE162'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -214,87 +216,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/response_object + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"f74B1t0ZfRuzkh4qE4uJU","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:37:55+00:00","updated_at":"2017-09-27T00:37:55+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4aIcRStjbGbmtsrU17Kcno","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:29Z","updated_at":"2017-10-10T10:34:29Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['287'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:55 GMT'] - fastly-ratelimit-remaining: ['912'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:29 GMT'] + fastly-ratelimit-remaining: ['907'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472675.206658,VS0,VE181'] + x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] + x-timer: ['S1507631669.426467,VS0,VE444'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/settings + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"f74B1t0ZfRuzkh4qE4uJU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4aIcRStjbGbmtsrU17Kcno"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['127'] + content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:56 GMT'] - fastly-ratelimit-remaining: ['911'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:30 GMT'] + fastly-ratelimit-remaining: ['906'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472676.025729,VS0,VE206'] + x-served-by: ['app-slwdc9051-SL, cache-ams4426-AMS'] + x-timer: ['S1507631670.015236,VS0,VE469'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/version/2/activate + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:55+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:29Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['250'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:57 GMT'] - fastly-ratelimit-remaining: ['910'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:31 GMT'] + fastly-ratelimit-remaining: ['905'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472677.762050,VS0,VE808'] + x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] + x-timer: ['S1507631671.590717,VS0,VE773'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/details + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:57+00:00","deployed":false}],"created_at":"2017-09-27T00:37:47+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU","version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -302,16 +304,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4490'] + content-length: ['4445'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:57 GMT'] + date: ['Tue, 10 Oct 2017 10:34:31 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472678.826195,VS0,VE89'] + x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] + x-timer: ['S1507631671.445888,VS0,VE158'] status: {code: 200, message: OK} - request: body: null @@ -320,33 +322,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false},{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:37:47+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:58 GMT'] + date: ['Tue, 10 Oct 2017 10:34:31 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472678.243724,VS0,VE80'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631672.731727,VS0,VE136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/details + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:57+00:00","deployed":false}],"created_at":"2017-09-27T00:37:47+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU","version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -354,42 +356,43 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4490'] + content-length: ['4445'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:58 GMT'] + date: ['Tue, 10 Oct 2017 10:34:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472679.564306,VS0,VE49'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631672.998526,VS0,VE111'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/f74B1t0ZfRuzkh4qE4uJU/details + uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:47+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"created_at":"2017-09-27T00:37:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:37:57+00:00","deployed":false}],"created_at":"2017-09-27T00:37:47+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:37:47+00:00","id":"f74B1t0ZfRuzkh4qE4uJU","version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"f74B1t0ZfRuzkh4qE4uJU","staging":false,"updated_at":"2017-09-27T00:37:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:37:49+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4490'] + content-length: ['4445'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:37:58 GMT'] + date: ['Tue, 10 Oct 2017 10:34:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472679.899137,VS0,VE88'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631672.280067,VS0,VE153'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml index 2b7a168..f10523e 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:02 GMT'] + date: ['Tue, 10 Oct 2017 10:34:34 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472682.124487,VS0,VE57'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631675.717836,VS0,VE114'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"7bc65a5b835c131e43be59ab38fc2c5486abb8a0","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:38:02+00:00","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2"}'} + Ansible Module Test","publish_key":"f72a243a9188b35f24e64ecd256d845e832dea70","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:35Z","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['530'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:02 GMT'] - fastly-ratelimit-remaining: ['907'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:35 GMT'] + fastly-ratelimit-remaining: ['902'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472682.394894,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631675.942485,VS0,VE473'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":1,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:02+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:38:02+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":1,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:35Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:35Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1068'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:02 GMT'] + date: ['Tue, 10 Oct 2017 10:34:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472683.769715,VS0,VE84'] + x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] + x-timer: ['S1507631676.540522,VS0,VE482'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version response: - body: {string: !!python/unicode '{"service_id":"vh2V6yXAt38PanexJGVP2","number":2}'} + body: {string: !!python/unicode '{"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['49'] + content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:03 GMT'] - fastly-ratelimit-remaining: ['906'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:36 GMT'] + fastly-ratelimit-remaining: ['901'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472683.170022,VS0,VE95'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631676.127852,VS0,VE481'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version/2/domain + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"vh2V6yXAt38PanexJGVP2","version":2,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","updated_at":"2017-09-27T00:38:03+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4kaOUJ6F9Xes5wfMWUoKa4","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:37Z","updated_at":"2017-10-10T10:34:37Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:03 GMT'] - fastly-ratelimit-remaining: ['905'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:38 GMT'] + fastly-ratelimit-remaining: ['900'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472683.492875,VS0,VE230'] + x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] + x-timer: ['S1507631677.737118,VS0,VE1587'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version/2/backend + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"vh2V6yXAt38PanexJGVP2","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:38:03+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:38:03+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:38Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:38Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['725'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:04 GMT'] - fastly-ratelimit-remaining: ['904'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:38 GMT'] + fastly-ratelimit-remaining: ['899'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472684.905958,VS0,VE95'] + x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] + x-timer: ['S1507631678.416655,VS0,VE196'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,26 +161,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version/2/header + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"vh2V6yXAt38PanexJGVP2","version":"2","updated_at":"2017-09-27T00:38:04+00:00","deleted_at":null,"created_at":"2017-09-27T00:38:04+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","version":"2","updated_at":"2017-10-10T10:34:39Z","deleted_at":null,"created_at":"2017-10-10T10:34:39Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:04 GMT'] - fastly-ratelimit-remaining: ['903'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:39 GMT'] + fastly-ratelimit-remaining: ['898'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472684.197673,VS0,VE181'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631679.719144,VS0,VE432'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -187,87 +189,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version/2/response_object + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"vh2V6yXAt38PanexJGVP2","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:38:04+00:00","updated_at":"2017-09-27T00:38:04+00:00"}'} + 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"4kaOUJ6F9Xes5wfMWUoKa4","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:39Z","updated_at":"2017-10-10T10:34:39Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['314'] + content-length: ['305'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:04 GMT'] - fastly-ratelimit-remaining: ['902'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:39 GMT'] + fastly-ratelimit-remaining: ['897'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472685.581820,VS0,VE83'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631679.319848,VS0,VE483'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version/2/settings + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"vh2V6yXAt38PanexJGVP2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['127'] + content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:04 GMT'] - fastly-ratelimit-remaining: ['901'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:40 GMT'] + fastly-ratelimit-remaining: ['896'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472685.849060,VS0,VE102'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631680.890211,VS0,VE185'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version/2/activate + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:04+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:39Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['250'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:05 GMT'] - fastly-ratelimit-remaining: ['900'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:41 GMT'] + fastly-ratelimit-remaining: ['895'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472685.140893,VS0,VE655'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631680.181279,VS0,VE1058'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -275,16 +277,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:06 GMT'] + date: ['Tue, 10 Oct 2017 10:34:41 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472686.043971,VS0,VE83'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631681.381384,VS0,VE194'] status: {code: 200, message: OK} - request: body: null @@ -293,33 +295,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:07 GMT'] + date: ['Tue, 10 Oct 2017 10:34:42 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472687.965584,VS0,VE80'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631682.654963,VS0,VE547'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -327,27 +328,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:07 GMT'] + date: ['Tue, 10 Oct 2017 10:34:42 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472687.245933,VS0,VE48'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631682.374132,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -355,15 +356,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:07 GMT'] + date: ['Tue, 10 Oct 2017 10:34:42 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472688.528571,VS0,VE87'] + x-served-by: ['app-slwdc9051-SL, cache-ams4441-AMS'] + x-timer: ['S1507631683.624630,VS0,VE123'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml index b042583..2660dbe 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml @@ -6,33 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:10 GMT'] + date: ['Tue, 10 Oct 2017 10:34:44 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472690.397750,VS0,VE74'] + x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] + x-timer: ['S1507631684.432080,VS0,VE472'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,48 +39,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:10 GMT'] + date: ['Tue, 10 Oct 2017 10:34:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472691.861999,VS0,VE50'] + x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] + x-timer: ['S1507631685.984443,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/version/2/deactivate + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['240'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:11 GMT'] - fastly-ratelimit-remaining: ['899'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:45 GMT'] + fastly-ratelimit-remaining: ['894'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472691.176283,VS0,VE232'] + x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] + x-timer: ['S1507631685.212757,VS0,VE490'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2 + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:12 GMT'] - fastly-ratelimit-remaining: ['898'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:46 GMT'] + fastly-ratelimit-remaining: ['893'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472692.357899,VS0,VE188'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631686.781359,VS0,VE446'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml index fbd639e..c9ff370 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:07 GMT'] + date: ['Tue, 10 Oct 2017 10:34:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472688.880063,VS0,VE74'] + x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] + x-timer: ['S1507631683.882080,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,43 +40,44 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:08 GMT'] + date: ['Tue, 10 Oct 2017 10:34:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472689.610805,VS0,VE46'] + x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] + x-timer: ['S1507631683.171768,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:09 GMT'] + date: ['Tue, 10 Oct 2017 10:34:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472689.980593,VS0,VE45'] + x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] + x-timer: ['S1507631683.423476,VS0,VE119'] status: {code: 200, message: OK} - request: body: null @@ -85,75 +86,77 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['613'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:09 GMT'] + date: ['Tue, 10 Oct 2017 10:34:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472689.433350,VS0,VE71'] + x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] + x-timer: ['S1507631684.687511,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:09 GMT'] + date: ['Tue, 10 Oct 2017 10:34:44 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472690.866982,VS0,VE44'] + x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] + x-timer: ['S1507631684.954165,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/vh2V6yXAt38PanexJGVP2/details + uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"created_at":"2017-09-27T00:38:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:05+00:00","deployed":false}],"created_at":"2017-09-27T00:38:02+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:02+00:00","id":"vh2V6yXAt38PanexJGVP2","version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"vh2V6yXAt38PanexJGVP2","staging":false,"updated_at":"2017-09-27T00:38:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:03+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3960'] + content-length: ['3915'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:10 GMT'] + date: ['Tue, 10 Oct 2017 10:34:44 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472690.100602,VS0,VE46'] + x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] + x-timer: ['S1507631684.214427,VS0,VE119'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml index 8497cfb..0268500 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml @@ -10,18 +10,19 @@ interactions: service ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:12 GMT'] + date: ['Tue, 10 Oct 2017 10:34:46 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472693.815705,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] + x-timer: ['S1507631686.417292,VS0,VE113'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"e657ebc6ea042c3ac13aab555145beb9a3287d8a","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:38:13+00:00","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy"}'} + Ansible Module Test","publish_key":"c1d2762104b3cd6a9f288cc51729e95b05a3b57c","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:47Z","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['532'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:13 GMT'] - fastly-ratelimit-remaining: ['897'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:47 GMT'] + fastly-ratelimit-remaining: ['892'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472693.351026,VS0,VE70'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631687.749738,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":1,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:13+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:38:13+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":1,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:47Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:47Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1071'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:13 GMT'] + date: ['Tue, 10 Oct 2017 10:34:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472694.856340,VS0,VE131'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631687.296902,VS0,VE472'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version response: - body: {string: !!python/unicode '{"service_id":"17tQwFF89j3SUAHqSUt5Gy","number":2}'} + body: {string: !!python/unicode '{"service_id":"4xnfA4O8r20X64B725sX14","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:14 GMT'] - fastly-ratelimit-remaining: ['896'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:48 GMT'] + fastly-ratelimit-remaining: ['891'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472695.633426,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] + x-timer: ['S1507631688.963033,VS0,VE455'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/2/domain + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"17tQwFF89j3SUAHqSUt5Gy","version":2,"deleted_at":null,"created_at":"2017-09-27T00:38:15+00:00","updated_at":"2017-09-27T00:38:15+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4xnfA4O8r20X64B725sX14","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","updated_at":"2017-10-10T10:34:48Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:15 GMT'] - fastly-ratelimit-remaining: ['895'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:49 GMT'] + fastly-ratelimit-remaining: ['890'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472695.156148,VS0,VE230'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631689.564738,VS0,VE502'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/2/backend + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"17tQwFF89j3SUAHqSUt5Gy","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:38:15+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:38:15+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4xnfA4O8r20X64B725sX14","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:49Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:49Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:15 GMT'] - fastly-ratelimit-remaining: ['894'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:49 GMT'] + fastly-ratelimit-remaining: ['889'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472696.735193,VS0,VE97'] + x-served-by: ['app-slwdc9051-SL, cache-ams4425-AMS'] + x-timer: ['S1507631689.307816,VS0,VE397'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -158,26 +161,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/2/header + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"17tQwFF89j3SUAHqSUt5Gy","version":"2","updated_at":"2017-09-27T00:38:16+00:00","deleted_at":null,"created_at":"2017-09-27T00:38:16+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4xnfA4O8r20X64B725sX14","version":"2","updated_at":"2017-10-10T10:34:50Z","deleted_at":null,"created_at":"2017-10-10T10:34:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:16 GMT'] - fastly-ratelimit-remaining: ['893'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:50 GMT'] + fastly-ratelimit-remaining: ['888'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472696.098429,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] + x-timer: ['S1507631690.826228,VS0,VE476'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -185,87 +188,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/2/response_object + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"17tQwFF89j3SUAHqSUt5Gy","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:38:16+00:00","updated_at":"2017-09-27T00:38:16+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4xnfA4O8r20X64B725sX14","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:50Z","updated_at":"2017-10-10T10:34:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:16 GMT'] - fastly-ratelimit-remaining: ['892'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:50 GMT'] + fastly-ratelimit-remaining: ['887'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472697.689752,VS0,VE79'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631690.442226,VS0,VE445'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/2/settings + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"17tQwFF89j3SUAHqSUt5Gy"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4xnfA4O8r20X64B725sX14"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:17 GMT'] - fastly-ratelimit-remaining: ['891'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:51 GMT'] + fastly-ratelimit-remaining: ['886'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472697.116623,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631691.021266,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/2/activate + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:16+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:50Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:18 GMT'] - fastly-ratelimit-remaining: ['890'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:52 GMT'] + fastly-ratelimit-remaining: ['885'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472698.935924,VS0,VE638'] + x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] + x-timer: ['S1507631691.306803,VS0,VE1029'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:18+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -273,16 +276,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3911'] + content-length: ['3861'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:18 GMT'] + date: ['Tue, 10 Oct 2017 10:34:52 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472699.868835,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-ams4429-AMS'] + x-timer: ['S1507631693.832312,VS0,VE163'] status: {code: 200, message: OK} - request: body: null @@ -291,32 +294,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:19 GMT'] + date: ['Tue, 10 Oct 2017 10:34:53 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472699.213987,VS0,VE80'] + x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] + x-timer: ['S1507631693.140139,VS0,VE473'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:18+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -324,27 +327,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3911'] + content-length: ['3861'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:19 GMT'] + date: ['Tue, 10 Oct 2017 10:34:53 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472700.801106,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] + x-timer: ['S1507631694.789671,VS0,VE124'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:18+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -352,15 +355,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3911'] + content-length: ['3861'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:20 GMT'] + date: ['Tue, 10 Oct 2017 10:34:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472700.093419,VS0,VE52'] + x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] + x-timer: ['S1507631694.138491,VS0,VE125'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml index e4bfe14..b3a2b97 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml @@ -6,80 +6,82 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false},{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['858'] + content-length: ['828'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:13 GMT'] + date: ['Tue, 10 Oct 2017 10:36:18 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472813.429071,VS0,VE111'] + x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] + x-timer: ['S1507631778.083094,VS0,VE173'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:39:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4153'] + content-length: ['4093'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:13 GMT'] + date: ['Tue, 10 Oct 2017 10:36:18 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472814.743223,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] + x-timer: ['S1507631778.344388,VS0,VE110'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/3/deactivate + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:39:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:14 GMT'] - fastly-ratelimit-remaining: ['808'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:18 GMT'] + fastly-ratelimit-remaining: ['790'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472814.163729,VS0,VE245'] + x-served-by: ['app-slwdc9051-SL, cache-ams4444-AMS'] + x-timer: ['S1507631779.531303,VS0,VE202'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -88,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:17 GMT'] - fastly-ratelimit-remaining: ['807'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:19 GMT'] + fastly-ratelimit-remaining: ['789'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472817.231393,VS0,VE249'] + x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] + x-timer: ['S1507631779.815502,VS0,VE459'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml b/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml index 858d81f..84d3653 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:58 GMT'] + date: ['Tue, 10 Oct 2017 10:36:12 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472798.411017,VS0,VE69'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631772.158510,VS0,VE432'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:18+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:38:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,93 +40,95 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3911'] + content-length: ['3861'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:58 GMT'] + date: ['Tue, 10 Oct 2017 10:36:13 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472799.883278,VS0,VE45'] + x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] + x-timer: ['S1507631773.666185,VS0,VE410'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version response: - body: {string: !!python/unicode '{"service_id":"17tQwFF89j3SUAHqSUt5Gy","number":3}'} + body: {string: !!python/unicode '{"service_id":"4xnfA4O8r20X64B725sX14","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:59 GMT'] - fastly-ratelimit-remaining: ['815'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:13 GMT'] + fastly-ratelimit-remaining: ['797'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472799.173842,VS0,VE175'] + x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] + x-timer: ['S1507631773.172492,VS0,VE473'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/3/domain + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"17tQwFF89j3SUAHqSUt5Gy","version":3,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","updated_at":"2017-09-27T00:39:59+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4xnfA4O8r20X64B725sX14","version":3,"deleted_at":null,"created_at":"2017-10-10T10:36:14Z","updated_at":"2017-10-10T10:36:14Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:59 GMT'] - fastly-ratelimit-remaining: ['814'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:14 GMT'] + fastly-ratelimit-remaining: ['796'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472800.574307,VS0,VE227'] + x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] + x-timer: ['S1507631774.718902,VS0,VE466'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/3/backend + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"17tQwFF89j3SUAHqSUt5Gy","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:40:00+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:40:00+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4xnfA4O8r20X64B725sX14","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:14Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:14Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:00 GMT'] - fastly-ratelimit-remaining: ['813'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:14 GMT'] + fastly-ratelimit-remaining: ['795'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472800.180778,VS0,VE213'] + x-served-by: ['app-slwdc9051-SL, cache-ams4447-AMS'] + x-timer: ['S1507631774.267511,VS0,VE162'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -136,26 +138,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/3/header + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"17tQwFF89j3SUAHqSUt5Gy","version":"3","updated_at":"2017-09-27T00:40:01+00:00","deleted_at":null,"created_at":"2017-09-27T00:40:01+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4xnfA4O8r20X64B725sX14","version":"3","updated_at":"2017-10-10T10:36:14Z","deleted_at":null,"created_at":"2017-10-10T10:36:14Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:01 GMT'] - fastly-ratelimit-remaining: ['812'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:15 GMT'] + fastly-ratelimit-remaining: ['794'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472801.450275,VS0,VE79'] + x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] + x-timer: ['S1507631775.509432,VS0,VE520'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -163,87 +165,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/3/response_object + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"17tQwFF89j3SUAHqSUt5Gy","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:40:03+00:00","updated_at":"2017-09-27T00:40:03+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4xnfA4O8r20X64B725sX14","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:15Z","updated_at":"2017-10-10T10:36:15Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:03 GMT'] - fastly-ratelimit-remaining: ['811'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:15 GMT'] + fastly-ratelimit-remaining: ['793'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472804.563309,VS0,VE183'] + x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] + x-timer: ['S1507631775.115386,VS0,VE445'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 1000}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/3/settings + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":1000,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"17tQwFF89j3SUAHqSUt5Gy"}'} + body: {string: !!python/unicode '{"general.default_ttl":1000,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"4xnfA4O8r20X64B725sX14"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:05 GMT'] - fastly-ratelimit-remaining: ['810'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:15 GMT'] + fastly-ratelimit-remaining: ['792'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472805.855956,VS0,VE261'] + x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] + x-timer: ['S1507631776.666590,VS0,VE205'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/version/3/activate + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:39:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:03+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:15Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:06 GMT'] - fastly-ratelimit-remaining: ['809'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:16 GMT'] + fastly-ratelimit-remaining: ['791'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472805.378063,VS0,VE800'] + x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] + x-timer: ['S1507631776.965611,VS0,VE1010'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:39:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -251,16 +253,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4153'] + content-length: ['4093'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:10 GMT'] + date: ['Tue, 10 Oct 2017 10:36:17 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472810.452511,VS0,VE187'] + x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] + x-timer: ['S1507631777.056761,VS0,VE186'] status: {code: 200, message: OK} - request: body: null @@ -269,76 +271,76 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false},{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['858'] + content-length: ['828'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:10 GMT'] + date: ['Tue, 10 Oct 2017 10:36:17 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472811.899026,VS0,VE72'] + x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] + x-timer: ['S1507631777.333045,VS0,VE179'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:39:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4153'] + content-length: ['4093'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:12 GMT'] + date: ['Tue, 10 Oct 2017 10:36:17 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472812.369586,VS0,VE48'] + x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] + x-timer: ['S1507631778.604633,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/17tQwFF89j3SUAHqSUt5Gy/details + uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:13+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:38:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"created_at":"2017-09-27T00:39:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:06+00:00","deployed":false}],"created_at":"2017-09-27T00:38:13+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:13+00:00","id":"17tQwFF89j3SUAHqSUt5Gy","version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"17tQwFF89j3SUAHqSUt5Gy","staging":false,"updated_at":"2017-09-27T00:40:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4153'] + content-length: ['4093'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:12 GMT'] + date: ['Tue, 10 Oct 2017 10:36:17 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472813.672356,VS0,VE162'] + x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] + x-timer: ['S1507631778.846658,VS0,VE147'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml index 7f4c1f8..fc3216c 100644 --- a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml @@ -6,86 +6,86 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false},{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:40:18+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:28 GMT'] + date: ['Tue, 10 Oct 2017 10:36:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472829.731237,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631788.043665,VS0,VE136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/details + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:26+00:00","deployed":false}],"created_at":"2017-09-27T00:40:18+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY","version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4539'] + content-length: ['4489'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:29 GMT'] + date: ['Tue, 10 Oct 2017 10:36:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472829.354817,VS0,VE50'] + x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] + x-timer: ['S1507631788.302610,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/deactivate + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:26+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:29 GMT'] - fastly-ratelimit-remaining: ['797'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:29 GMT'] + fastly-ratelimit-remaining: ['779'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472830.613510,VS0,VE240'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631789.538504,VS0,VE532'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -94,15 +94,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:30 GMT'] - fastly-ratelimit-remaining: ['796'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:29 GMT'] + fastly-ratelimit-remaining: ['778'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472830.078324,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] + x-timer: ['S1507631789.197563,VS0,VE450'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml index 31b7b09..f9d5de9 100644 --- a/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:17 GMT'] + date: ['Tue, 10 Oct 2017 10:36:19 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472818.701263,VS0,VE48'] + x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] + x-timer: ['S1507631779.401390,VS0,VE145'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"0781f1258009ebb85bf872841931168ca3b9479b","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:40:18+00:00","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY"}'} + Ansible Module Test","publish_key":"32e676bd7a5bf4f73064d4fb41fb3a6299d49d40","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:36:20Z","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['532'] + content-length: ['512'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:18 GMT'] - fastly-ratelimit-remaining: ['806'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:20 GMT'] + fastly-ratelimit-remaining: ['788'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472818.942813,VS0,VE176'] + x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] + x-timer: ['S1507631780.669830,VS0,VE527'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/details + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false}],"created_at":"2017-09-27T00:40:18+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY","version":{"testing":false,"number":1,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:18+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:40:18+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":1,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:20Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:36:20Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1071'] + content-length: ['1041'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:18 GMT'] + date: ['Tue, 10 Oct 2017 10:36:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472818.465655,VS0,VE234'] + x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] + x-timer: ['S1507631780.296670,VS0,VE258'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version response: - body: {string: !!python/unicode '{"service_id":"3O937su2vn2VX6gmWWrzfY","number":2}'} + body: {string: !!python/unicode '{"service_id":"6eQmGWXRR0l97Hwz8pZlDi","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:20 GMT'] - fastly-ratelimit-remaining: ['805'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:21 GMT'] + fastly-ratelimit-remaining: ['787'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472820.185920,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-ams4425-AMS'] + x-timer: ['S1507631781.663103,VS0,VE487'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/domain + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3O937su2vn2VX6gmWWrzfY","version":2,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","updated_at":"2017-09-27T00:40:20+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":2,"deleted_at":null,"created_at":"2017-10-10T10:36:22Z","updated_at":"2017-10-10T10:36:22Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['179'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:21 GMT'] - fastly-ratelimit-remaining: ['804'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:22 GMT'] + fastly-ratelimit-remaining: ['786'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472821.808883,VS0,VE217'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631782.690537,VS0,VE539'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/backend + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"3O937su2vn2VX6gmWWrzfY","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:40:21+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:40:21+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:22Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:22Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:21 GMT'] - fastly-ratelimit-remaining: ['803'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:22 GMT'] + fastly-ratelimit-remaining: ['785'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472822.835979,VS0,VE88'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631782.341254,VS0,VE394'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,26 +161,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/header + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"3O937su2vn2VX6gmWWrzfY","version":"2","updated_at":"2017-09-27T00:40:22+00:00","deleted_at":null,"created_at":"2017-09-27T00:40:22+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":"2","updated_at":"2017-10-10T10:36:23Z","deleted_at":null,"created_at":"2017-10-10T10:36:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:22 GMT'] - fastly-ratelimit-remaining: ['802'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:23 GMT'] + fastly-ratelimit-remaining: ['784'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472822.223134,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] + x-timer: ['S1507631783.852259,VS0,VE427'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -186,26 +188,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/response_object + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3O937su2vn2VX6gmWWrzfY","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:40:22+00:00","updated_at":"2017-09-27T00:40:22+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:24Z","updated_at":"2017-10-10T10:36:24Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:22 GMT'] - fastly-ratelimit-remaining: ['801'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:24 GMT'] + fastly-ratelimit-remaining: ['783'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472823.643307,VS0,VE111'] + x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] + x-timer: ['S1507631784.817218,VS0,VE481'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "\n if (resp.status >= 500 && resp.status @@ -215,110 +217,110 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/snippet + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/snippet response: body: {string: !!python/unicode '{"content":"\n if (resp.status \u003e= 500 \u0026\u0026 resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","type":"deliver","dynamic":0,"name":"Deliver - stale content","priority":100,"service_id":"3O937su2vn2VX6gmWWrzfY","version":"2","deleted_at":null,"created_at":"2017-09-27T00:40:23+00:00","updated_at":"2017-09-27T00:40:23+00:00","id":"3TffTXAxkyJNklkqi6a7pm"}'} + stale content","priority":100,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":"2","deleted_at":null,"created_at":"2017-10-10T10:36:24Z","updated_at":"2017-10-10T10:36:24Z","id":"6jcJohqRcnMWCs1gEwh8ys"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['462'] + content-length: ['452'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:23 GMT'] - fastly-ratelimit-remaining: ['800'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:24 GMT'] + fastly-ratelimit-remaining: ['782'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472823.963679,VS0,VE68'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631784.393352,VS0,VE398'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/settings + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3O937su2vn2VX6gmWWrzfY"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6eQmGWXRR0l97Hwz8pZlDi"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:23 GMT'] - fastly-ratelimit-remaining: ['799'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:25 GMT'] + fastly-ratelimit-remaining: ['781'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472823.269956,VS0,VE214'] + x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] + x-timer: ['S1507631785.057819,VS0,VE508'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/version/2/activate + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:23+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:24Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:26 GMT'] - fastly-ratelimit-remaining: ['798'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:26 GMT'] + fastly-ratelimit-remaining: ['780'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472825.210793,VS0,VE847'] + x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] + x-timer: ['S1507631786.661520,VS0,VE1012'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/details + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:26+00:00","deployed":false}],"created_at":"2017-09-27T00:40:18+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY","version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4539'] + content-length: ['4489'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:26 GMT'] + date: ['Tue, 10 Oct 2017 10:36:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472826.311961,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] + x-timer: ['S1507631787.816118,VS0,VE159'] status: {code: 200, message: OK} - request: body: null @@ -327,84 +329,85 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false},{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:40:18+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['596'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:27 GMT'] + date: ['Tue, 10 Oct 2017 10:36:27 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472827.770157,VS0,VE474'] + x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] + x-timer: ['S1507631787.124190,VS0,VE134'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/details + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:26+00:00","deployed":false}],"created_at":"2017-09-27T00:40:18+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY","version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4539'] + content-length: ['4489'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:27 GMT'] + date: ['Tue, 10 Oct 2017 10:36:27 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472828.715499,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] + x-timer: ['S1507631787.422478,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3O937su2vn2VX6gmWWrzfY/details + uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:18+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"created_at":"2017-09-27T00:40:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:40:26+00:00","deployed":false}],"created_at":"2017-09-27T00:40:18+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:40:18+00:00","id":"3O937su2vn2VX6gmWWrzfY","version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3O937su2vn2VX6gmWWrzfY","staging":false,"updated_at":"2017-09-27T00:40:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:40:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"3TffTXAxkyJNklkqi6a7pm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4539'] + content-length: ['4489'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:40:28 GMT'] + date: ['Tue, 10 Oct 2017 10:36:27 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472828.340784,VS0,VE54'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631788.640191,VS0,VE117'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/tearDown b/tests/fixtures/cassettes/tearDown index 61c2414..792404f 100644 --- a/tests/fixtures/cassettes/tearDown +++ b/tests/fixtures/cassettes/tearDown @@ -6,76 +6,78 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:36:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:11+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:24+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:27+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:27+00:00","deployed":false},{"testing":false,"number":7,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-26T23:36:55+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-26T23:36:55+00:00","id":"4WiOxS802jeyWnU4479Lgm"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false},{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1833'] + content-length: ['1067'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:28 GMT'] + date: ['Tue, 10 Oct 2017 10:34:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472709.646266,VS0,VE177'] + x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] + x-timer: ['S1507631699.380081,VS0,VE144'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/details + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:36:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:11+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:24+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:27+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:27+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-27T00:38:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:27+00:00","deployed":false}],"created_at":"2017-09-26T23:36:55+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-26T23:36:55+00:00","id":"4WiOxS802jeyWnU4479Lgm","version":{"testing":false,"number":7,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"updated_at":"2017-09-27T00:38:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"updated_at":"2017-09-27T00:38:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4440'] + content-length: ['3644'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:29 GMT'] + date: ['Tue, 10 Oct 2017 10:34:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472710.559821,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631700.667797,VS0,VE106'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/version/7/deactivate + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-27T00:38:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:27+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:32 GMT'] - fastly-ratelimit-remaining: ['884'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:00 GMT'] + fastly-ratelimit-remaining: ['879'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472712.065045,VS0,VE250'] + x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] + x-timer: ['S1507631700.888287,VS0,VE198'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -84,15 +86,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:33 GMT'] - fastly-ratelimit-remaining: ['883'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:00 GMT'] + fastly-ratelimit-remaining: ['878'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472713.295082,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] + x-timer: ['S1507631700.428030,VS0,VE480'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert b/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert index 6777754..2b9f0f3 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert +++ b/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert @@ -6,201 +6,200 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:36:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:11+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:24+00:00","deployed":false},{"testing":false,"number":5,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:27+00:00","deployed":false}],"created_at":"2017-09-26T23:36:55+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-26T23:36:55+00:00","id":"4WiOxS802jeyWnU4479Lgm"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"number":3,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1591'] + content-length: ['835'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:21 GMT'] + date: ['Tue, 10 Oct 2017 10:34:55 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472701.778187,VS0,VE252'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631695.888370,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/details + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:36:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:11+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:24+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:24+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:27+00:00","deployed":false}],"created_at":"2017-09-26T23:36:55+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-26T23:36:55+00:00","id":"4WiOxS802jeyWnU4479Lgm","version":{"testing":false,"number":6,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"updated_at":"2017-09-26T23:37:27+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-26T23:37:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"updated_at":"2017-09-26T23:37:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-26T23:37:20+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:31:38Z","deployed":false}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":3,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:31:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:31:34Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:31:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:31:34Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4498'] + content-length: ['4612'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:21 GMT'] + date: ['Tue, 10 Oct 2017 10:34:55 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472701.374773,VS0,VE79'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631695.209711,VS0,VE391'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/version + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version response: - body: {string: !!python/unicode '{"service_id":"4WiOxS802jeyWnU4479Lgm","number":7}'} + body: {string: !!python/unicode '{"service_id":"2x7fBSkllFGFz9yN8w28KU","number":4}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:22 GMT'] - fastly-ratelimit-remaining: ['889'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:56 GMT'] + fastly-ratelimit-remaining: ['884'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472702.496349,VS0,VE177'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631696.725791,VS0,VE446'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/version/7/domain + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"4WiOxS802jeyWnU4479Lgm","version":7,"deleted_at":null,"created_at":"2017-09-27T00:38:25+00:00","updated_at":"2017-09-27T00:38:25+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"2x7fBSkllFGFz9yN8w28KU","version":4,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","updated_at":"2017-10-10T10:34:56Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['193'] + content-length: ['183'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:25 GMT'] - fastly-ratelimit-remaining: ['888'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:56 GMT'] + fastly-ratelimit-remaining: ['883'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472705.971291,VS0,VE351'] + x-served-by: ['app-slwdc9051-SL, cache-ams4148-AMS'] + x-timer: ['S1507631696.305518,VS0,VE489'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "my-backend.example.net", "healthcheck": null, "ssl_cert_hostname": null, "address": - "my-backend.example.net", "port": 443, "ssl_hostname": "my-backend.example.net", - "shield": null}' + "my-backend.example.net", "weight": 100, "healthcheck": null, "first_byte_timeout": + 15000, "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, + "address": "my-backend.example.net", "between_bytes_timeout": 10000, "max_conn": + 200, "port": 443, "ssl_hostname": "my-backend.example.net", "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/version/7/backend + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","healthcheck":null,"ssl_cert_hostname":null,"address":"my-backend.example.net","port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"4WiOxS802jeyWnU4479Lgm","version":7,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend.example.net","error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:38:26+00:00","connect_timeout":1000,"ipv4":null,"ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":true,"created_at":"2017-09-27T00:38:26+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend.example.net","between_bytes_timeout":10000,"max_conn":200,"port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"2x7fBSkllFGFz9yN8w28KU","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend.example.net","client_cert":null,"updated_at":"2017-10-10T10:34:56Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":true,"created_at":"2017-10-10T10:34:56Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['785'] + content-length: ['775'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:26 GMT'] - fastly-ratelimit-remaining: ['887'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:57 GMT'] + fastly-ratelimit-remaining: ['882'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472706.729406,VS0,VE361'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631697.911113,VS0,VE165'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/version/7/settings + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"4WiOxS802jeyWnU4479Lgm"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"2x7fBSkllFGFz9yN8w28KU"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:26 GMT'] - fastly-ratelimit-remaining: ['886'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:57 GMT'] + fastly-ratelimit-remaining: ['881'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472706.286182,VS0,VE310'] + x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] + x-timer: ['S1507631697.192693,VS0,VE181'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/version/7/activate + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-27T00:38:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:26+00:00","deployed":false,"msg":"Warning: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:57Z","deployed":false,"msg":"Warning: Backend host `\"my-backend.example.net\"` could not be resolved to an IP address: Name or service not known"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['365'] + content-length: ['355'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:27 GMT'] - fastly-ratelimit-remaining: ['885'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:34:58 GMT'] + fastly-ratelimit-remaining: ['880'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472707.845073,VS0,VE823'] + x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] + x-timer: ['S1507631697.487357,VS0,VE1387'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4WiOxS802jeyWnU4479Lgm/details + uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:36:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:36:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:11+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:24+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:27+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-26T23:37:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-26T23:37:27+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"created_at":"2017-09-27T00:38:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:27+00:00","deployed":false}],"created_at":"2017-09-26T23:36:55+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-26T23:36:55+00:00","id":"4WiOxS802jeyWnU4479Lgm","version":{"testing":false,"number":7,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"updated_at":"2017-09-27T00:38:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"4WiOxS802jeyWnU4479Lgm","staging":false,"updated_at":"2017-09-27T00:38:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4440'] + content-length: ['3644'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:28 GMT'] + date: ['Tue, 10 Oct 2017 10:34:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472708.962700,VS0,VE108'] + x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] + x-timer: ['S1507631699.994428,VS0,VE145'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_backend_port_not_required b/tests/fixtures/cassettes/test_fastly_backend_port_not_required index 9506b95..8f5443b 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_port_not_required +++ b/tests/fixtures/cassettes/test_fastly_backend_port_not_required @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:33 GMT'] + date: ['Tue, 10 Oct 2017 10:35:01 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472714.715007,VS0,VE70'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631701.134968,VS0,VE198'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -32,124 +32,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Jimdo - Fastly Ansible Module Test","publish_key":"67822a58bfdbd09205211420725430a2f5acfcdd","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:38:34+00:00","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + Fastly Ansible Module Test","publish_key":"78d309655e6c3f639e93e9206287432f98d68e8b","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:35:01Z","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['538'] + content-length: ['518'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:34 GMT'] - fastly-ratelimit-remaining: ['882'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:01 GMT'] + fastly-ratelimit-remaining: ['877'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472714.198722,VS0,VE66'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631701.448127,VS0,VE432'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":1,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:34+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:38:34+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":1,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:01Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:01Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1077'] + content-length: ['1047'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:35 GMT'] + date: ['Tue, 10 Oct 2017 10:35:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472715.002352,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-ams4441-AMS'] + x-timer: ['S1507631702.999988,VS0,VE480'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version response: - body: {string: !!python/unicode '{"service_id":"1VL6FQe0pCYV5MRYHTollU","number":2}'} + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:35 GMT'] - fastly-ratelimit-remaining: ['881'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:03 GMT'] + fastly-ratelimit-remaining: ['876'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472716.759571,VS0,VE176'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631703.596737,VS0,VE462'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/2/domain + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"1VL6FQe0pCYV5MRYHTollU","version":2,"deleted_at":null,"created_at":"2017-09-27T00:38:36+00:00","updated_at":"2017-09-27T00:38:36+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":2,"deleted_at":null,"created_at":"2017-10-10T10:35:03Z","updated_at":"2017-10-10T10:35:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['193'] + content-length: ['183'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:36 GMT'] - fastly-ratelimit-remaining: ['880'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:06 GMT'] + fastly-ratelimit-remaining: ['875'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472716.111088,VS0,VE232'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631703.247335,VS0,VE3579'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/2/backend + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:38:36+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:38:36+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:07Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:07Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:36 GMT'] - fastly-ratelimit-remaining: ['879'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:07 GMT'] + fastly-ratelimit-remaining: ['874'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472717.578285,VS0,VE91'] + x-served-by: ['app-slwdc9051-SL, cache-ams4133-AMS'] + x-timer: ['S1507631707.970481,VS0,VE491'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,26 +161,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/2/header + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":"2","updated_at":"2017-09-27T00:38:37+00:00","deleted_at":null,"created_at":"2017-09-27T00:38:37+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"2","updated_at":"2017-10-10T10:35:07Z","deleted_at":null,"created_at":"2017-10-10T10:35:07Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['412'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:37 GMT'] - fastly-ratelimit-remaining: ['878'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:08 GMT'] + fastly-ratelimit-remaining: ['873'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472717.928909,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] + x-timer: ['S1507631708.584062,VS0,VE487'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -186,87 +188,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/2/response_object + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"1VL6FQe0pCYV5MRYHTollU","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:38:37+00:00","updated_at":"2017-09-27T00:38:37+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:08Z","updated_at":"2017-10-10T10:35:08Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:37 GMT'] - fastly-ratelimit-remaining: ['877'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:08 GMT'] + fastly-ratelimit-remaining: ['872'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472717.311008,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631708.208283,VS0,VE161'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/2/settings + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:37 GMT'] - fastly-ratelimit-remaining: ['876'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:08 GMT'] + fastly-ratelimit-remaining: ['871'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472718.719734,VS0,VE203'] + x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] + x-timer: ['S1507631708.471192,VS0,VE435'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/2/activate + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:37+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:08Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:38 GMT'] - fastly-ratelimit-remaining: ['875'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:10 GMT'] + fastly-ratelimit-remaining: ['870'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472718.084672,VS0,VE757'] + x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] + x-timer: ['S1507631709.081330,VS0,VE1031'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:38+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:10Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -274,15 +276,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3923'] + content-length: ['3873'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:39 GMT'] + date: ['Tue, 10 Oct 2017 10:35:10 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472719.096374,VS0,VE89'] + x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] + x-timer: ['S1507631710.248587,VS0,VE225'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_backend_weight_even b/tests/fixtures/cassettes/test_fastly_backend_weight_even new file mode 100644 index 0000000..1ec546a --- /dev/null +++ b/tests/fixtures/cassettes/test_fastly_backend_weight_even @@ -0,0 +1,239 @@ +interactions: +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test + response: + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['602'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:11 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631711.847150,VS0,VE458'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + response: + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:10Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['3873'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:11 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631711.471447,VS0,VE112'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + response: + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":3}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['50'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:11 GMT'] + fastly-ratelimit-remaining: ['869'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631712.722541,VS0,VE148'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/domain + response: + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":3,"deleted_at":null,"created_at":"2017-10-10T10:35:12Z","updated_at":"2017-10-10T10:35:12Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['183'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:12 GMT'] + fastly-ratelimit-remaining: ['868'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] + x-timer: ['S1507631712.007058,VS0,VE530'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": + "my-backend1.example.net", "weight": 50, "healthcheck": null, "first_byte_timeout": + 15000, "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, + "address": "my-backend1.example.net", "between_bytes_timeout": 10000, "max_conn": + 200, "port": 80, "ssl_hostname": null, "shield": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/backend + response: + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend1.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend1.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","client_cert":null,"updated_at":"2017-10-10T10:35:13Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:13Z","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['757'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:13 GMT'] + fastly-ratelimit-remaining: ['867'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] + x-timer: ['S1507631713.678652,VS0,VE530'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": + "my-backend2.example.net", "weight": 50, "healthcheck": null, "first_byte_timeout": + 15000, "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, + "address": "my-backend2.example.net", "between_bytes_timeout": 10000, "max_conn": + 200, "port": 80, "ssl_hostname": null, "shield": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/backend + response: + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend2.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend2.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","client_cert":null,"updated_at":"2017-10-10T10:35:13Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:13Z","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['757'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:13 GMT'] + fastly-ratelimit-remaining: ['866'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631713.354614,VS0,VE507'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"general.default_ttl": 3600}' + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:14 GMT'] + fastly-ratelimit-remaining: ['865'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631714.038281,VS0,VE160'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/activate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:13Z","deployed":false,"msg":"Warning: + Backend host `\"my-backend1.example.net\"` could not be resolved to an IP + address: Name or service not known\nWarning: Backend host `\"my-backend2.example.net\"` + could not be resolved to an IP address: Name or service not known\nWarning: + Unused backend `F_my_backend2_example_net`"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['528'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:15 GMT'] + fastly-ratelimit-remaining: ['864'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] + x-timer: ['S1507631714.343348,VS0,VE1239'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + response: + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['4611'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:15 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] + x-timer: ['S1507631716.710819,VS0,VE193'] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_domain_comment_not_required b/tests/fixtures/cassettes/test_fastly_domain_comment_not_required index 063d58b..c5b2746 100644 --- a/tests/fixtures/cassettes/test_fastly_domain_comment_not_required +++ b/tests/fixtures/cassettes/test_fastly_domain_comment_not_required @@ -6,61 +6,242 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['622'] + content-length: ['834'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:39 GMT'] + date: ['Tue, 10 Oct 2017 10:35:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472719.467386,VS0,VE72'] + x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] + x-timer: ['S1507631716.326453,VS0,VE438'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:38+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3923'] + content-length: ['4611'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:16 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] + x-timer: ['S1507631717.862903,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + response: + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":4}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['50'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:17 GMT'] + fastly-ratelimit-remaining: ['863'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631717.119894,VS0,VE466'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/domain + response: + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":4,"deleted_at":null,"created_at":"2017-10-10T10:35:18Z","updated_at":"2017-10-10T10:35:18Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['183'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:18 GMT'] + fastly-ratelimit-remaining: ['862'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631718.708501,VS0,VE517'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/backend + response: + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:18Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:18Z","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['716'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:18 GMT'] + fastly-ratelimit-remaining: ['861'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] + x-timer: ['S1507631718.324331,VS0,VE449'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": + null, "name": "Set Location header", "src": "\"https://u.jimcdn.com\" req.url.path", + "dst": "http.Location", "substitution": "", "priority": "10", "cache_condition": + null, "action": "set", "type": "response", "response_condition": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/header + response: + body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"4","updated_at":"2017-10-10T10:35:19Z","deleted_at":null,"created_at":"2017-10-10T10:35:19Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['412'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:19 GMT'] + fastly-ratelimit-remaining: ['860'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4133-AMS'] + x-timer: ['S1507631719.899975,VS0,VE506'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set + 302 status code", "content": "", "content_type": "", "response": "Ok"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/response_object + response: + body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set + 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:20Z","updated_at":"2017-10-10T10:35:20Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['278'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:20 GMT'] + fastly-ratelimit-remaining: ['859'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631720.559581,VS0,VE562'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"general.default_ttl": 3600}' + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Tue, 10 Oct 2017 10:35:20 GMT'] + fastly-ratelimit-remaining: ['858'] + fastly-ratelimit-reset: ['1507633200'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631720.244048,VS0,VE509'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/activate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:20Z","deployed":false,"msg":null}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:39 GMT'] + date: ['Tue, 10 Oct 2017 10:35:22 GMT'] + fastly-ratelimit-remaining: ['857'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472720.717899,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4123-AMS'] + x-timer: ['S1507631721.861061,VS0,VE1181'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:38+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -68,15 +249,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3923'] + content-length: ['4337'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:40 GMT'] + date: ['Tue, 10 Oct 2017 10:35:22 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472720.973991,VS0,VE46'] + x-served-by: ['app-slwdc9051-SL, cache-ams4425-AMS'] + x-timer: ['S1507631723.536041,VS0,VE154'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_header_action_not_required b/tests/fixtures/cassettes/test_fastly_header_action_not_required index 7ffc415..4ff2496 100644 --- a/tests/fixtures/cassettes/test_fastly_header_action_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_action_not_required @@ -6,125 +6,129 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['622'] + content-length: ['1066'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:40 GMT'] + date: ['Tue, 10 Oct 2017 10:35:23 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472720.291725,VS0,VE173'] + x-served-by: ['app-slwdc9051-SL, cache-ams4148-AMS'] + x-timer: ['S1507631723.358637,VS0,VE134'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:38+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:35+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3923'] + content-length: ['4337'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:40 GMT'] + date: ['Tue, 10 Oct 2017 10:35:23 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472721.656491,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] + x-timer: ['S1507631724.614181,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version response: - body: {string: !!python/unicode '{"service_id":"1VL6FQe0pCYV5MRYHTollU","number":3}'} + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":5}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:41 GMT'] - fastly-ratelimit-remaining: ['874'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:24 GMT'] + fastly-ratelimit-remaining: ['856'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472721.914947,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] + x-timer: ['S1507631724.848658,VS0,VE422'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/3/domain + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"1VL6FQe0pCYV5MRYHTollU","version":3,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","updated_at":"2017-09-27T00:38:41+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":5,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","updated_at":"2017-10-10T10:35:24Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['193'] + content-length: ['183'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:41 GMT'] - fastly-ratelimit-remaining: ['873'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:24 GMT'] + fastly-ratelimit-remaining: ['855'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472722.539970,VS0,VE219'] + x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] + x-timer: ['S1507631724.388231,VS0,VE522'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/3/backend + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:38:42+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:38:42+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":5,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:25Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:25Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:42 GMT'] - fastly-ratelimit-remaining: ['872'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:25 GMT'] + fastly-ratelimit-remaining: ['854'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472722.225798,VS0,VE104'] + x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] + x-timer: ['S1507631725.034142,VS0,VE464'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -134,26 +138,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/3/header + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":"3","updated_at":"2017-09-27T00:38:42+00:00","deleted_at":null,"created_at":"2017-09-27T00:38:42+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"5","updated_at":"2017-10-10T10:35:25Z","deleted_at":null,"created_at":"2017-10-10T10:35:25Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:42 GMT'] - fastly-ratelimit-remaining: ['871'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:26 GMT'] + fastly-ratelimit-remaining: ['853'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472723.745079,VS0,VE187'] + x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] + x-timer: ['S1507631726.602155,VS0,VE443'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -161,103 +165,102 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/3/response_object + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"1VL6FQe0pCYV5MRYHTollU","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:38:43+00:00","updated_at":"2017-09-27T00:38:43+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"5","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:26Z","updated_at":"2017-10-10T10:35:26Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:43 GMT'] - fastly-ratelimit-remaining: ['870'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:26 GMT'] + fastly-ratelimit-remaining: ['852'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472724.533067,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631726.141682,VS0,VE446'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/3/settings + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:48 GMT'] - fastly-ratelimit-remaining: ['869'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:27 GMT'] + fastly-ratelimit-remaining: ['851'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472729.514421,VS0,VE176'] + x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] + x-timer: ['S1507631727.699314,VS0,VE448'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/3/activate + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:43+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:26Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:50 GMT'] - fastly-ratelimit-remaining: ['868'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:28 GMT'] + fastly-ratelimit-remaining: ['850'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472729.468686,VS0,VE731'] + x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] + x-timer: ['S1507631727.244601,VS0,VE986'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4167'] + content-length: ['4571'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:52 GMT'] + date: ['Tue, 10 Oct 2017 10:35:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472733.609573,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631728.361799,VS0,VE465'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_header_ignore_if_set_not_required b/tests/fixtures/cassettes/test_fastly_header_ignore_if_set_not_required index 98bde1b..88dc0a0 100644 --- a/tests/fixtures/cassettes/test_fastly_header_ignore_if_set_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_ignore_if_set_not_required @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['864'] + content-length: ['1298'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:53 GMT'] + date: ['Tue, 10 Oct 2017 10:35:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472733.457356,VS0,VE175'] + x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] + x-timer: ['S1507631729.987285,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,27 +40,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4167'] + content-length: ['4571'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:54 GMT'] + date: ['Tue, 10 Oct 2017 10:35:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472734.083955,VS0,VE45'] + x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] + x-timer: ['S1507631729.232353,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -68,15 +68,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4167'] + content-length: ['4571'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:54 GMT'] + date: ['Tue, 10 Oct 2017 10:35:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472735.633463,VS0,VE87'] + x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] + x-timer: ['S1507631729.441718,VS0,VE115'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_header_priority_not_required b/tests/fixtures/cassettes/test_fastly_header_priority_not_required index e4b9434..12c0bb1 100644 --- a/tests/fixtures/cassettes/test_fastly_header_priority_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_priority_not_required @@ -6,32 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['864'] + content-length: ['1298'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:55 GMT'] + date: ['Tue, 10 Oct 2017 10:35:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472735.267265,VS0,VE76'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631730.695199,VS0,VE450'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -39,27 +39,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4167'] + content-length: ['4571'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:55 GMT'] + date: ['Tue, 10 Oct 2017 10:35:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472736.842451,VS0,VE48'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631730.221864,VS0,VE124'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -67,15 +67,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4167'] + content-length: ['4571'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:56 GMT'] + date: ['Tue, 10 Oct 2017 10:35:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472736.473131,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] + x-timer: ['S1507631730.442569,VS0,VE115'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_service_does_exist b/tests/fixtures/cassettes/test_service_does_exist index f042ed9..fe317f5 100644 --- a/tests/fixtures/cassettes/test_service_does_exist +++ b/tests/fixtures/cassettes/test_service_does_exist @@ -6,126 +6,128 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['864'] + content-length: ['1298'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:57 GMT'] + date: ['Tue, 10 Oct 2017 10:35:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472738.866656,VS0,VE71'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631731.707621,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:38:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:41+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4167'] + content-length: ['4571'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:58 GMT'] + date: ['Tue, 10 Oct 2017 10:35:31 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472739.616144,VS0,VE152'] + x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] + x-timer: ['S1507631731.925514,VS0,VE408'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version response: - body: {string: !!python/unicode '{"service_id":"1VL6FQe0pCYV5MRYHTollU","number":4}'} + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":6}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:38:59 GMT'] - fastly-ratelimit-remaining: ['867'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:31 GMT'] + fastly-ratelimit-remaining: ['849'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472739.428670,VS0,VE116'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631731.420475,VS0,VE486'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/4/domain + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"1VL6FQe0pCYV5MRYHTollU","version":4,"deleted_at":null,"created_at":"2017-09-27T00:39:00+00:00","updated_at":"2017-09-27T00:39:00+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":6,"deleted_at":null,"created_at":"2017-10-10T10:35:32Z","updated_at":"2017-10-10T10:35:32Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['188'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:00 GMT'] - fastly-ratelimit-remaining: ['866'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:32 GMT'] + fastly-ratelimit-remaining: ['848'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472740.349576,VS0,VE227'] + x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] + x-timer: ['S1507631732.995401,VS0,VE495'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/4/backend + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:39:02+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:39:02+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":6,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:32Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:32Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:02 GMT'] - fastly-ratelimit-remaining: ['865'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:33 GMT'] + fastly-ratelimit-remaining: ['847'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472742.989694,VS0,VE202'] + x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] + x-timer: ['S1507631733.585987,VS0,VE427'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -135,26 +137,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/4/header + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":"4","updated_at":"2017-09-27T00:39:04+00:00","deleted_at":null,"created_at":"2017-09-27T00:39:04+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"6","updated_at":"2017-10-10T10:35:33Z","deleted_at":null,"created_at":"2017-10-10T10:35:33Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['412'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:04 GMT'] - fastly-ratelimit-remaining: ['864'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:33 GMT'] + fastly-ratelimit-remaining: ['846'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472744.240217,VS0,VE201'] + x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] + x-timer: ['S1507631733.157780,VS0,VE449'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -162,103 +164,104 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/4/response_object + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"1VL6FQe0pCYV5MRYHTollU","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:39:05+00:00","updated_at":"2017-09-27T00:39:05+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"6","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:34Z","updated_at":"2017-10-10T10:35:34Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:05 GMT'] - fastly-ratelimit-remaining: ['863'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:34 GMT'] + fastly-ratelimit-remaining: ['845'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472745.436699,VS0,VE89'] + x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] + x-timer: ['S1507631734.701300,VS0,VE454'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/4/settings + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:05 GMT'] - fastly-ratelimit-remaining: ['862'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:34 GMT'] + fastly-ratelimit-remaining: ['844'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472746.713022,VS0,VE211'] + x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] + x-timer: ['S1507631734.248092,VS0,VE462'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/4/activate + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:05+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:34Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:07 GMT'] - fastly-ratelimit-remaining: ['861'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:36 GMT'] + fastly-ratelimit-remaining: ['843'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472747.532269,VS0,VE732'] + x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] + x-timer: ['S1507631735.808321,VS0,VE1355'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":4,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4417'] + content-length: ['4811'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:08 GMT'] + date: ['Tue, 10 Oct 2017 10:35:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472748.419499,VS0,VE193'] + x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] + x-timer: ['S1507631736.239507,VS0,VE186'] status: {code: 200, message: OK} - request: body: null @@ -267,126 +270,129 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"number":4,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1106'] + content-length: ['1530'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:09 GMT'] + date: ['Tue, 10 Oct 2017 10:35:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472749.152193,VS0,VE73'] + x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] + x-timer: ['S1507631737.529767,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":4,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:38:59+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4417'] + content-length: ['4811'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:09 GMT'] + date: ['Tue, 10 Oct 2017 10:35:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472750.851459,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] + x-timer: ['S1507631737.745627,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version response: - body: {string: !!python/unicode '{"service_id":"1VL6FQe0pCYV5MRYHTollU","number":5}'} + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":7}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:10 GMT'] - fastly-ratelimit-remaining: ['860'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:37 GMT'] + fastly-ratelimit-remaining: ['842'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472750.273032,VS0,VE177'] + x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] + x-timer: ['S1507631737.957563,VS0,VE445'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/5/domain + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"1VL6FQe0pCYV5MRYHTollU","version":5,"deleted_at":null,"created_at":"2017-09-27T00:39:11+00:00","updated_at":"2017-09-27T00:39:11+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":7,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","updated_at":"2017-10-10T10:35:37Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['188'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:11 GMT'] - fastly-ratelimit-remaining: ['859'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:37 GMT'] + fastly-ratelimit-remaining: ['841'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472751.313678,VS0,VE228'] + x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] + x-timer: ['S1507631738.503128,VS0,VE491'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/5/backend + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":5,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:39:12+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:39:12+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":7,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:38Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:38Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:12 GMT'] - fastly-ratelimit-remaining: ['858'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:38 GMT'] + fastly-ratelimit-remaining: ['840'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472752.977799,VS0,VE198'] + x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] + x-timer: ['S1507631738.086316,VS0,VE465'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -396,26 +402,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/5/header + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":"5","updated_at":"2017-09-27T00:39:12+00:00","deleted_at":null,"created_at":"2017-09-27T00:39:12+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"7","updated_at":"2017-10-10T10:35:39Z","deleted_at":null,"created_at":"2017-10-10T10:35:39Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['412'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:12 GMT'] - fastly-ratelimit-remaining: ['857'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:39 GMT'] + fastly-ratelimit-remaining: ['839'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472753.704927,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631739.642104,VS0,VE497'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -423,102 +429,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/5/response_object + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","content":"","content_type":"","response":"Ok","service_id":"1VL6FQe0pCYV5MRYHTollU","version":"5","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:39:13+00:00","updated_at":"2017-09-27T00:39:13+00:00"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"7","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:39Z","updated_at":"2017-10-10T10:35:39Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:13 GMT'] - fastly-ratelimit-remaining: ['856'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:39 GMT'] + fastly-ratelimit-remaining: ['838'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472753.303144,VS0,VE187'] + x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] + x-timer: ['S1507631739.254493,VS0,VE485'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/5/settings + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:14 GMT'] - fastly-ratelimit-remaining: ['855'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:40 GMT'] + fastly-ratelimit-remaining: ['837'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472754.214618,VS0,VE181'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631740.841337,VS0,VE174'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/5/activate + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:13+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:39Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:15 GMT'] - fastly-ratelimit-remaining: ['854'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:41 GMT'] + fastly-ratelimit-remaining: ['836'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472755.615250,VS0,VE776'] + x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] + x-timer: ['S1507631740.135988,VS0,VE1086'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4659'] + content-length: ['5043'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:15 GMT'] + date: ['Tue, 10 Oct 2017 10:35:41 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472756.714930,VS0,VE253'] + x-served-by: ['app-slwdc9051-SL, cache-ams4429-AMS'] + x-timer: ['S1507631741.325283,VS0,VE159'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_service_does_exist_and_activate_new_version_is_disabled b/tests/fixtures/cassettes/test_service_does_exist_and_activate_new_version_is_disabled index 9e9914b..2188990 100644 --- a/tests/fixtures/cassettes/test_service_does_exist_and_activate_new_version_is_disabled +++ b/tests/fixtures/cassettes/test_service_does_exist_and_activate_new_version_is_disabled @@ -6,125 +6,128 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1348'] + content-length: ['1762'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:17 GMT'] + date: ['Tue, 10 Oct 2017 10:35:42 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472758.824842,VS0,VE69'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631742.097608,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4659'] + content-length: ['5043'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:18 GMT'] + date: ['Tue, 10 Oct 2017 10:35:42 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472758.106402,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] + x-timer: ['S1507631742.325599,VS0,VE106'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version response: - body: {string: !!python/unicode '{"service_id":"1VL6FQe0pCYV5MRYHTollU","number":6}'} + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":8}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:18 GMT'] - fastly-ratelimit-remaining: ['853'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:42 GMT'] + fastly-ratelimit-remaining: ['835'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472758.455085,VS0,VE212'] + x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] + x-timer: ['S1507631743.519767,VS0,VE444'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/6/domain + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"1VL6FQe0pCYV5MRYHTollU","version":6,"deleted_at":null,"created_at":"2017-09-27T00:39:19+00:00","updated_at":"2017-09-27T00:39:19+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":8,"deleted_at":null,"created_at":"2017-10-10T10:35:43Z","updated_at":"2017-10-10T10:35:43Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['188'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:19 GMT'] - fastly-ratelimit-remaining: ['852'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:43 GMT'] + fastly-ratelimit-remaining: ['834'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472759.857084,VS0,VE277'] + x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] + x-timer: ['S1507631743.071026,VS0,VE494'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/6/backend + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":6,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:39:19+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:39:19+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":8,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:44Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:44Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:19 GMT'] - fastly-ratelimit-remaining: ['851'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:44 GMT'] + fastly-ratelimit-remaining: ['833'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472759.460690,VS0,VE194'] + x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] + x-timer: ['S1507631744.685932,VS0,VE487'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -134,26 +137,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/6/header + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":"6","updated_at":"2017-09-27T00:39:19+00:00","deleted_at":null,"created_at":"2017-09-27T00:39:19+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"8","updated_at":"2017-10-10T10:35:44Z","deleted_at":null,"created_at":"2017-10-10T10:35:44Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['412'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:20 GMT'] - fastly-ratelimit-remaining: ['850'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:44 GMT'] + fastly-ratelimit-remaining: ['832'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472760.855150,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] + x-timer: ['S1507631744.262179,VS0,VE447'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -161,78 +164,79 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/6/response_object + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"1VL6FQe0pCYV5MRYHTollU","version":"6","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:39:20+00:00","updated_at":"2017-09-27T00:39:20+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"8","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:45Z","updated_at":"2017-10-10T10:35:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:20 GMT'] - fastly-ratelimit-remaining: ['849'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:45 GMT'] + fastly-ratelimit-remaining: ['831'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472760.312694,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631745.786065,VS0,VE446'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/6/settings + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:20 GMT'] - fastly-ratelimit-remaining: ['848'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:45 GMT'] + fastly-ratelimit-remaining: ['830'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472761.717251,VS0,VE107'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631745.315966,VS0,VE472'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":6,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:20+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:39:18+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":8,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:45Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4904'] + content-length: ['5278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:21 GMT'] + date: ['Tue, 10 Oct 2017 10:35:46 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472761.039977,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-ams4426-AMS'] + x-timer: ['S1507631746.889247,VS0,VE179'] status: {code: 200, message: OK} - request: body: null @@ -241,126 +245,129 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1591'] + content-length: ['1995'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:21 GMT'] + date: ['Tue, 10 Oct 2017 10:35:46 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472761.356774,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] + x-timer: ['S1507631746.142462,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":6,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:20+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:39:18+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":8,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:45Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4904'] + content-length: ['5278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:21 GMT'] + date: ['Tue, 10 Oct 2017 10:35:46 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472762.701153,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] + x-timer: ['S1507631746.377344,VS0,VE152'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version response: - body: {string: !!python/unicode '{"service_id":"1VL6FQe0pCYV5MRYHTollU","number":7}'} + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":9}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:22 GMT'] - fastly-ratelimit-remaining: ['847'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:47 GMT'] + fastly-ratelimit-remaining: ['829'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472763.571735,VS0,VE187'] + x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] + x-timer: ['S1507631747.610666,VS0,VE473'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/7/domain + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"1VL6FQe0pCYV5MRYHTollU","version":7,"deleted_at":null,"created_at":"2017-09-27T00:39:23+00:00","updated_at":"2017-09-27T00:39:23+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":9,"deleted_at":null,"created_at":"2017-10-10T10:35:47Z","updated_at":"2017-10-10T10:35:47Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['188'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:23 GMT'] - fastly-ratelimit-remaining: ['846'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:47 GMT'] + fastly-ratelimit-remaining: ['828'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472763.182556,VS0,VE231'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631747.179266,VS0,VE231'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/7/backend + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":7,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:39:23+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:39:23+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":9,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:47Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:47Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:23 GMT'] - fastly-ratelimit-remaining: ['845'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:47 GMT'] + fastly-ratelimit-remaining: ['827'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472764.586002,VS0,VE238'] + x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] + x-timer: ['S1507631747.486408,VS0,VE154'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -370,26 +377,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/7/header + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":"7","updated_at":"2017-09-27T00:39:24+00:00","deleted_at":null,"created_at":"2017-09-27T00:39:24+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"9","updated_at":"2017-10-10T10:35:48Z","deleted_at":null,"created_at":"2017-10-10T10:35:48Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['412'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:24 GMT'] - fastly-ratelimit-remaining: ['844'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:48 GMT'] + fastly-ratelimit-remaining: ['826'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472764.022264,VS0,VE193'] + x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] + x-timer: ['S1507631748.726748,VS0,VE448'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -397,77 +404,77 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/7/response_object + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","content":"","content_type":"","response":"Ok","service_id":"1VL6FQe0pCYV5MRYHTollU","version":"7","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:39:24+00:00","updated_at":"2017-09-27T00:39:24+00:00"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"9","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:48Z","updated_at":"2017-10-10T10:35:48Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:24 GMT'] - fastly-ratelimit-remaining: ['843'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:48 GMT'] + fastly-ratelimit-remaining: ['825'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472764.413117,VS0,VE96'] + x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] + x-timer: ['S1507631748.269210,VS0,VE455'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/7/settings + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:24 GMT'] - fastly-ratelimit-remaining: ['842'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:48 GMT'] + fastly-ratelimit-remaining: ['824'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472765.729581,VS0,VE199'] + x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] + x-timer: ['S1507631749.815864,VS0,VE171'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":7,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:24+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:39:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":9,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:48Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:47Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5147'] + content-length: ['5511'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:25 GMT'] + date: ['Tue, 10 Oct 2017 10:35:49 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472765.119341,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] + x-timer: ['S1507631749.064164,VS0,VE172'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal b/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal index 44999eb..2fa25a8 100644 --- a/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal +++ b/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal @@ -6,125 +6,128 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1834'] + content-length: ['2228'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:25 GMT'] + date: ['Tue, 10 Oct 2017 10:35:49 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472766.665544,VS0,VE104'] + x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] + x-timer: ['S1507631749.368263,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":7,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:24+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:39:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":9,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:48Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:47Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:15+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:10+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5147'] + content-length: ['5511'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:26 GMT'] + date: ['Tue, 10 Oct 2017 10:35:50 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472766.986230,VS0,VE497'] + x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] + x-timer: ['S1507631750.609536,VS0,VE451'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version response: - body: {string: !!python/unicode '{"service_id":"1VL6FQe0pCYV5MRYHTollU","number":8}'} + body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":10}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['51'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:27 GMT'] - fastly-ratelimit-remaining: ['841'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:50 GMT'] + fastly-ratelimit-remaining: ['823'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472767.781429,VS0,VE258'] + x-served-by: ['app-slwdc9051-SL, cache-ams4429-AMS'] + x-timer: ['S1507631750.153634,VS0,VE405'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/8/domain + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"1VL6FQe0pCYV5MRYHTollU","version":8,"deleted_at":null,"created_at":"2017-09-27T00:39:27+00:00","updated_at":"2017-09-27T00:39:27+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":10,"deleted_at":null,"created_at":"2017-10-10T10:35:51Z","updated_at":"2017-10-10T10:35:51Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['189'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:27 GMT'] - fastly-ratelimit-remaining: ['840'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:51 GMT'] + fastly-ratelimit-remaining: ['822'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472768.551089,VS0,VE251'] + x-served-by: ['app-slwdc9051-SL, cache-ams4125-AMS'] + x-timer: ['S1507631751.639506,VS0,VE484'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/8/backend + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":8,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:39:32+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:39:32+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":10,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:51Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:51Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['717'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:32 GMT'] - fastly-ratelimit-remaining: ['839'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:51 GMT'] + fastly-ratelimit-remaining: ['821'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472772.353618,VS0,VE105'] + x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] + x-timer: ['S1507631751.210325,VS0,VE450'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -134,26 +137,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/8/header + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1VL6FQe0pCYV5MRYHTollU","version":"8","updated_at":"2017-09-27T00:39:33+00:00","deleted_at":null,"created_at":"2017-09-27T00:39:33+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"10","updated_at":"2017-10-10T10:35:52Z","deleted_at":null,"created_at":"2017-10-10T10:35:52Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['413'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:33 GMT'] - fastly-ratelimit-remaining: ['838'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:52 GMT'] + fastly-ratelimit-remaining: ['820'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472773.230101,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4447-AMS'] + x-timer: ['S1507631752.164170,VS0,VE410'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -161,104 +164,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/8/response_object + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"1VL6FQe0pCYV5MRYHTollU","version":"8","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:39:33+00:00","updated_at":"2017-09-27T00:39:33+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"10","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:53Z","updated_at":"2017-10-10T10:35:53Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['279'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:33 GMT'] - fastly-ratelimit-remaining: ['837'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:53 GMT'] + fastly-ratelimit-remaining: ['819'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472774.602930,VS0,VE183'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631753.705645,VS0,VE472'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/8/settings + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":10,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['129'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:34 GMT'] - fastly-ratelimit-remaining: ['836'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:53 GMT'] + fastly-ratelimit-remaining: ['818'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472774.009834,VS0,VE202'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631753.266181,VS0,VE469'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/8/activate + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:33+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:53Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['242'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:35 GMT'] - fastly-ratelimit-remaining: ['835'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:54 GMT'] + fastly-ratelimit-remaining: ['817'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472775.617635,VS0,VE624'] + x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] + x-timer: ['S1507631754.823537,VS0,VE980'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:35 GMT'] + date: ['Tue, 10 Oct 2017 10:35:55 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472776.511989,VS0,VE97'] + x-served-by: ['app-slwdc9051-SL, cache-ams4425-AMS'] + x-timer: ['S1507631755.884945,VS0,VE497'] status: {code: 200, message: OK} - request: body: null @@ -267,33 +269,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2076'] + content-length: ['2461'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:35 GMT'] + date: ['Tue, 10 Oct 2017 10:35:55 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472776.848581,VS0,VE74'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631755.457091,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -301,42 +303,43 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:36 GMT'] + date: ['Tue, 10 Oct 2017 10:35:55 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472776.101973,VS0,VE59'] + x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] + x-timer: ['S1507631756.678175,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:36 GMT'] + date: ['Tue, 10 Oct 2017 10:35:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472776.479310,VS0,VE51'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631756.887906,VS0,VE115'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal_and_activate_new_version_is_disabled b/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal_and_activate_new_version_is_disabled index d608daa..02a5355 100644 --- a/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal_and_activate_new_version_is_disabled +++ b/tests/fixtures/cassettes/test_service_does_exist_and_configuration_is_equal_and_activate_new_version_is_disabled @@ -6,75 +6,77 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2076'] + content-length: ['2461'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:38 GMT'] + date: ['Tue, 10 Oct 2017 10:35:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472779.757129,VS0,VE74'] + x-served-by: ['app-slwdc9051-SL, cache-ams4130-AMS'] + x-timer: ['S1507631756.159355,VS0,VE144'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:39 GMT'] + date: ['Tue, 10 Oct 2017 10:35:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472779.413476,VS0,VE49'] + x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] + x-timer: ['S1507631756.494300,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:39 GMT'] + date: ['Tue, 10 Oct 2017 10:35:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472780.662568,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] + x-timer: ['S1507631757.691612,VS0,VE112'] status: {code: 200, message: OK} - request: body: null @@ -83,75 +85,76 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2076'] + content-length: ['2461'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:40 GMT'] + date: ['Tue, 10 Oct 2017 10:35:57 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472780.419205,VS0,VE72'] + x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] + x-timer: ['S1507631757.880233,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:41 GMT'] + date: ['Tue, 10 Oct 2017 10:35:57 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8324-YYZ'] - x-timer: ['S1506472781.911654,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] + x-timer: ['S1507631757.096125,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:41 GMT'] + date: ['Tue, 10 Oct 2017 10:35:57 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8331-YYZ'] - x-timer: ['S1506472781.315700,VS0,VE45'] + x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] + x-timer: ['S1507631757.294958,VS0,VE110'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_service_does_not_exist b/tests/fixtures/cassettes/test_service_does_not_exist index 0861e43..2852b77 100644 --- a/tests/fixtures/cassettes/test_service_does_not_exist +++ b/tests/fixtures/cassettes/test_service_does_not_exist @@ -6,80 +6,81 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2076'] + content-length: ['2461'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:42 GMT'] + date: ['Tue, 10 Oct 2017 10:35:57 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472782.014677,VS0,VE170'] + x-served-by: ['app-slwdc9051-SL, cache-ams4441-AMS'] + x-timer: ['S1507631758.555389,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/details + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:38:50+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:07+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:38:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:15+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:20+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:24+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}],"created_at":"2017-09-27T00:38:34+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:38:34+00:00","id":"1VL6FQe0pCYV5MRYHTollU","version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":8,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"updated_at":"2017-09-27T00:39:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:26+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5387'] + content-length: ['5744'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:43 GMT'] + date: ['Tue, 10 Oct 2017 10:35:58 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8332-YYZ'] - x-timer: ['S1506472783.440203,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] + x-timer: ['S1507631758.777435,VS0,VE485'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU/version/8/deactivate + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":8,"active":false,"service_id":"1VL6FQe0pCYV5MRYHTollU","staging":false,"created_at":"2017-09-27T00:39:26+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:35+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['232'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:45 GMT'] - fastly-ratelimit-remaining: ['834'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:58 GMT'] + fastly-ratelimit-remaining: ['816'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472785.855544,VS0,VE274'] + x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] + x-timer: ['S1507631758.349409,VS0,VE542'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/1VL6FQe0pCYV5MRYHTollU + uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -88,16 +89,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:45 GMT'] - fastly-ratelimit-remaining: ['833'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:59 GMT'] + fastly-ratelimit-remaining: ['815'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472785.420342,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] + x-timer: ['S1507631759.977096,VS0,VE424'] status: {code: 200, message: OK} - request: body: null @@ -110,18 +111,19 @@ interactions: service ''1z3ENiEMpKOrsGqTBLhkF2''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:45 GMT'] + date: ['Tue, 10 Oct 2017 10:35:59 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472786.798589,VS0,VE53'] + x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] + x-timer: ['S1507631760.501276,VS0,VE186'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -131,124 +133,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Jimdo - Fastly Ansible Module Test","publish_key":"a7f8a2100b4544b10fb13e0042b51cbafc675684","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:46+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:39:46+00:00","comment":"","updated_at":"2017-09-27T00:39:46+00:00","id":"2oIUnhtC0pOCfxJbZ4gZMi"}'} + Fastly Ansible Module Test","publish_key":"a96943e455233af6a0fb064d089f897de1deacda","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:35:59Z","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['538'] + content-length: ['518'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:46 GMT'] - fastly-ratelimit-remaining: ['832'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:35:59 GMT'] + fastly-ratelimit-remaining: ['814'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472786.070256,VS0,VE176'] + x-served-by: ['app-slwdc9051-SL, cache-ams4444-AMS'] + x-timer: ['S1507631760.819928,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/details + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:46+00:00","deployed":false}],"created_at":"2017-09-27T00:39:46+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:46+00:00","id":"2oIUnhtC0pOCfxJbZ4gZMi","version":{"testing":false,"number":1,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"updated_at":"2017-09-27T00:39:46+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:39:46+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo","version":{"testing":false,"number":1,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:35:59Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:59Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1077'] + content-length: ['1047'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:46 GMT'] + date: ['Tue, 10 Oct 2017 10:36:00 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472786.438822,VS0,VE198'] + x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] + x-timer: ['S1507631760.061774,VS0,VE467'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version response: - body: {string: !!python/unicode '{"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","number":2}'} + body: {string: !!python/unicode '{"service_id":"6Hg9tcdvWWA00d26tuuhHo","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:46 GMT'] - fastly-ratelimit-remaining: ['831'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:01 GMT'] + fastly-ratelimit-remaining: ['813'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472787.814233,VS0,VE182'] + x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] + x-timer: ['S1507631761.615880,VS0,VE443'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version/2/domain + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2oIUnhtC0pOCfxJbZ4gZMi","version":2,"deleted_at":null,"created_at":"2017-09-27T00:39:47+00:00","updated_at":"2017-09-27T00:39:47+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"6Hg9tcdvWWA00d26tuuhHo","version":2,"deleted_at":null,"created_at":"2017-10-10T10:36:01Z","updated_at":"2017-10-10T10:36:01Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['188'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:47 GMT'] - fastly-ratelimit-remaining: ['830'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:01 GMT'] + fastly-ratelimit-remaining: ['812'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472787.239571,VS0,VE220'] + x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] + x-timer: ['S1507631761.142874,VS0,VE508'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version/2/backend + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:39:48+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:39:48+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6Hg9tcdvWWA00d26tuuhHo","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:02Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:02Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:48 GMT'] - fastly-ratelimit-remaining: ['829'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:02 GMT'] + fastly-ratelimit-remaining: ['811'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472788.111870,VS0,VE199'] + x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] + x-timer: ['S1507631762.749948,VS0,VE502'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -258,26 +262,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version/2/header + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","version":"2","updated_at":"2017-09-27T00:39:48+00:00","deleted_at":null,"created_at":"2017-09-27T00:39:48+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"6Hg9tcdvWWA00d26tuuhHo","version":"2","updated_at":"2017-10-10T10:36:02Z","deleted_at":null,"created_at":"2017-10-10T10:36:02Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['412'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:48 GMT'] - fastly-ratelimit-remaining: ['828'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:02 GMT'] + fastly-ratelimit-remaining: ['810'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472789.594642,VS0,VE211'] + x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] + x-timer: ['S1507631762.359632,VS0,VE502'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -285,87 +289,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version/2/response_object + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"2oIUnhtC0pOCfxJbZ4gZMi","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:39:49+00:00","updated_at":"2017-09-27T00:39:49+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"6Hg9tcdvWWA00d26tuuhHo","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:03Z","updated_at":"2017-10-10T10:36:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:49 GMT'] - fastly-ratelimit-remaining: ['827'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:03 GMT'] + fastly-ratelimit-remaining: ['809'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472789.293482,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-ams4125-AMS'] + x-timer: ['S1507631763.966126,VS0,VE474'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version/2/settings + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6Hg9tcdvWWA00d26tuuhHo"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:49 GMT'] - fastly-ratelimit-remaining: ['826'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:04 GMT'] + fastly-ratelimit-remaining: ['808'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472790.714607,VS0,VE66'] + x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] + x-timer: ['S1507631764.536449,VS0,VE476'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version/2/activate + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:49+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:03Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['241'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:50 GMT'] - fastly-ratelimit-remaining: ['825'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:04 GMT'] + fastly-ratelimit-remaining: ['807'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472790.027093,VS0,VE878'] + x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] + x-timer: ['S1507631764.106353,VS0,VE770'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/details + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:46+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:50+00:00","deployed":false}],"created_at":"2017-09-27T00:39:46+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:46+00:00","id":"2oIUnhtC0pOCfxJbZ4gZMi","version":{"testing":false,"number":2,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"updated_at":"2017-09-27T00:39:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:46+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:04Z","deployed":false}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo","version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"updated_at":"2017-09-27T00:39:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:46+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -373,15 +377,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3933'] + content-length: ['3883'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:51 GMT'] + date: ['Tue, 10 Oct 2017 10:36:05 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472791.133478,VS0,VE84'] + x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] + x-timer: ['S1507631765.996931,VS0,VE140'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_service_does_not_exist_and_activate_new_version_is_disabled b/tests/fixtures/cassettes/test_service_does_not_exist_and_activate_new_version_is_disabled index 8c36d19..c38f09d 100644 --- a/tests/fixtures/cassettes/test_service_does_not_exist_and_activate_new_version_is_disabled +++ b/tests/fixtures/cassettes/test_service_does_not_exist_and_activate_new_version_is_disabled @@ -6,32 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:46+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:39:46+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:46+00:00","id":"2oIUnhtC0pOCfxJbZ4gZMi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false},{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['622'] + content-length: ['602'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:51 GMT'] + date: ['Tue, 10 Oct 2017 10:36:06 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8321-YYZ'] - x-timer: ['S1506472792.556311,VS0,VE72'] + x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] + x-timer: ['S1507631766.679255,VS0,VE433'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/details + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:46+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:50+00:00","deployed":false}],"created_at":"2017-09-27T00:39:46+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:46+00:00","id":"2oIUnhtC0pOCfxJbZ4gZMi","version":{"testing":false,"number":2,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"updated_at":"2017-09-27T00:39:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:46+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:04Z","deployed":false}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo","version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"updated_at":"2017-09-27T00:39:50+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-27T00:39:46+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -39,48 +39,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3933'] + content-length: ['3883'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:51 GMT'] + date: ['Tue, 10 Oct 2017 10:36:06 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472792.895574,VS0,VE47'] + x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] + x-timer: ['S1507631766.195371,VS0,VE104'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi/version/2/deactivate + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2oIUnhtC0pOCfxJbZ4gZMi","staging":false,"created_at":"2017-09-27T00:39:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:50+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:04Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['231'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:52 GMT'] - fastly-ratelimit-remaining: ['824'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:06 GMT'] + fastly-ratelimit-remaining: ['806'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472792.174982,VS0,VE242'] + x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] + x-timer: ['S1507631766.399037,VS0,VE498'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2oIUnhtC0pOCfxJbZ4gZMi + uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,16 +89,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:53 GMT'] - fastly-ratelimit-remaining: ['823'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:07 GMT'] + fastly-ratelimit-remaining: ['805'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8328-YYZ'] - x-timer: ['S1506472793.298896,VS0,VE85'] + x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] + x-timer: ['S1507631767.981830,VS0,VE440'] status: {code: 200, message: OK} - request: body: null @@ -111,18 +111,19 @@ interactions: service ''1z3ENiEMpKOrsGqTBLhkF2''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:53 GMT'] + date: ['Tue, 10 Oct 2017 10:36:07 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8327-YYZ'] - x-timer: ['S1506472794.605079,VS0,VE48'] + x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] + x-timer: ['S1507631768.511498,VS0,VE113'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -132,124 +133,126 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Jimdo - Fastly Ansible Module Test","publish_key":"1b06e59a4921211176f48120612febf5418944a6","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-27T00:39:54+00:00","comment":"","updated_at":"2017-09-27T00:39:54+00:00","id":"2x7fBSkllFGFz9yN8w28KU"}'} + Fastly Ansible Module Test","publish_key":"b8674ae14ef8f5dfe563eefa0f7468e4f5f839fd","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:08Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:36:08Z","comment":"","updated_at":"2017-10-10T10:36:08Z","id":"6Qoo35YqIXGAx6yAHEjh3Q"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['538'] + content-length: ['518'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:54 GMT'] - fastly-ratelimit-remaining: ['822'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:08 GMT'] + fastly-ratelimit-remaining: ['804'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8335-YYZ'] - x-timer: ['S1506472794.923955,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] + x-timer: ['S1507631768.706013,VS0,VE383'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54+00:00","deployed":false}],"created_at":"2017-09-27T00:39:54+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54+00:00","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":1,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-09-27T00:39:54+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:39:54+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:08Z","deployed":false}],"created_at":"2017-10-10T10:36:08Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:08Z","id":"6Qoo35YqIXGAx6yAHEjh3Q","version":{"testing":false,"number":1,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"updated_at":"2017-10-10T10:36:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:36:08Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1077'] + content-length: ['1047'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:55 GMT'] + date: ['Tue, 10 Oct 2017 10:36:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8320-YYZ'] - x-timer: ['S1506472795.866490,VS0,VE188'] + x-served-by: ['app-slwdc9051-SL, cache-ams4425-AMS'] + x-timer: ['S1507631768.163743,VS0,VE158'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version response: - body: {string: !!python/unicode '{"service_id":"2x7fBSkllFGFz9yN8w28KU","number":2}'} + body: {string: !!python/unicode '{"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:55 GMT'] - fastly-ratelimit-remaining: ['821'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:08 GMT'] + fastly-ratelimit-remaining: ['803'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472795.327409,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] + x-timer: ['S1507631768.399128,VS0,VE415'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/2/domain + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2x7fBSkllFGFz9yN8w28KU","version":2,"deleted_at":null,"created_at":"2017-09-27T00:39:55+00:00","updated_at":"2017-09-27T00:39:55+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"6Qoo35YqIXGAx6yAHEjh3Q","version":2,"deleted_at":null,"created_at":"2017-10-10T10:36:09Z","updated_at":"2017-10-10T10:36:09Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['188'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:55 GMT'] - fastly-ratelimit-remaining: ['820'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:09 GMT'] + fastly-ratelimit-remaining: ['802'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8330-YYZ'] - x-timer: ['S1506472796.779666,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631769.898381,VS0,VE488'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "healthcheck": null, "ssl_cert_hostname": null, "address": "127.0.0.1", - "port": 80, "ssl_hostname": null, "shield": null}' + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/2/backend + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","healthcheck":null,"ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"2x7fBSkllFGFz9yN8w28KU","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"updated_at":"2017-09-27T00:39:56+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"max_conn":200,"use_ssl":false,"created_at":"2017-09-27T00:39:56+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:09Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:09Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['716'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:56 GMT'] - fastly-ratelimit-remaining: ['819'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:09 GMT'] + fastly-ratelimit-remaining: ['801'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472796.211273,VS0,VE203'] + x-served-by: ['app-slwdc9051-SL, cache-ams4447-AMS'] + x-timer: ['S1507631769.492848,VS0,VE467'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -259,26 +262,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/2/header + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"2x7fBSkllFGFz9yN8w28KU","version":"2","updated_at":"2017-09-27T00:39:56+00:00","deleted_at":null,"created_at":"2017-09-27T00:39:56+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","version":"2","updated_at":"2017-10-10T10:36:10Z","deleted_at":null,"created_at":"2017-10-10T10:36:10Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['412'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:56 GMT'] - fastly-ratelimit-remaining: ['818'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:10 GMT'] + fastly-ratelimit-remaining: ['800'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8322-YYZ'] - x-timer: ['S1506472797.652750,VS0,VE188'] + x-served-by: ['app-slwdc9051-SL, cache-ams4127-AMS'] + x-timer: ['S1507631770.057832,VS0,VE481'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -286,60 +289,60 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/2/response_object + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"2x7fBSkllFGFz9yN8w28KU","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-27T00:39:57+00:00","updated_at":"2017-09-27T00:39:57+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"6Qoo35YqIXGAx6yAHEjh3Q","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:11Z","updated_at":"2017-10-10T10:36:11Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['288'] + content-length: ['278'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:57 GMT'] - fastly-ratelimit-remaining: ['817'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:11 GMT'] + fastly-ratelimit-remaining: ['799'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8323-YYZ'] - x-timer: ['S1506472797.051368,VS0,VE80'] + x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] + x-timer: ['S1507631771.646036,VS0,VE443'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/2/settings + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2x7fBSkllFGFz9yN8w28KU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:57 GMT'] - fastly-ratelimit-remaining: ['816'] - fastly-ratelimit-reset: ['1506474000'] + date: ['Tue, 10 Oct 2017 10:36:11 GMT'] + fastly-ratelimit-remaining: ['798'] + fastly-ratelimit-reset: ['1507633200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8326-YYZ'] - x-timer: ['S1506472797.373042,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] + x-timer: ['S1507631771.170095,VS0,VE468'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details + uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57+00:00","deployed":false}],"created_at":"2017-09-27T00:39:54+00:00","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54+00:00","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":2,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-09-27T00:39:57+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-27T00:39:55+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:08Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:11Z","deployed":false}],"created_at":"2017-10-10T10:36:08Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:08Z","id":"6Qoo35YqIXGAx6yAHEjh3Q","version":{"testing":false,"number":2,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"updated_at":"2017-10-10T10:36:11Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:36:08Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: @@ -347,15 +350,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2350'] + content-length: ['2310'] content-type: [application/json] - date: ['Wed, 27 Sep 2017 00:39:57 GMT'] + date: ['Tue, 10 Oct 2017 10:36:11 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-yyz8334-YYZ'] - x-timer: ['S1506472798.691136,VS0,VE81'] + x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] + x-timer: ['S1507631772.717987,VS0,VE154'] status: {code: 200, message: OK} version: 1 diff --git a/tests/test_fastly_service.py b/tests/test_fastly_service.py index 57bf80f..b173a17 100644 --- a/tests/test_fastly_service.py +++ b/tests/test_fastly_service.py @@ -260,6 +260,26 @@ def test_fastly_backend_empty_ssl_ca_cert(self): service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service self.assertEqual(service.active_version.configuration, configuration) + @my_vcr.use_cassette() + def test_fastly_backend_weight_even(self): + configuration = FastlyConfiguration({ + 'domains': [{ + 'name': self.FASTLY_TEST_DOMAIN, + }], + 'backends': [{ + 'name': 'my-backend1.example.net', + 'address': 'my-backend1.example.net', + 'weight': 50 + }, + { + 'name': 'my-backend2.example.net', + 'address': 'my-backend2.example.net', + 'weight': 50 + }] + }) + service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service + self.assertEqual(service.active_version.configuration, configuration) + @my_vcr.use_cassette() def test_fastly_header_priority_not_required(self): configuration = FastlyConfiguration({