diff --git a/README.md b/README.md index 357070b..a61751d 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,8 @@ $ ansible-galaxy install Jimdo.fastly | request_condition | false | string | | | response | false | string | Ok | | status | false | integer | 200 | +| content | false | string | | +| content_type | false | string | | ### VCL Snippets diff --git a/library/fastly_service.py b/library/fastly_service.py index 60b0549..0694683 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -420,7 +420,9 @@ class FastlyResponseObject(FastlyObject): 'name': dict(required=True, type='str', default=None), 'request_condition': dict(required=False, type='str', default=''), 'response': dict(required=False, type='str', default='Ok'), - 'status': dict(required=False, type='intstr', default='200') + 'status': dict(required=False, type='intstr', default='200'), + 'content': dict(required=False, type='str', default=''), + 'content_type': dict(required=False, type='str', default='') } def __init__(self, config, validate_choices): @@ -428,6 +430,8 @@ def __init__(self, config, validate_choices): self.request_condition = self.read_config(config, validate_choices, 'request_condition') self.response = self.read_config(config, validate_choices, 'response') self.status = self.read_config(config, validate_choices, 'status') + self.content = self.read_config(config, validate_choices, 'content') + self.content_type = self.read_config(config, validate_choices, 'content_type') def sort_key(f): return f.name diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml index 920c85f..57740cf 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml @@ -6,81 +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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:33:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false},{"testing":false,"number":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['2302'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:59 GMT'] + date: ['Fri, 08 Sep 2017 11:20:48 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-fra1223-FRA'] - x-timer: ['S1504866839.038997,VS0,VE152'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869648.437334,VS0,VE159'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/details + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:57+00:00","deployed":false}],"created_at":"2017-09-08T10:33:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330","version":{"testing":false,"number":2,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:20:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica","version":{"testing":false,"number":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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: ['4119'] + content-length: ['5795'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:59 GMT'] + date: ['Fri, 08 Sep 2017 11:20:48 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-fra1245-FRA'] - x-timer: ['S1504866839.232312,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1504869649.638767,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/version/2/deactivate + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/version/9/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:57+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:20:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:59 GMT'] - fastly-ratelimit-remaining: ['671'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:49 GMT'] + fastly-ratelimit-remaining: ['714'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866839.414174,VS0,VE554'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869649.814176,VS0,VE556'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330 + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:00 GMT'] - fastly-ratelimit-remaining: ['670'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:49 GMT'] + fastly-ratelimit-remaining: ['713'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866840.150646,VS0,VE524'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869649.407008,VS0,VE214'] 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 77f9fa2..0539d8c 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml @@ -6,123 +6,100 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load - service ''15DqjG1ON0S28gluYrATvC''-''Fastly Ansible Module Test''"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"number":7,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['111'] + content-length: ['2061'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:51 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-fra1223-FRA'] - x-timer: ['S1504866832.530558,VS0,VE444'] - status: {code: 404, message: Not Found} -- request: - body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' - headers: - Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service - response: - body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly - Ansible Module Test","publish_key":"47e008e0231facba419e66790c0832d7274c8577","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:33:52+00:00","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330"}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['532'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:52 GMT'] - fastly-ratelimit-remaining: ['680'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1248-FRA'] - x-timer: ['S1504866832.015354,VS0,VE476'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869642.050117,VS0,VE493'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/details + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false}],"created_at":"2017-09-08T10:33:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330","version":{"testing":false,"number":1,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:52+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:33:52+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":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica","version":{"testing":false,"number":8,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:19:35+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:19: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":"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":7,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:19:29+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:19:25+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\" + 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: ['1071'] + content-length: ['5383'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:53 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1240-FRA'] - x-timer: ['S1504866833.627724,VS0,VE521'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869643.598294,VS0,VE236'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/version + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/version response: - body: {string: !!python/unicode '{"service_id":"1cc1EJc6Cs1u7OlC5me330","number":2}'} + body: {string: !!python/unicode '{"service_id":"sQRPjh9FzS7fRBomt4ica","number":9}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['49'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:53 GMT'] - fastly-ratelimit-remaining: ['679'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:43 GMT'] + fastly-ratelimit-remaining: ['722'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] - x-timer: ['S1504866833.256944,VS0,VE490'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869643.896970,VS0,VE158'] 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/1cc1EJc6Cs1u7OlC5me330/version/2/domain + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/version/9/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"1cc1EJc6Cs1u7OlC5me330","version":2,"deleted_at":null,"created_at":"2017-09-08T10:33:54+00:00","updated_at":"2017-09-08T10:33:54+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"sQRPjh9FzS7fRBomt4ica","version":9,"deleted_at":null,"created_at":"2017-09-08T11:20:43+00:00","updated_at":"2017-09-08T11:20:43+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['188'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:54 GMT'] - fastly-ratelimit-remaining: ['678'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:43 GMT'] + fastly-ratelimit-remaining: ['721'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] - x-timer: ['S1504866834.879868,VS0,VE554'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869643.098378,VS0,VE200'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -131,25 +108,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/version/2/backend + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/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":"1cc1EJc6Cs1u7OlC5me330","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-08T10:33:54+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-08T10:33:54+00:00","comment":""}'} + 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":"sQRPjh9FzS7fRBomt4ica","version":9,"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-08T11:20:43+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-08T11:20:43+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['725'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:54 GMT'] - fastly-ratelimit-remaining: ['677'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:43 GMT'] + fastly-ratelimit-remaining: ['720'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] - x-timer: ['S1504866835.510846,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869643.338468,VS0,VE527'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 10, "name": "cache-settings-config-name", @@ -157,25 +134,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/version/2/cache_settings + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/version/9/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"1cc1EJc6Cs1u7OlC5me330","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-09-08T10:33:55+00:00","updated_at":"2017-09-08T10:33:55+00:00"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"sQRPjh9FzS7fRBomt4ica","version":"9","ttl":null,"deleted_at":null,"created_at":"2017-09-08T11:20:44+00:00","updated_at":"2017-09-08T11:20:44+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['250'] + content-length: ['249'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:55 GMT'] - fastly-ratelimit-remaining: ['676'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:44 GMT'] + fastly-ratelimit-remaining: ['719'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] - x-timer: ['S1504866835.739527,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869644.986759,VS0,VE477'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -185,131 +162,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/version/2/header + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/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":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1cc1EJc6Cs1u7OlC5me330","version":"2","updated_at":"2017-09-08T10:33:55+00:00","deleted_at":null,"created_at":"2017-09-08T10:33:55+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":"sQRPjh9FzS7fRBomt4ica","version":"9","updated_at":"2017-09-08T11:20:45+00:00","deleted_at":null,"created_at":"2017-09-08T11:20:45+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:55 GMT'] - fastly-ratelimit-remaining: ['675'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:45 GMT'] + fastly-ratelimit-remaining: ['718'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] - x-timer: ['S1504866835.268671,VS0,VE516'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869645.605422,VS0,VE509'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/version/2/response_object + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/version/9/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"1cc1EJc6Cs1u7OlC5me330","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:33:55+00:00","content_type":null,"updated_at":"2017-09-08T10:33:55+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"sQRPjh9FzS7fRBomt4ica","version":"9","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:20:45+00:00","updated_at":"2017-09-08T11:20:45+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['287'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:55 GMT'] - fastly-ratelimit-remaining: ['674'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:45 GMT'] + fastly-ratelimit-remaining: ['717'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] - x-timer: ['S1504866836.835292,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1504869645.165648,VS0,VE525'] 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/1cc1EJc6Cs1u7OlC5me330/version/2/settings + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/version/9/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"1cc1EJc6Cs1u7OlC5me330"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"sQRPjh9FzS7fRBomt4ica"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:56 GMT'] - fastly-ratelimit-remaining: ['673'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:46 GMT'] + fastly-ratelimit-remaining: ['716'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866836.027256,VS0,VE528'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1504869646.760217,VS0,VE546'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/version/2/activate + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/version/9/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:55+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:20:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:45+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['250'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:57 GMT'] - fastly-ratelimit-remaining: ['672'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:47 GMT'] + fastly-ratelimit-remaining: ['715'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866837.600031,VS0,VE1110'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869646.347760,VS0,VE1136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/details + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:57+00:00","deployed":false}],"created_at":"2017-09-08T10:33:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330","version":{"testing":false,"number":2,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:20:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica","version":{"testing":false,"number":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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: ['4119'] + content-length: ['5795'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:58 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1243-FRA'] - x-timer: ['S1504866838.846247,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1504869648.531236,VS0,VE211'] status: {code: 200, message: OK} - request: body: null @@ -318,76 +295,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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:33:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false},{"testing":false,"number":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['2302'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:58 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1249-FRA'] - x-timer: ['S1504866838.061442,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869648.785711,VS0,VE161'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/details + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:57+00:00","deployed":false}],"created_at":"2017-09-08T10:33:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330","version":{"testing":false,"number":2,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:20:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica","version":{"testing":false,"number":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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: ['4119'] + content-length: ['5795'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:58 GMT'] + date: ['Fri, 08 Sep 2017 11:20:48 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-fra1240-FRA'] - x-timer: ['S1504866838.255178,VS0,VE532'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869648.990514,VS0,VE169'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1cc1EJc6Cs1u7OlC5me330/details + uri: https://api.fastly.com/service/sQRPjh9FzS7fRBomt4ica/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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:52+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"created_at":"2017-09-08T10:33:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:33:57+00:00","deployed":false}],"created_at":"2017-09-08T10:33:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:33:52+00:00","id":"1cc1EJc6Cs1u7OlC5me330","version":{"testing":false,"number":2,"service_id":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1cc1EJc6Cs1u7OlC5me330","staging":false,"updated_at":"2017-09-08T10:33:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:33:53+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:16:08+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:16:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:21+00:00","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:17:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:17:34+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:17+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:23+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:18:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:18:46+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:29+00:00","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:19:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:19:35+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"created_at":"2017-09-08T11:20:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:47+00:00","deployed":false}],"created_at":"2017-09-08T11:16:08+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:16:08+00:00","id":"sQRPjh9FzS7fRBomt4ica","version":{"testing":false,"number":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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":9,"service_id":"sQRPjh9FzS7fRBomt4ica","staging":false,"updated_at":"2017-09-08T11:20:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:42+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\" + 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: ['4119'] + content-length: ['5795'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:33:58 GMT'] + date: ['Fri, 08 Sep 2017 11:20:48 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-fra1220-FRA'] - x-timer: ['S1504866839.854595,VS0,VE130'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869648.209457,VS0,VE168'] 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 d094921..402b0d4 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: ['Fri, 08 Sep 2017 10:34:00 GMT'] + date: ['Fri, 08 Sep 2017 11:20:49 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-fra1250-FRA'] - x-timer: ['S1504866841.732243,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869650.670812,VS0,VE129'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,32 +32,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly - Ansible Module Test","publish_key":"01838b9655f274c892e03d5df5b1bc42f8fb8406","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:34:01+00:00","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8"}'} + Ansible Module Test","publish_key":"4f040d04d3d0ec062fd6fe6d9a247076ada60ac2","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:20:50+00:00","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:01 GMT'] - fastly-ratelimit-remaining: ['669'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:50 GMT'] + fastly-ratelimit-remaining: ['712'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] - x-timer: ['S1504866841.903295,VS0,VE498'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869650.862264,VS0,VE487'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":1,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:01+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:34:01+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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":1,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:50+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:20: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}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +65,64 @@ interactions: connection: [keep-alive] content-length: ['1071'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:01 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1226-FRA'] - x-timer: ['S1504866841.450179,VS0,VE208'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869650.455406,VS0,VE509'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version response: - body: {string: !!python/unicode '{"service_id":"1mcyKR4xSI08Nsw6992gS8","number":2}'} + body: {string: !!python/unicode '{"service_id":"5zX2fj2xHiyXtElLzcxpC0","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:02 GMT'] - fastly-ratelimit-remaining: ['668'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:51 GMT'] + fastly-ratelimit-remaining: ['711'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] - x-timer: ['S1504866842.721139,VS0,VE504'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869651.088771,VS0,VE156'] 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/1mcyKR4xSI08Nsw6992gS8/version/2/domain + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"1mcyKR4xSI08Nsw6992gS8","version":2,"deleted_at":null,"created_at":"2017-09-08T10:34:02+00:00","updated_at":"2017-09-08T10:34:02+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":2,"deleted_at":null,"created_at":"2017-09-08T11:20:51+00:00","updated_at":"2017-09-08T11:20:51+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:02 GMT'] - fastly-ratelimit-remaining: ['667'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:51 GMT'] + fastly-ratelimit-remaining: ['710'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866842.441044,VS0,VE207'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869651.283493,VS0,VE515'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -131,25 +131,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/2/backend + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","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-08T10:34: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-08T10:34:03+00:00","comment":""}'} + 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":"5zX2fj2xHiyXtElLzcxpC0","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-08T11:20: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-08T11:20:51+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:03 GMT'] - fastly-ratelimit-remaining: ['666'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:52 GMT'] + fastly-ratelimit-remaining: ['709'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] - x-timer: ['S1504866843.699176,VS0,VE527'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869652.849016,VS0,VE183'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": "pass", "stale_ttl": 10, "name": "cache-settings-config-name", @@ -157,25 +157,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/2/cache_settings + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"1mcyKR4xSI08Nsw6992gS8","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-09-08T10:34:03+00:00","updated_at":"2017-09-08T10:34:03+00:00"}'} + body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-09-08T11:20:52+00:00","updated_at":"2017-09-08T11:20:52+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['252'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:03 GMT'] - fastly-ratelimit-remaining: ['665'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:52 GMT'] + fastly-ratelimit-remaining: ['708'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866843.265175,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869652.074698,VS0,VE161'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -185,131 +185,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/2/header + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","version":"2","updated_at":"2017-09-08T10:34:04+00:00","deleted_at":null,"created_at":"2017-09-08T10:34: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":"5zX2fj2xHiyXtElLzcxpC0","version":"2","updated_at":"2017-09-08T11:20:52+00:00","deleted_at":null,"created_at":"2017-09-08T11:20:52+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:04 GMT'] - fastly-ratelimit-remaining: ['664'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:52 GMT'] + fastly-ratelimit-remaining: ['707'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1504866844.884347,VS0,VE498'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869652.282258,VS0,VE512'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/2/response_object + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"1mcyKR4xSI08Nsw6992gS8","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:34:04+00:00","content_type":null,"updated_at":"2017-09-08T10:34:04+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:20:52+00:00","updated_at":"2017-09-08T11:20:52+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:04 GMT'] - fastly-ratelimit-remaining: ['663'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:52 GMT'] + fastly-ratelimit-remaining: ['706'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866845.529610,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869653.844069,VS0,VE153'] 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/1mcyKR4xSI08Nsw6992gS8/version/2/settings + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:05 GMT'] - fastly-ratelimit-remaining: ['662'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:53 GMT'] + fastly-ratelimit-remaining: ['705'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] - x-timer: ['S1504866845.739777,VS0,VE493'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869653.038478,VS0,VE179'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/2/activate + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:04+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:52+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:06 GMT'] - fastly-ratelimit-remaining: ['661'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:55 GMT'] + fastly-ratelimit-remaining: ['704'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] - x-timer: ['S1504866845.282037,VS0,VE1126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869653.256746,VS0,VE1849'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:06+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":2,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:55+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":2,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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: ['4123'] + content-length: ['4115'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:06 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1249-FRA'] - x-timer: ['S1504866846.442142,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869655.260448,VS0,VE173'] status: {code: 200, message: OK} - request: body: null @@ -318,7 +318,7 @@ 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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"number":2,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -326,69 +326,69 @@ interactions: connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:06 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1235-FRA'] - x-timer: ['S1504866847.658499,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1504869655.480102,VS0,VE190'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:06+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":2,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:55+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":2,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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: ['4123'] + content-length: ['4115'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:06 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1241-FRA'] - x-timer: ['S1504866847.847208,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869656.714751,VS0,VE129'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:06+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":2,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:55+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":2,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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: ['4123'] + content-length: ['4115'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:07 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1246-FRA'] - x-timer: ['S1504866847.025090,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869656.890925,VS0,VE127'] 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 8ede047..6511372 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,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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"number":2,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:07 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1223-FRA'] - x-timer: ['S1504866847.223028,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869656.088574,VS0,VE153'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:06+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":2,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:55+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":2,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:20:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:51+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\" + 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: ['4123'] + content-length: ['4115'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:07 GMT'] + date: ['Fri, 08 Sep 2017 11:20: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-fra1236-FRA'] - x-timer: ['S1504866847.422773,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869656.286765,VS0,VE127'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version response: - body: {string: !!python/unicode '{"service_id":"1mcyKR4xSI08Nsw6992gS8","number":3}'} + body: {string: !!python/unicode '{"service_id":"5zX2fj2xHiyXtElLzcxpC0","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:08 GMT'] - fastly-ratelimit-remaining: ['660'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:56 GMT'] + fastly-ratelimit-remaining: ['703'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] - x-timer: ['S1504866848.592406,VS0,VE536'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869656.450473,VS0,VE513'] 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/1mcyKR4xSI08Nsw6992gS8/version/3/domain + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"1mcyKR4xSI08Nsw6992gS8","version":3,"deleted_at":null,"created_at":"2017-09-08T10:34:08+00:00","updated_at":"2017-09-08T10:34:08+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":3,"deleted_at":null,"created_at":"2017-09-08T11:20:57+00:00","updated_at":"2017-09-08T11:20:57+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:08 GMT'] - fastly-ratelimit-remaining: ['659'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:57 GMT'] + fastly-ratelimit-remaining: ['702'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] - x-timer: ['S1504866848.172157,VS0,VE562'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869657.016337,VS0,VE486'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -107,25 +108,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/3/backend + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","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-08T10:34:08+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-08T10:34:08+00:00","comment":""}'} + 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":"5zX2fj2xHiyXtElLzcxpC0","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-08T11:20:57+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-08T11:20:57+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:08 GMT'] - fastly-ratelimit-remaining: ['658'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:57 GMT'] + fastly-ratelimit-remaining: ['701'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866849.812282,VS0,VE183'] + x-timer: ['S1504869658.557930,VS0,VE175'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 0, "name": "cache-settings-config-name", @@ -133,25 +134,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/3/cache_settings + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/3/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"1mcyKR4xSI08Nsw6992gS8","version":"3","ttl":null,"deleted_at":null,"created_at":"2017-09-08T10:34:09+00:00","updated_at":"2017-09-08T10:34:09+00:00"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":"3","ttl":null,"deleted_at":null,"created_at":"2017-09-08T11:20:58+00:00","updated_at":"2017-09-08T11:20:58+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['249'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:09 GMT'] - fastly-ratelimit-remaining: ['657'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:58 GMT'] + fastly-ratelimit-remaining: ['700'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] - x-timer: ['S1504866849.038492,VS0,VE545'] + x-timer: ['S1504869658.775674,VS0,VE522'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,131 +162,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/3/header + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","version":"3","updated_at":"2017-09-08T10:34:10+00:00","deleted_at":null,"created_at":"2017-09-08T10:34:10+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":"5zX2fj2xHiyXtElLzcxpC0","version":"3","updated_at":"2017-09-08T11:20:58+00:00","deleted_at":null,"created_at":"2017-09-08T11:20:58+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:10 GMT'] - fastly-ratelimit-remaining: ['656'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:58 GMT'] + fastly-ratelimit-remaining: ['699'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] - x-timer: ['S1504866850.650679,VS0,VE526'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869658.394563,VS0,VE165'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/3/response_object + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"1mcyKR4xSI08Nsw6992gS8","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:34:10+00:00","content_type":null,"updated_at":"2017-09-08T10:34:10+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:20:59+00:00","updated_at":"2017-09-08T11:20:59+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:10 GMT'] - fastly-ratelimit-remaining: ['655'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:59 GMT'] + fastly-ratelimit-remaining: ['698'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] - x-timer: ['S1504866850.281909,VS0,VE502'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869659.602683,VS0,VE495'] 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/1mcyKR4xSI08Nsw6992gS8/version/3/settings + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:11 GMT'] - fastly-ratelimit-remaining: ['654'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:20:59 GMT'] + fastly-ratelimit-remaining: ['697'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866851.908262,VS0,VE539'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869659.142815,VS0,VE537'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/3/activate + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:10+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:59+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:12 GMT'] - fastly-ratelimit-remaining: ['653'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:00 GMT'] + fastly-ratelimit-remaining: ['696'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] - x-timer: ['S1504866851.486603,VS0,VE756'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869660.860893,VS0,VE1054'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":3,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":3,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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: ['4359'] + content-length: ['4351'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:12 GMT'] + date: ['Fri, 08 Sep 2017 11:21:01 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-fra1235-FRA'] - x-timer: ['S1504866852.366062,VS0,VE210'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1504869661.116464,VS0,VE168'] status: {code: 200, message: OK} - request: body: null @@ -294,7 +295,7 @@ 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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"number":3,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -302,67 +303,69 @@ interactions: connection: [keep-alive] content-length: ['858'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:12 GMT'] + date: ['Fri, 08 Sep 2017 11:21:01 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-fra1224-FRA'] - x-timer: ['S1504866853.623814,VS0,VE156'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869661.335525,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":3,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":3,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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: ['4359'] + content-length: ['4351'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:13 GMT'] + date: ['Fri, 08 Sep 2017 11:21:01 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-fra1241-FRA'] - x-timer: ['S1504866853.816687,VS0,VE492'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869662.537519,VS0,VE132'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":3,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":3,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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: ['4359'] + content-length: ['4351'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:13 GMT'] + date: ['Fri, 08 Sep 2017 11:21:01 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-fra1241-FRA'] - x-timer: ['S1504866853.410243,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869662.807074,VS0,VE129'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml index e0098f7..1779edd 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml @@ -6,84 +6,83 @@ 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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:18+00:00","deployed":false},{"testing":false,"number":4,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:06+00:00","deployed":false},{"testing":false,"number":4,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['1100'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:18 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1220-FRA'] - x-timer: ['S1504866858.489368,VS0,VE163'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869667.340541,VS0,VE158'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:18+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":4,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:06+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:21:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:06+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":4,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"priority":"0","statement":"req.url + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 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}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4641'] + content-length: ['4633'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:18 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1247-FRA'] - x-timer: ['S1504866859.697405,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869668.544437,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/4/deactivate + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/4/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:18+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:21:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:06+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:19 GMT'] - fastly-ratelimit-remaining: ['644'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:08 GMT'] + fastly-ratelimit-remaining: ['687'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866859.864219,VS0,VE268'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869668.720511,VS0,VE573'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8 + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -92,15 +91,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:19 GMT'] - fastly-ratelimit-remaining: ['643'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:09 GMT'] + fastly-ratelimit-remaining: ['686'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] - x-timer: ['S1504866859.182953,VS0,VE546'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869668.425310,VS0,VE586'] 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 1652f34..2fa57fc 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml @@ -6,7 +6,7 @@ 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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"number":3,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,92 +14,92 @@ interactions: connection: [keep-alive] content-length: ['858'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:13 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1228-FRA'] - x-timer: ['S1504866854.615106,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869662.036655,VS0,VE164'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":3,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:08+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":3,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:20:56+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\" + 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: ['4359'] + content-length: ['4351'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:13 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1242-FRA'] - x-timer: ['S1504866854.798866,VS0,VE129'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869662.311324,VS0,VE136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version response: - body: {string: !!python/unicode '{"service_id":"1mcyKR4xSI08Nsw6992gS8","number":4}'} + body: {string: !!python/unicode '{"service_id":"5zX2fj2xHiyXtElLzcxpC0","number":4}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:14 GMT'] - fastly-ratelimit-remaining: ['652'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:02 GMT'] + fastly-ratelimit-remaining: ['695'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866854.973481,VS0,VE162'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869662.484870,VS0,VE196'] 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/1mcyKR4xSI08Nsw6992gS8/version/4/domain + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"1mcyKR4xSI08Nsw6992gS8","version":4,"deleted_at":null,"created_at":"2017-09-08T10:34:14+00:00","updated_at":"2017-09-08T10:34:14+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":4,"deleted_at":null,"created_at":"2017-09-08T11:21:03+00:00","updated_at":"2017-09-08T11:21:03+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:14 GMT'] - fastly-ratelimit-remaining: ['651'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:03 GMT'] + fastly-ratelimit-remaining: ['694'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] - x-timer: ['S1504866854.182002,VS0,VE563'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869663.721599,VS0,VE552'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "CACHE", "name": @@ -107,26 +107,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/4/condition + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/4/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"CACHE","name":"condition-name","statement":"req.url - ~ \"^/some_asset.js\"","service_id":"1mcyKR4xSI08Nsw6992gS8","version":"4","deleted_at":null,"created_at":"2017-09-08T10:34:15+00:00","updated_at":"2017-09-08T10:34:15+00:00"}'} + ~ \"^/some_asset.js\"","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":"4","deleted_at":null,"created_at":"2017-09-08T11:21:03+00:00","updated_at":"2017-09-08T11:21:03+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['264'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:15 GMT'] - fastly-ratelimit-remaining: ['650'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:03 GMT'] + fastly-ratelimit-remaining: ['693'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] - x-timer: ['S1504866855.879868,VS0,VE462'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869663.324906,VS0,VE491'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -135,25 +135,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/4/backend + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","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-08T10:34: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-08T10:34:15+00:00","comment":""}'} + 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":"5zX2fj2xHiyXtElLzcxpC0","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-08T11:21: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-08T11:21:04+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:15 GMT'] - fastly-ratelimit-remaining: ['649'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:04 GMT'] + fastly-ratelimit-remaining: ['692'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866855.381982,VS0,VE546'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869664.858637,VS0,VE496'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -163,132 +163,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/4/header + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","version":"4","updated_at":"2017-09-08T10:34:16+00:00","deleted_at":null,"created_at":"2017-09-08T10:34:16+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":"5zX2fj2xHiyXtElLzcxpC0","version":"4","updated_at":"2017-09-08T11:21:04+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:04+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['430'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:16 GMT'] - fastly-ratelimit-remaining: ['648'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:04 GMT'] + fastly-ratelimit-remaining: ['691'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] - x-timer: ['S1504866856.021930,VS0,VE545'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869664.449920,VS0,VE500'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/4/response_object + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/4/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"1mcyKR4xSI08Nsw6992gS8","version":"4","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:34:16+00:00","content_type":null,"updated_at":"2017-09-08T10:34:16+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"5zX2fj2xHiyXtElLzcxpC0","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:21:05+00:00","updated_at":"2017-09-08T11:21:05+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:16 GMT'] - fastly-ratelimit-remaining: ['647'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:05 GMT'] + fastly-ratelimit-remaining: ['690'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866857.650558,VS0,VE201'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869665.079353,VS0,VE163'] 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/1mcyKR4xSI08Nsw6992gS8/version/4/settings + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"1mcyKR4xSI08Nsw6992gS8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"5zX2fj2xHiyXtElLzcxpC0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:17 GMT'] - fastly-ratelimit-remaining: ['646'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:05 GMT'] + fastly-ratelimit-remaining: ['689'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] - x-timer: ['S1504866857.897615,VS0,VE539'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869665.285103,VS0,VE527'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/version/4/activate + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:16+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:21:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:05+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:18 GMT'] - fastly-ratelimit-remaining: ['645'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:07 GMT'] + fastly-ratelimit-remaining: ['688'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] - x-timer: ['S1504866857.489570,VS0,VE713'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869666.915599,VS0,VE1101'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1mcyKR4xSI08Nsw6992gS8/details + uri: https://api.fastly.com/service/5zX2fj2xHiyXtElLzcxpC0/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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:01+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:12+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"created_at":"2017-09-08T10:34:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:18+00:00","deployed":false}],"created_at":"2017-09-08T10:34:01+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:01+00:00","id":"1mcyKR4xSI08Nsw6992gS8","version":{"testing":false,"number":4,"service_id":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:20:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:00+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:20:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:06+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"created_at":"2017-09-08T11:21:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:06+00:00","deployed":false}],"created_at":"2017-09-08T11:20:50+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:20:50+00:00","id":"5zX2fj2xHiyXtElLzcxpC0","version":{"testing":false,"number":4,"service_id":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"1mcyKR4xSI08Nsw6992gS8","staging":false,"updated_at":"2017-09-08T10:34:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"priority":"0","statement":"req.url + 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":"5zX2fj2xHiyXtElLzcxpC0","staging":false,"updated_at":"2017-09-08T11:21:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 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}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4641'] + content-length: ['4633'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:18 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1250-FRA'] - x-timer: ['S1504866858.239038,VS0,VE170'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869667.065814,VS0,VE215'] 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 b14bfa9..4e11134 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:19 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1241-FRA'] - x-timer: ['S1504866860.774084,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869669.102991,VS0,VE133'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,32 +32,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly - Ansible Module Test","publish_key":"ac2081dcc914fbe3856a3a58fd9a3a2cd74510ce","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:34:20+00:00","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq"}'} + Ansible Module Test","publish_key":"fe9f27ad6963834e43fdbe9a1a0fe280f616152f","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:21:09+00:00","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:20 GMT'] - fastly-ratelimit-remaining: ['642'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:09 GMT'] + fastly-ratelimit-remaining: ['685'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] - x-timer: ['S1504866860.966840,VS0,VE475'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869669.274738,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/details + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq","version":{"testing":false,"number":1,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:20+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:34:20+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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y","version":{"testing":false,"number":1,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:09+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:21:09+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}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +65,64 @@ interactions: connection: [keep-alive] content-length: ['1071'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:20 GMT'] + date: ['Fri, 08 Sep 2017 11:21:09 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-fra1231-FRA'] - x-timer: ['S1504866861.506392,VS0,VE191'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1504869669.478453,VS0,VE511'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version response: - body: {string: !!python/unicode '{"service_id":"282w2st5sS6e8QjjGMDDYq","number":2}'} + body: {string: !!python/unicode '{"service_id":"6KzUPIYibmaDVpijleBU5Y","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:20 GMT'] - fastly-ratelimit-remaining: ['641'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:10 GMT'] + fastly-ratelimit-remaining: ['684'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866861.745926,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869670.093319,VS0,VE469'] 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/282w2st5sS6e8QjjGMDDYq/version/2/domain + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"282w2st5sS6e8QjjGMDDYq","version":2,"deleted_at":null,"created_at":"2017-09-08T10:34:21+00:00","updated_at":"2017-09-08T10:34:21+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6KzUPIYibmaDVpijleBU5Y","version":2,"deleted_at":null,"created_at":"2017-09-08T11:21:11+00:00","updated_at":"2017-09-08T11:21:11+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:21 GMT'] - fastly-ratelimit-remaining: ['640'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:11 GMT'] + fastly-ratelimit-remaining: ['683'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] - x-timer: ['S1504866861.975120,VS0,VE620'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869671.720462,VS0,VE572'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "REQUEST", "name": @@ -130,26 +130,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/2/condition + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/2/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"REQUEST","name":"condition-name","statement":"req.url - ~ \"^/robots.txt\"","service_id":"282w2st5sS6e8QjjGMDDYq","version":"2","deleted_at":null,"created_at":"2017-09-08T10:34:22+00:00","updated_at":"2017-09-08T10:34:22+00:00"}'} + ~ \"^/robots.txt\"","service_id":"6KzUPIYibmaDVpijleBU5Y","version":"2","deleted_at":null,"created_at":"2017-09-08T11:21:11+00:00","updated_at":"2017-09-08T11:21:11+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['263'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:22 GMT'] - fastly-ratelimit-remaining: ['639'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:11 GMT'] + fastly-ratelimit-remaining: ['682'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] - x-timer: ['S1504866862.634435,VS0,VE692'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869671.344549,VS0,VE476'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -158,25 +158,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/2/backend + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","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-08T10:34:22+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-08T10:34:22+00:00","comment":""}'} + 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":"6KzUPIYibmaDVpijleBU5Y","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-08T11:21: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-08T11:21:12+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:22 GMT'] - fastly-ratelimit-remaining: ['638'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:12 GMT'] + fastly-ratelimit-remaining: ['681'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] - x-timer: ['S1504866862.374927,VS0,VE559'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869672.971493,VS0,VE502'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -186,132 +186,132 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/2/header + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","version":"2","updated_at":"2017-09-08T10:34:23+00:00","deleted_at":null,"created_at":"2017-09-08T10:34:23+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":"6KzUPIYibmaDVpijleBU5Y","version":"2","updated_at":"2017-09-08T11:21:12+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:12+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:23 GMT'] - fastly-ratelimit-remaining: ['637'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:12 GMT'] + fastly-ratelimit-remaining: ['680'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] - x-timer: ['S1504866863.976548,VS0,VE560'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869673.526486,VS0,VE154'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/2/response_object + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"282w2st5sS6e8QjjGMDDYq","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:34:23+00:00","content_type":null,"updated_at":"2017-09-08T10:34:23+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6KzUPIYibmaDVpijleBU5Y","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:21:13+00:00","updated_at":"2017-09-08T11:21:13+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:23 GMT'] - fastly-ratelimit-remaining: ['636'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:13 GMT'] + fastly-ratelimit-remaining: ['679'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866864.574837,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1504869673.718736,VS0,VE501'] 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/282w2st5sS6e8QjjGMDDYq/version/2/settings + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"282w2st5sS6e8QjjGMDDYq"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6KzUPIYibmaDVpijleBU5Y"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:23 GMT'] - fastly-ratelimit-remaining: ['635'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:13 GMT'] + fastly-ratelimit-remaining: ['678'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866864.798614,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1504869673.264396,VS0,VE500'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/2/activate + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:23+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:13+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:24 GMT'] - fastly-ratelimit-remaining: ['634'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:14 GMT'] + fastly-ratelimit-remaining: ['677'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] - x-timer: ['S1504866864.031191,VS0,VE759'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1504869674.814259,VS0,VE738'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/details + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:24+00:00","deployed":false}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq","version":{"testing":false,"number":2,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:14+00:00","deployed":false}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y","version":{"testing":false,"number":2,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[{"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"priority":"0","statement":"req.url + 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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[{"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 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: ['4141'] + content-length: ['4133'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:25 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1251-FRA'] - x-timer: ['S1504866865.833228,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869675.595583,VS0,VE177'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml b/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml index 6d41f89..b654c17 100644 --- a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml @@ -6,7 +6,7 @@ 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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false},{"testing":false,"number":3,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false},{"testing":false,"number":3,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,74 +14,74 @@ interactions: connection: [keep-alive] content-length: ['858'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:32 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1238-FRA'] - x-timer: ['S1504866872.948657,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869681.673160,VS0,VE175'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/details + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq","version":{"testing":false,"number":3,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y","version":{"testing":false,"number":3,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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: ['4617'] + content-length: ['4609'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:32 GMT'] + date: ['Fri, 08 Sep 2017 11:21:21 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-fra1232-FRA'] - x-timer: ['S1504866872.143760,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869681.907553,VS0,VE144'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/3/deactivate + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:32 GMT'] - fastly-ratelimit-remaining: ['624'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:21 GMT'] + fastly-ratelimit-remaining: ['667'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] - x-timer: ['S1504866872.311013,VS0,VE567'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869681.098184,VS0,VE667'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:33 GMT'] - fastly-ratelimit-remaining: ['623'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:22 GMT'] + fastly-ratelimit-remaining: ['666'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866873.922211,VS0,VE541'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869682.003606,VS0,VE603'] 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 33769de..1d7697a 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,7 +6,7 @@ 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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"number":2,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,94 +14,94 @@ interactions: connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:25 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1251-FRA'] - x-timer: ['S1504866865.081464,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869675.847510,VS0,VE165'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/details + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:24+00:00","deployed":false}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq","version":{"testing":false,"number":2,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:14+00:00","deployed":false}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y","version":{"testing":false,"number":2,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[{"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":[{"priority":"0","statement":"req.url + 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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[{"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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 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: ['4141'] + content-length: ['4133'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:25 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1220-FRA'] - x-timer: ['S1504866865.281704,VS0,VE136'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869675.061536,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version response: - body: {string: !!python/unicode '{"service_id":"282w2st5sS6e8QjjGMDDYq","number":3}'} + body: {string: !!python/unicode '{"service_id":"6KzUPIYibmaDVpijleBU5Y","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:25 GMT'] - fastly-ratelimit-remaining: ['633'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:15 GMT'] + fastly-ratelimit-remaining: ['676'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] - x-timer: ['S1504866865.453547,VS0,VE471'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869675.227163,VS0,VE492'] 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/282w2st5sS6e8QjjGMDDYq/version/3/domain + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"282w2st5sS6e8QjjGMDDYq","version":3,"deleted_at":null,"created_at":"2017-09-08T10:34:26+00:00","updated_at":"2017-09-08T10:34:26+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6KzUPIYibmaDVpijleBU5Y","version":3,"deleted_at":null,"created_at":"2017-09-08T11:21:16+00:00","updated_at":"2017-09-08T11:21:16+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:26 GMT'] - fastly-ratelimit-remaining: ['632'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:16 GMT'] + fastly-ratelimit-remaining: ['675'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866866.968454,VS0,VE543'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869676.842233,VS0,VE539'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -110,25 +110,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/3/backend + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","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-08T10:34:26+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-08T10:34:26+00:00","comment":""}'} + 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":"6KzUPIYibmaDVpijleBU5Y","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-08T11:21:16+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-08T11:21:16+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:26 GMT'] - fastly-ratelimit-remaining: ['631'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:17 GMT'] + fastly-ratelimit-remaining: ['674'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] - x-timer: ['S1504866867.571067,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869676.446144,VS0,VE557'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "retries": 5, "capacity": 100, "shield": @@ -136,50 +136,50 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/3/director + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","version":3,"deleted_at":null,"created_at":"2017-09-08T10:34:27+00:00","updated_at":"2017-09-08T10:34:27+00:00"}'} + body: {string: !!python/unicode '{"comment":"","retries":5,"capacity":100,"shield":null,"backends":[],"quorum":75,"type":4,"name":"client_director","service_id":"6KzUPIYibmaDVpijleBU5Y","version":3,"deleted_at":null,"created_at":"2017-09-08T11:21:17+00:00","updated_at":"2017-09-08T11:21:17+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['265'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:27 GMT'] - fastly-ratelimit-remaining: ['630'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:17 GMT'] + fastly-ratelimit-remaining: ['673'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] - x-timer: ['S1504866867.788178,VS0,VE526'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869677.050748,VS0,VE207'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/3/director/client_director/backend/localhost + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/3/director/client_director/backend/localhost response: - body: {string: !!python/unicode '{"service_id":"282w2st5sS6e8QjjGMDDYq","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2017-09-08T10:34:27+00:00","deleted_at":null,"updated_at":"2017-09-08T10:34:27+00:00"}'} + body: {string: !!python/unicode '{"service_id":"6KzUPIYibmaDVpijleBU5Y","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2017-09-08T11:21:17+00:00","deleted_at":null,"updated_at":"2017-09-08T11:21:17+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['212'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:27 GMT'] - fastly-ratelimit-remaining: ['629'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:17 GMT'] + fastly-ratelimit-remaining: ['672'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866867.406907,VS0,VE526'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869677.325669,VS0,VE162'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -189,131 +189,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/3/header + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","version":"3","updated_at":"2017-09-08T10:34:28+00:00","deleted_at":null,"created_at":"2017-09-08T10:34:28+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":"6KzUPIYibmaDVpijleBU5Y","version":"3","updated_at":"2017-09-08T11:21:17+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:17+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:28 GMT'] - fastly-ratelimit-remaining: ['628'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:17 GMT'] + fastly-ratelimit-remaining: ['671'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] - x-timer: ['S1504866868.975891,VS0,VE515'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869678.531431,VS0,VE165'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/3/response_object + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"282w2st5sS6e8QjjGMDDYq","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:34:29+00:00","content_type":null,"updated_at":"2017-09-08T10:34:29+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6KzUPIYibmaDVpijleBU5Y","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:21:18+00:00","updated_at":"2017-09-08T11:21:18+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:29 GMT'] - fastly-ratelimit-remaining: ['627'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:18 GMT'] + fastly-ratelimit-remaining: ['670'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] - x-timer: ['S1504866869.665904,VS0,VE528'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1504869678.740350,VS0,VE568'] 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/282w2st5sS6e8QjjGMDDYq/version/3/settings + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"282w2st5sS6e8QjjGMDDYq"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"6KzUPIYibmaDVpijleBU5Y"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:29 GMT'] - fastly-ratelimit-remaining: ['626'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:18 GMT'] + fastly-ratelimit-remaining: ['669'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] - x-timer: ['S1504866869.294439,VS0,VE522'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869678.347147,VS0,VE186'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/version/3/activate + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:29+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:18+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:30 GMT'] - fastly-ratelimit-remaining: ['625'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:19 GMT'] + fastly-ratelimit-remaining: ['668'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866870.855929,VS0,VE1059'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869679.580971,VS0,VE1093'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/details + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq","version":{"testing":false,"number":3,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y","version":{"testing":false,"number":3,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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: ['4617'] + content-length: ['4609'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:31 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1228-FRA'] - x-timer: ['S1504866871.170653,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869680.852187,VS0,VE172'] status: {code: 200, message: OK} - request: body: null @@ -322,76 +322,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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false},{"testing":false,"number":3,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false},{"testing":false,"number":3,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['858'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:31 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1228-FRA'] - x-timer: ['S1504866871.385264,VS0,VE168'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869680.074588,VS0,VE156'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/details + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq","version":{"testing":false,"number":3,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y","version":{"testing":false,"number":3,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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: ['4617'] + content-length: ['4609'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:31 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1224-FRA'] - x-timer: ['S1504866872.596841,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1504869680.270886,VS0,VE129'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/282w2st5sS6e8QjjGMDDYq/details + uri: https://api.fastly.com/service/6KzUPIYibmaDVpijleBU5Y/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":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"created_at":"2017-09-08T10:34:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:30+00:00","deployed":false}],"created_at":"2017-09-08T10:34:20+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:20+00:00","id":"282w2st5sS6e8QjjGMDDYq","version":{"testing":false,"number":3,"service_id":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"282w2st5sS6e8QjjGMDDYq","staging":false,"updated_at":"2017-09-08T10:34:30+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:25+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-08T10:34:27+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T10:34:27+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"created_at":"2017-09-08T11:21:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:19+00:00","deployed":false}],"created_at":"2017-09-08T11:21:09+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:09+00:00","id":"6KzUPIYibmaDVpijleBU5Y","version":{"testing":false,"number":3,"service_id":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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":"6KzUPIYibmaDVpijleBU5Y","staging":false,"updated_at":"2017-09-08T11:21:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21: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":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-09-08T11:21:17+00:00","backends":["localhost"],"comment":"","updated_at":"2017-09-08T11:21:17+00:00","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: ['4617'] + content-length: ['4609'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:31 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1225-FRA'] - x-timer: ['S1504866872.765633,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869680.439752,VS0,VE172'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml index b2e6ee0..cb76bb6 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml @@ -6,7 +6,7 @@ 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":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:34+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:34+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:34+00:00","id":"2NhtDyRZIpO8IpmBLpUwfc"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:23+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:23+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:23+00:00","id":"6ae3FmjTTsNI2rQj2WBnzq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,78 +14,78 @@ interactions: connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:39 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1227-FRA'] - x-timer: ['S1504866879.279835,VS0,VE152'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869690.551053,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/details + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/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":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:38+00:00","deployed":false}],"created_at":"2017-09-08T10:34:34+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:34+00:00","id":"2NhtDyRZIpO8IpmBLpUwfc","version":{"testing":false,"number":2,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"updated_at":"2017-09-08T10:34:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"example8000.com"}],"gzips":[{"created_at":"2017-09-08T10:34:36+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T10:34:36+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":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:23+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:29+00:00","deployed":false}],"created_at":"2017-09-08T11:21:23+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:23+00:00","id":"6ae3FmjTTsNI2rQj2WBnzq","version":{"testing":false,"number":2,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"updated_at":"2017-09-08T11:21:29+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:24+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-08T11:21:25+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T11:21:25+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"updated_at":"2017-09-08T10:34:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"example8000.com"}],"gzips":[{"created_at":"2017-09-08T10:34:36+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T10:34:36+00:00","content_types":"text/html + 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":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"updated_at":"2017-09-08T11:21:29+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:24+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-08T11:21:25+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T11:21:25+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 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: ['4389'] + content-length: ['4381'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:39 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1225-FRA'] - x-timer: ['S1504866879.474752,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1504869690.745353,VS0,VE124'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/version/2/deactivate + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:38+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:29+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:40 GMT'] - fastly-ratelimit-remaining: ['613'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:30 GMT'] + fastly-ratelimit-remaining: ['656'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1504866880.646204,VS0,VE556'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1504869690.921728,VS0,VE513'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -94,15 +94,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:40 GMT'] - fastly-ratelimit-remaining: ['612'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:31 GMT'] + fastly-ratelimit-remaining: ['655'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866880.271115,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869691.565292,VS0,VE476'] 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 683934b..7a4d609 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml @@ -14,14 +14,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:33 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1220-FRA'] - x-timer: ['S1504866874.684798,VS0,VE132'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869683.659318,VS0,VE142'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,32 +31,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly - Ansible Module Test","publish_key":"ab0e7cd6fc65eee087f1718c8e947a547191922a","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:34+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:34:34+00:00","comment":"","updated_at":"2017-09-08T10:34:34+00:00","id":"2NhtDyRZIpO8IpmBLpUwfc"}'} + Ansible Module Test","publish_key":"10e3b06030d93d673e1380d56b806c9d476c29a3","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:23+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:21:23+00:00","comment":"","updated_at":"2017-09-08T11:21:23+00:00","id":"6ae3FmjTTsNI2rQj2WBnzq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:34 GMT'] - fastly-ratelimit-remaining: ['622'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:23 GMT'] + fastly-ratelimit-remaining: ['665'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866874.855302,VS0,VE518'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869683.846696,VS0,VE501'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/details + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/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":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:34+00:00","deployed":false}],"created_at":"2017-09-08T10:34:34+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:34+00:00","id":"2NhtDyRZIpO8IpmBLpUwfc","version":{"testing":false,"number":1,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"updated_at":"2017-09-08T10:34:34+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:23+00:00","deployed":false}],"created_at":"2017-09-08T11:21:23+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:23+00:00","id":"6ae3FmjTTsNI2rQj2WBnzq","version":{"testing":false,"number":1,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"updated_at":"2017-09-08T11:21:23+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:21:23+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}'} headers: accept-ranges: [bytes] age: ['0'] @@ -64,64 +64,64 @@ interactions: connection: [keep-alive] content-length: ['1071'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:34 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1244-FRA'] - x-timer: ['S1504866874.418791,VS0,VE474'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869683.394449,VS0,VE508'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/version + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/version response: - body: {string: !!python/unicode '{"service_id":"2NhtDyRZIpO8IpmBLpUwfc","number":2}'} + body: {string: !!python/unicode '{"service_id":"6ae3FmjTTsNI2rQj2WBnzq","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:35 GMT'] - fastly-ratelimit-remaining: ['621'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:24 GMT'] + fastly-ratelimit-remaining: ['664'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866875.942259,VS0,VE168'] + x-timer: ['S1504869684.944040,VS0,VE521'] 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/2NhtDyRZIpO8IpmBLpUwfc/version/2/domain + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2NhtDyRZIpO8IpmBLpUwfc","version":2,"deleted_at":null,"created_at":"2017-09-08T10:34:35+00:00","updated_at":"2017-09-08T10:34:35+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6ae3FmjTTsNI2rQj2WBnzq","version":2,"deleted_at":null,"created_at":"2017-09-08T11:21:25+00:00","updated_at":"2017-09-08T11:21:25+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:35 GMT'] - fastly-ratelimit-remaining: ['620'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:25 GMT'] + fastly-ratelimit-remaining: ['663'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866875.157806,VS0,VE521'] + x-timer: ['S1504869685.512127,VS0,VE563'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -130,25 +130,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/version/2/backend + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/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":"2NhtDyRZIpO8IpmBLpUwfc","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-08T10:34: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-08T10:34:36+00:00","comment":""}'} + 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":"6ae3FmjTTsNI2rQj2WBnzq","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-08T11:21:25+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-08T11:21:25+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:36 GMT'] - fastly-ratelimit-remaining: ['619'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:25 GMT'] + fastly-ratelimit-remaining: ['662'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1504866876.761288,VS0,VE538'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869685.119371,VS0,VE175'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content_types": "text/html text/css application/javascript", @@ -157,26 +157,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/version/2/gzip + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/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":"2NhtDyRZIpO8IpmBLpUwfc","version":"2","deleted_at":null,"created_at":"2017-09-08T10:34:36+00:00","updated_at":"2017-09-08T10:34:36+00:00"}'} + css js","name":"gzip-config-name","cache_condition":"","service_id":"6ae3FmjTTsNI2rQj2WBnzq","version":"2","deleted_at":null,"created_at":"2017-09-08T11:21:25+00:00","updated_at":"2017-09-08T11:21:25+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['287'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:36 GMT'] - fastly-ratelimit-remaining: ['618'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:25 GMT'] + fastly-ratelimit-remaining: ['661'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866876.346734,VS0,VE518'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869685.340290,VS0,VE508'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -186,134 +186,134 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/version/2/header + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/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":"2NhtDyRZIpO8IpmBLpUwfc","version":"2","updated_at":"2017-09-08T10:34:37+00:00","deleted_at":null,"created_at":"2017-09-08T10:34:37+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":"6ae3FmjTTsNI2rQj2WBnzq","version":"2","updated_at":"2017-09-08T11:21:26+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:26+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:37 GMT'] - fastly-ratelimit-remaining: ['617'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:26 GMT'] + fastly-ratelimit-remaining: ['660'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] - x-timer: ['S1504866877.911484,VS0,VE474'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869686.975469,VS0,VE502'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/version/2/response_object + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"2NhtDyRZIpO8IpmBLpUwfc","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:34:37+00:00","content_type":null,"updated_at":"2017-09-08T10:34:37+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6ae3FmjTTsNI2rQj2WBnzq","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:21:27+00:00","updated_at":"2017-09-08T11:21:27+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:37 GMT'] - fastly-ratelimit-remaining: ['616'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:27 GMT'] + fastly-ratelimit-remaining: ['659'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] - x-timer: ['S1504866877.425805,VS0,VE166'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869687.812447,VS0,VE520'] 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/2NhtDyRZIpO8IpmBLpUwfc/version/2/settings + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2NhtDyRZIpO8IpmBLpUwfc"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6ae3FmjTTsNI2rQj2WBnzq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:37 GMT'] - fastly-ratelimit-remaining: ['615'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:27 GMT'] + fastly-ratelimit-remaining: ['658'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] - x-timer: ['S1504866878.638026,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869687.454493,VS0,VE527'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/version/2/activate + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:37+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:27+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:39 GMT'] - fastly-ratelimit-remaining: ['614'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:29 GMT'] + fastly-ratelimit-remaining: ['657'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] - x-timer: ['S1504866878.861968,VS0,VE1152'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869688.028395,VS0,VE1081'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2NhtDyRZIpO8IpmBLpUwfc/details + uri: https://api.fastly.com/service/6ae3FmjTTsNI2rQj2WBnzq/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":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:34+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"created_at":"2017-09-08T10:34:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:38+00:00","deployed":false}],"created_at":"2017-09-08T10:34:34+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:34+00:00","id":"2NhtDyRZIpO8IpmBLpUwfc","version":{"testing":false,"number":2,"service_id":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"updated_at":"2017-09-08T10:34:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"example8000.com"}],"gzips":[{"created_at":"2017-09-08T10:34:36+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T10:34:36+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":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:23+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"created_at":"2017-09-08T11:21:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:29+00:00","deployed":false}],"created_at":"2017-09-08T11:21:23+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:23+00:00","id":"6ae3FmjTTsNI2rQj2WBnzq","version":{"testing":false,"number":2,"service_id":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"updated_at":"2017-09-08T11:21:29+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:24+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-08T11:21:25+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T11:21:25+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2NhtDyRZIpO8IpmBLpUwfc","staging":false,"updated_at":"2017-09-08T10:34:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"example8000.com"}],"gzips":[{"created_at":"2017-09-08T10:34:36+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T10:34:36+00:00","content_types":"text/html + 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":"6ae3FmjTTsNI2rQj2WBnzq","staging":false,"updated_at":"2017-09-08T11:21:29+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:24+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-08T11:21:25+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-09-08T11:21:25+00:00","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 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: ['4389'] + content-length: ['4381'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:39 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1222-FRA'] - x-timer: ['S1504866879.056349,VS0,VE163'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869689.315020,VS0,VE182'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml index 12da071..103540f 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml @@ -6,81 +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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:32+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:50 GMT'] + date: ['Fri, 08 Sep 2017 11:21:39 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-fra1222-FRA'] - x-timer: ['S1504866890.072540,VS0,VE509'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869699.255503,VS0,VE156'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/details + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:46+00:00","deployed":false}],"created_at":"2017-09-08T10:34:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2","version":{"testing":false,"number":2,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:33+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:38+00:00","deployed":false}],"created_at":"2017-09-08T11:21:32+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW","version":{"testing":false,"number":2,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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: ['4391'] + content-length: ['4383'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:50 GMT'] + date: ['Fri, 08 Sep 2017 11:21:39 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-fra1250-FRA'] - x-timer: ['S1504866891.800861,VS0,VE133'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869699.454823,VS0,VE125'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/version/2/deactivate + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:46+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:33+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:38+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:51 GMT'] - fastly-ratelimit-remaining: ['602'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:39 GMT'] + fastly-ratelimit-remaining: ['645'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] - x-timer: ['S1504866891.986286,VS0,VE226'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869700.620414,VS0,VE234'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2 + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:51 GMT'] - fastly-ratelimit-remaining: ['601'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:40 GMT'] + fastly-ratelimit-remaining: ['644'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] - x-timer: ['S1504866891.255631,VS0,VE523'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869700.906070,VS0,VE513'] 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 09190aa..8d21880 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml @@ -10,19 +10,18 @@ interactions: service ''15DqjG1ON0S28gluYrATvC''-''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: ['Fri, 08 Sep 2017 10:34:40 GMT'] + date: ['Fri, 08 Sep 2017 11:21:31 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-fra1230-FRA'] - x-timer: ['S1504866881.818051,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1504869691.200032,VS0,VE462'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,32 +31,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly - Ansible Module Test","publish_key":"f849ec44c8b2de4918f4c12cab9b6e5324c98b22","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:34:41+00:00","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2"}'} + Ansible Module Test","publish_key":"a64b9ed877266e33508b83701f6c690353b97f4d","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:21:32+00:00","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:41 GMT'] - fastly-ratelimit-remaining: ['611'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:32 GMT'] + fastly-ratelimit-remaining: ['654'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] - x-timer: ['S1504866881.984463,VS0,VE464'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869692.829666,VS0,VE506'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/details + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false}],"created_at":"2017-09-08T10:34:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2","version":{"testing":false,"number":1,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:41+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:34:41+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":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false}],"created_at":"2017-09-08T11:21:32+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW","version":{"testing":false,"number":1,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:32+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:21:32+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}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +64,64 @@ interactions: connection: [keep-alive] content-length: ['1071'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:42 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1235-FRA'] - x-timer: ['S1504866881.494231,VS0,VE530'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869692.451208,VS0,VE506'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/version + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/version response: - body: {string: !!python/unicode '{"service_id":"2Vfze1tdeDxUU7w9OvI2o2","number":2}'} + body: {string: !!python/unicode '{"service_id":"6kkz7bYCn4UMo8BGWOwGSW","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:42 GMT'] - fastly-ratelimit-remaining: ['610'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:33 GMT'] + fastly-ratelimit-remaining: ['653'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] - x-timer: ['S1504866882.239426,VS0,VE518'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1504869693.996152,VS0,VE532'] 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/2Vfze1tdeDxUU7w9OvI2o2/version/2/domain + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2Vfze1tdeDxUU7w9OvI2o2","version":2,"deleted_at":null,"created_at":"2017-09-08T10:34:42+00:00","updated_at":"2017-09-08T10:34:42+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6kkz7bYCn4UMo8BGWOwGSW","version":2,"deleted_at":null,"created_at":"2017-09-08T11:21:34+00:00","updated_at":"2017-09-08T11:21:34+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:43 GMT'] - fastly-ratelimit-remaining: ['609'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:34 GMT'] + fastly-ratelimit-remaining: ['652'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] - x-timer: ['S1504866883.810393,VS0,VE205'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1504869694.572583,VS0,VE555'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "test_healthcheck", "http_version": @@ -132,25 +131,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/version/2/healthcheck + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","version":2,"updated_at":"2017-09-08T10:34:43+00:00","deleted_at":null,"created_at":"2017-09-08T10:34:43+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":"6kkz7bYCn4UMo8BGWOwGSW","version":2,"updated_at":"2017-09-08T11:21:34+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:34+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['372'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:43 GMT'] - fastly-ratelimit-remaining: ['608'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:34 GMT'] + fastly-ratelimit-remaining: ['651'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] - x-timer: ['S1504866883.057938,VS0,VE499'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869694.178154,VS0,VE493'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -159,25 +158,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/version/2/backend + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","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-08T10:34:43+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-08T10:34:43+00:00","comment":""}'} + 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":"6kkz7bYCn4UMo8BGWOwGSW","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-08T11:21:35+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-08T11:21:35+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['740'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:43 GMT'] - fastly-ratelimit-remaining: ['607'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:35 GMT'] + fastly-ratelimit-remaining: ['650'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1504866884.706349,VS0,VE175'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869695.711163,VS0,VE503'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -187,131 +186,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/version/2/header + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","version":"2","updated_at":"2017-09-08T10:34:44+00:00","deleted_at":null,"created_at":"2017-09-08T10:34:44+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":"6kkz7bYCn4UMo8BGWOwGSW","version":"2","updated_at":"2017-09-08T11:21:35+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:35+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:44 GMT'] - fastly-ratelimit-remaining: ['606'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:35 GMT'] + fastly-ratelimit-remaining: ['649'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] - x-timer: ['S1504866884.919468,VS0,VE493'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869695.254958,VS0,VE157'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/version/2/response_object + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"2Vfze1tdeDxUU7w9OvI2o2","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:34:44+00:00","content_type":null,"updated_at":"2017-09-08T10:34:44+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6kkz7bYCn4UMo8BGWOwGSW","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:21:36+00:00","updated_at":"2017-09-08T11:21:36+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:44 GMT'] - fastly-ratelimit-remaining: ['605'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:36 GMT'] + fastly-ratelimit-remaining: ['648'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] - x-timer: ['S1504866884.466774,VS0,VE499'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869696.799000,VS0,VE476'] 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/2Vfze1tdeDxUU7w9OvI2o2/version/2/settings + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2Vfze1tdeDxUU7w9OvI2o2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6kkz7bYCn4UMo8BGWOwGSW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:45 GMT'] - fastly-ratelimit-remaining: ['604'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:36 GMT'] + fastly-ratelimit-remaining: ['647'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866885.010476,VS0,VE525'] + x-timer: ['S1504869696.418978,VS0,VE478'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/version/2/activate + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:44+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:33+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:36+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:49 GMT'] - fastly-ratelimit-remaining: ['603'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:38 GMT'] + fastly-ratelimit-remaining: ['646'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866886.572593,VS0,VE3644'] + x-timer: ['S1504869697.936257,VS0,VE1134'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/details + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:46+00:00","deployed":false}],"created_at":"2017-09-08T10:34:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2","version":{"testing":false,"number":2,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:33+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:38+00:00","deployed":false}],"created_at":"2017-09-08T11:21:32+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW","version":{"testing":false,"number":2,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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: ['4391'] + content-length: ['4383'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:49 GMT'] + date: ['Fri, 08 Sep 2017 11:21:38 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-fra1220-FRA'] - x-timer: ['S1504866889.266475,VS0,VE181'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1504869698.140806,VS0,VE170'] status: {code: 200, message: OK} - request: body: null @@ -320,76 +319,75 @@ 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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:32+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:49 GMT'] + date: ['Fri, 08 Sep 2017 11:21:38 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-fra1222-FRA'] - x-timer: ['S1504866889.484458,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869698.356464,VS0,VE149'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/details + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:46+00:00","deployed":false}],"created_at":"2017-09-08T10:34:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2","version":{"testing":false,"number":2,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:33+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:38+00:00","deployed":false}],"created_at":"2017-09-08T11:21:32+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW","version":{"testing":false,"number":2,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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: ['4391'] + content-length: ['4383'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:49 GMT'] + date: ['Fri, 08 Sep 2017 11:21:38 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-fra1241-FRA'] - x-timer: ['S1504866890.701799,VS0,VE132'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869699.558682,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2Vfze1tdeDxUU7w9OvI2o2/details + uri: https://api.fastly.com/service/6kkz7bYCn4UMo8BGWOwGSW/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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"created_at":"2017-09-08T10:34:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:46+00:00","deployed":false}],"created_at":"2017-09-08T10:34:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:41+00:00","id":"2Vfze1tdeDxUU7w9OvI2o2","version":{"testing":false,"number":2,"service_id":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2Vfze1tdeDxUU7w9OvI2o2","staging":false,"updated_at":"2017-09-08T10:34:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:42+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:32+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"created_at":"2017-09-08T11:21:33+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:38+00:00","deployed":false}],"created_at":"2017-09-08T11:21:32+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:32+00:00","id":"6kkz7bYCn4UMo8BGWOwGSW","version":{"testing":false,"number":2,"service_id":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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":"6kkz7bYCn4UMo8BGWOwGSW","staging":false,"updated_at":"2017-09-08T11:21:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:33+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\" + 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] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4391'] + content-length: ['4383'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:50 GMT'] + date: ['Fri, 08 Sep 2017 11:21:39 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-fra1230-FRA'] - x-timer: ['S1504866890.887068,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869699.729856,VS0,VE469'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml new file mode 100644 index 0000000..1bd8892 --- /dev/null +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Content-Type: [application/json] + 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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe"}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['616'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1235-FRA'] + x-timer: ['S1504869708.661495,VS0,VE158'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:46+00:00","deployed":false}],"created_at":"2017-09-08T11:21:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe","version":{"testing":false,"number":2,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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: ['3965'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1222-FRA'] + x-timer: ['S1504869708.861001,VS0,VE134'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/version/2/deactivate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:46+00:00","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['241'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:48 GMT'] + fastly-ratelimit-remaining: ['635'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869708.047012,VS0,VE548'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:48 GMT'] + fastly-ratelimit-remaining: ['634'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869709.742974,VS0,VE198'] + 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 new file mode 100644 index 0000000..81f3e55 --- /dev/null +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml @@ -0,0 +1,367 @@ +interactions: +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test + response: + body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load + service ''15DqjG1ON0S28gluYrATvC''-''Fastly Ansible Module Test''"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['111'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:40 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-fra1223-FRA'] + x-timer: ['S1504869700.483700,VS0,VE448'] + status: {code: 404, message: Not Found} +- request: + body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service + response: + body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly + Ansible Module Test","publish_key":"7bc7155a076f6b7648bb9f4153e747cf200c6423","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:21:41+00:00","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['532'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:41 GMT'] + fastly-ratelimit-remaining: ['643'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869701.976950,VS0,VE510'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false}],"created_at":"2017-09-08T11:21:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe","version":{"testing":false,"number":1,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:41+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:21:41+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}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['1071'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1223-FRA'] + x-timer: ['S1504869702.528735,VS0,VE528'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/version + response: + body: {string: !!python/unicode '{"service_id":"6v2ezOmZJMUjCpbKJnvNAe","number":2}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['50'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:42 GMT'] + fastly-ratelimit-remaining: ['642'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869702.283161,VS0,VE153'] + 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/6v2ezOmZJMUjCpbKJnvNAe/version/2/domain + response: + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6v2ezOmZJMUjCpbKJnvNAe","version":2,"deleted_at":null,"created_at":"2017-09-08T11:21:42+00:00","updated_at":"2017-09-08T11:21:42+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['189'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:43 GMT'] + fastly-ratelimit-remaining: ['641'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1504869702.481236,VS0,VE561'] + 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}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","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-08T11:21:43+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-08T11:21:43+00:00","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['726'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:43 GMT'] + fastly-ratelimit-remaining: ['640'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869703.095073,VS0,VE565'] + 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": "100", "cache_condition": + null, "action": "set", "type": "response", "response_condition": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","version":"2","updated_at":"2017-09-08T11:21:43+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:43+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['423'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:43 GMT'] + fastly-ratelimit-remaining: ['639'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869704.735839,VS0,VE179'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set + 200 status code", "content": "Hello from Fastly", "content_type": "text/plain", + "response": "Ok"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:21:44+00:00","updated_at":"2017-09-08T11:21:44+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['315'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:44 GMT'] + fastly-ratelimit-remaining: ['638'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869704.952480,VS0,VE570'] + 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/6v2ezOmZJMUjCpbKJnvNAe/version/2/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6v2ezOmZJMUjCpbKJnvNAe"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:45 GMT'] + fastly-ratelimit-remaining: ['637'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869705.768283,VS0,VE521'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/version/2/activate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:44+00:00","deployed":false,"msg":null}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['251'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:46 GMT'] + fastly-ratelimit-remaining: ['636'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869705.337896,VS0,VE1054'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:46+00:00","deployed":false}],"created_at":"2017-09-08T11:21:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe","version":{"testing":false,"number":2,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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: ['3965'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1246-FRA'] + x-timer: ['S1504869706.443578,VS0,VE173'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + 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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['616'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1232-FRA'] + x-timer: ['S1504869707.661065,VS0,VE497'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:46+00:00","deployed":false}],"created_at":"2017-09-08T11:21:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe","version":{"testing":false,"number":2,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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: ['3965'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1238-FRA'] + x-timer: ['S1504869707.260009,VS0,VE132'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6v2ezOmZJMUjCpbKJnvNAe/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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:41+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:41+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"created_at":"2017-09-08T11:21:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:46+00:00","deployed":false}],"created_at":"2017-09-08T11:21:41+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:41+00:00","id":"6v2ezOmZJMUjCpbKJnvNAe","version":{"testing":false,"number":2,"service_id":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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":"6v2ezOmZJMUjCpbKJnvNAe","staging":false,"updated_at":"2017-09-08T11:21:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:42+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\" + 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: ['3965'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1250-FRA'] + x-timer: ['S1504869707.431688,VS0,VE174'] + 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 new file mode 100644 index 0000000..c9b86aa --- /dev/null +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml @@ -0,0 +1,367 @@ +interactions: +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test + response: + body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load + service ''15DqjG1ON0S28gluYrATvC''-''Fastly Ansible Module Test''"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['111'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:49 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-fra1245-FRA'] + x-timer: ['S1504869709.983132,VS0,VE463'] + status: {code: 404, message: Not Found} +- request: + body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service + response: + body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly + Ansible Module Test","publish_key":"03a6bcf9349916bd24bed31b767c3abdb70e8add","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:21:49+00:00","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['532'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:50 GMT'] + fastly-ratelimit-remaining: ['633'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869710.576333,VS0,VE478'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":1,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:49+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:21:49+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}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['1071'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1226-FRA'] + x-timer: ['S1504869710.103926,VS0,VE537'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version + response: + body: {string: !!python/unicode '{"service_id":"74gYu0KMW5DezRqEtNH4mW","number":2}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['50'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:51 GMT'] + fastly-ratelimit-remaining: ['632'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1504869711.826668,VS0,VE495'] + 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/74gYu0KMW5DezRqEtNH4mW/version/2/domain + response: + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"74gYu0KMW5DezRqEtNH4mW","version":2,"deleted_at":null,"created_at":"2017-09-08T11:21:51+00:00","updated_at":"2017-09-08T11:21:51+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['189'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:51 GMT'] + fastly-ratelimit-remaining: ['631'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869711.365884,VS0,VE201'] + 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}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"74gYu0KMW5DezRqEtNH4mW","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-08T11:21: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-08T11:21:51+00:00","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['726'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:51 GMT'] + fastly-ratelimit-remaining: ['630'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869712.615259,VS0,VE173'] + 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": "100", "cache_condition": + null, "action": "set", "type": "response", "response_condition": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"74gYu0KMW5DezRqEtNH4mW","version":"2","updated_at":"2017-09-08T11:21:52+00:00","deleted_at":null,"created_at":"2017-09-08T11:21:52+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['423'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:52 GMT'] + fastly-ratelimit-remaining: ['629'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869712.837297,VS0,VE526'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set + 200 status code", "content": "", "content_type": "", "response": "Ok"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"74gYu0KMW5DezRqEtNH4mW","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:21:52+00:00","updated_at":"2017-09-08T11:21:52+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['288'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:52 GMT'] + fastly-ratelimit-remaining: ['628'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869712.434424,VS0,VE500'] + 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/74gYu0KMW5DezRqEtNH4mW/version/2/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"74gYu0KMW5DezRqEtNH4mW"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:53 GMT'] + fastly-ratelimit-remaining: ['627'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869713.969612,VS0,VE525'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version/2/activate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:52+00:00","deployed":false,"msg":null}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['251'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:54 GMT'] + fastly-ratelimit-remaining: ['626'] + fastly-ratelimit-reset: ['1504872000'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869714.539868,VS0,VE1076'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:54+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":2,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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: ['3911'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1251-FRA'] + x-timer: ['S1504869715.794482,VS0,VE171'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"number":2,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW"}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['616'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1248-FRA'] + x-timer: ['S1504869715.010222,VS0,VE165'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:54+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":2,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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: ['3911'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1221-FRA'] + x-timer: ['S1504869715.229297,VS0,VE170'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:54+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":2,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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: ['3911'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21: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-fra1225-FRA'] + x-timer: ['S1504869715.439145,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 c65ef37..23a47ec 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml @@ -6,82 +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":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false},{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:35:55+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false},{"testing":false,"number":3,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['858'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:00 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1246-FRA'] - x-timer: ['S1504866961.712986,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869776.359176,VS0,VE147'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/details + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:59+00:00","deployed":false}],"created_at":"2017-09-08T10:35:55+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc","version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:22:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":3,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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: ['3919'] + content-length: ['4153'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:01 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1227-FRA'] - x-timer: ['S1504866961.907623,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869777.554985,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/version/2/deactivate + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:59+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:22:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:01 GMT'] - fastly-ratelimit-remaining: ['511'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:56 GMT'] + fastly-ratelimit-remaining: ['543'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1504866961.076103,VS0,VE595'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869777.726456,VS0,VE228'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:02 GMT'] - fastly-ratelimit-remaining: ['510'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:57 GMT'] + fastly-ratelimit-remaining: ['542'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866962.720192,VS0,VE560'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869777.001177,VS0,VE481'] 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 3943ae8..0dcf932 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml @@ -6,123 +6,100 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load - service ''15DqjG1ON0S28gluYrATvC''-''Fastly Ansible Module Test''"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"number":2,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['111'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:55 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-fra1231-FRA'] - x-timer: ['S1504866955.590336,VS0,VE460'] - status: {code: 404, message: Not Found} -- request: - body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' - headers: - Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service - response: - body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly - Ansible Module Test","publish_key":"bcffe3862f344f26477dbb6d381da1e4a52eec29","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:35:55+00:00","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc"}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['532'] + content-length: ['616'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:55 GMT'] - fastly-ratelimit-remaining: ['519'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1232-FRA'] - x-timer: ['S1504866955.095583,VS0,VE465'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869772.547593,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/details + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false}],"created_at":"2017-09-08T10:35:55+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc","version":{"testing":false,"number":1,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:55+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:55+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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:54+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":2,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:21:54+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:51+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\" + 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: ['1071'] + content-length: ['3911'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:56 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1245-FRA'] - x-timer: ['S1504866956.602204,VS0,VE505'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869772.733231,VS0,VE128'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/version + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version response: - body: {string: !!python/unicode '{"service_id":"3r235CYdH7OuCABVzR9ldc","number":2}'} + body: {string: !!python/unicode '{"service_id":"74gYu0KMW5DezRqEtNH4mW","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:56 GMT'] - fastly-ratelimit-remaining: ['518'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:52 GMT'] + fastly-ratelimit-remaining: ['550'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] - x-timer: ['S1504866956.196128,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869772.910131,VS0,VE155'] 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/3r235CYdH7OuCABVzR9ldc/version/2/domain + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3r235CYdH7OuCABVzR9ldc","version":2,"deleted_at":null,"created_at":"2017-09-08T10:35:56+00:00","updated_at":"2017-09-08T10:35:56+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"74gYu0KMW5DezRqEtNH4mW","version":3,"deleted_at":null,"created_at":"2017-09-08T11:22:52+00:00","updated_at":"2017-09-08T11:22:52+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:56 GMT'] - fastly-ratelimit-remaining: ['517'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:52 GMT'] + fastly-ratelimit-remaining: ['549'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866956.390584,VS0,VE580'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869772.115351,VS0,VE573'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -131,25 +108,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/version/2/backend + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"3r235CYdH7OuCABVzR9ldc","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-08T10:35:57+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-08T10:35:57+00:00","comment":""}'} + 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":"74gYu0KMW5DezRqEtNH4mW","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-08T11:22:53+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-08T11:22:53+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:57 GMT'] - fastly-ratelimit-remaining: ['516'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:53 GMT'] + fastly-ratelimit-remaining: ['548'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] - x-timer: ['S1504866957.018211,VS0,VE514'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869773.785594,VS0,VE564'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,131 +136,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/version/2/header + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"3r235CYdH7OuCABVzR9ldc","version":"2","updated_at":"2017-09-08T10:35:57+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:57+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":"74gYu0KMW5DezRqEtNH4mW","version":"3","updated_at":"2017-09-08T11:22:53+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:53+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:57 GMT'] - fastly-ratelimit-remaining: ['515'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:53 GMT'] + fastly-ratelimit-remaining: ['547'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] - x-timer: ['S1504866958.657798,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869773.401357,VS0,VE205'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/version/2/response_object + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"3r235CYdH7OuCABVzR9ldc","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:58+00:00","content_type":null,"updated_at":"2017-09-08T10:35:58+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"74gYu0KMW5DezRqEtNH4mW","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:53+00:00","updated_at":"2017-09-08T11:22:53+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:58 GMT'] - fastly-ratelimit-remaining: ['514'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:53 GMT'] + fastly-ratelimit-remaining: ['546'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] - x-timer: ['S1504866958.854979,VS0,VE494'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869774.654135,VS0,VE164'] 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/3r235CYdH7OuCABVzR9ldc/version/2/settings + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":1000,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3r235CYdH7OuCABVzR9ldc"}'} + body: {string: !!python/unicode '{"general.default_ttl":1000,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"74gYu0KMW5DezRqEtNH4mW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:58 GMT'] - fastly-ratelimit-remaining: ['513'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:54 GMT'] + fastly-ratelimit-remaining: ['545'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] - x-timer: ['S1504866958.492022,VS0,VE490'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869774.861415,VS0,VE556'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/version/2/activate + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:58+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:22:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:53+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:59 GMT'] - fastly-ratelimit-remaining: ['512'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:55 GMT'] + fastly-ratelimit-remaining: ['544'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] - x-timer: ['S1504866959.119427,VS0,VE737'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869774.460694,VS0,VE1044'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/details + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:59+00:00","deployed":false}],"created_at":"2017-09-08T10:35:55+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc","version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:22:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":3,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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: ['3919'] + content-length: ['4153'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:00 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1225-FRA'] - x-timer: ['S1504866960.948791,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869776.587343,VS0,VE174'] status: {code: 200, message: OK} - request: body: null @@ -292,77 +269,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":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false},{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:35:55+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false},{"testing":false,"number":3,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['858'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:00 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1229-FRA'] - x-timer: ['S1504866960.168547,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869776.803784,VS0,VE153'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/details + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:59+00:00","deployed":false}],"created_at":"2017-09-08T10:35:55+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc","version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:22:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":3,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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: ['3919'] + content-length: ['4153'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:00 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1229-FRA'] - x-timer: ['S1504866960.365034,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869776.003220,VS0,VE125'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3r235CYdH7OuCABVzR9ldc/details + uri: https://api.fastly.com/service/74gYu0KMW5DezRqEtNH4mW/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":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"created_at":"2017-09-08T10:35:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:59+00:00","deployed":false}],"created_at":"2017-09-08T10:35:55+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:55+00:00","id":"3r235CYdH7OuCABVzR9ldc","version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3r235CYdH7OuCABVzR9ldc","staging":false,"updated_at":"2017-09-08T10:35:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:56+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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:49+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:49+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:21:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"created_at":"2017-09-08T11:22:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:55+00:00","deployed":false}],"created_at":"2017-09-08T11:21:49+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:49+00:00","id":"74gYu0KMW5DezRqEtNH4mW","version":{"testing":false,"number":3,"service_id":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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":"74gYu0KMW5DezRqEtNH4mW","staging":false,"updated_at":"2017-09-08T11:22:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:51+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\" + 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: ['3919'] + content-length: ['4153'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:00 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1251-FRA'] - x-timer: ['S1504866961.529365,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869776.178571,VS0,VE129'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml index e24d6ee..e0e3e91 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":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:36:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false},{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:57+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['613'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:08 GMT'] + date: ['Fri, 08 Sep 2017 11:23:04 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-fra1225-FRA'] - x-timer: ['S1504866969.817911,VS0,VE158'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869785.765910,VS0,VE147'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/details + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:07+00:00","deployed":false}],"created_at":"2017-09-08T10:36:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8","version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:23:03+00:00","deployed":false}],"created_at":"2017-09-08T11:22:57+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS","version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"aIu9KsvYipDZs5QvIEoKe"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"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":"aIu9KsvYipDZs5QvIEoKe"}],"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: ['4547'] + content-length: ['4532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:09 GMT'] + date: ['Fri, 08 Sep 2017 11:23: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-fra1238-FRA'] - x-timer: ['S1504866969.018753,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869785.967604,VS0,VE128'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/version/2/deactivate + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:07+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:23:03+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:09 GMT'] - fastly-ratelimit-remaining: ['500'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:05 GMT'] + fastly-ratelimit-remaining: ['532'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1504866969.189650,VS0,VE559'] + x-timer: ['S1504869785.144133,VS0,VE587'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8 + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -94,15 +94,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:09 GMT'] - fastly-ratelimit-remaining: ['499'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:05 GMT'] + fastly-ratelimit-remaining: ['531'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] - x-timer: ['S1504866970.786605,VS0,VE163'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869786.821578,VS0,VE175'] 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 48593eb..cf10ebd 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 @@ -10,18 +10,19 @@ interactions: service ''15DqjG1ON0S28gluYrATvC''-''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: ['Fri, 08 Sep 2017 10:36:02 GMT'] + date: ['Fri, 08 Sep 2017 11:22:57 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-fra1246-FRA'] - x-timer: ['S1504866962.325867,VS0,VE166'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869778.536761,VS0,VE121'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,97 +32,97 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Fastly - Ansible Module Test","publish_key":"8115030c1ac113e62ff9aa8a1d34b36f2f0a79d0","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:36:02+00:00","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8"}'} + Ansible Module Test","publish_key":"a57daa81340529f1f97d4ecdd350e54dd81c3ac4","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:22:57+00:00","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['532'] + content-length: ['530'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:03 GMT'] - fastly-ratelimit-remaining: ['509'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:57 GMT'] + fastly-ratelimit-remaining: ['541'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] - x-timer: ['S1504866963.532405,VS0,VE509'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869778.698179,VS0,VE145'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/details + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false}],"created_at":"2017-09-08T10:36:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8","version":{"testing":false,"number":1,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:02+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:36: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":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false}],"created_at":"2017-09-08T11:22:57+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS","version":{"testing":false,"number":1,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:22:57+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22:57+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}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1071'] + content-length: ['1068'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:03 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1239-FRA'] - x-timer: ['S1504866963.290099,VS0,VE173'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869778.887016,VS0,VE510'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/version + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/version response: - body: {string: !!python/unicode '{"service_id":"3zRC3y2B3UBRLlyuam6Su8","number":2}'} + body: {string: !!python/unicode '{"service_id":"VraN5eJuushudRTOKwACS","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['49'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:04 GMT'] - fastly-ratelimit-remaining: ['508'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:58 GMT'] + fastly-ratelimit-remaining: ['540'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] - x-timer: ['S1504866964.507195,VS0,VE506'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869778.443467,VS0,VE489'] 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/3zRC3y2B3UBRLlyuam6Su8/version/2/domain + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3zRC3y2B3UBRLlyuam6Su8","version":2,"deleted_at":null,"created_at":"2017-09-08T10:36:04+00:00","updated_at":"2017-09-08T10:36:04+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"VraN5eJuushudRTOKwACS","version":2,"deleted_at":null,"created_at":"2017-09-08T11:22:59+00:00","updated_at":"2017-09-08T11:22:59+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['188'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:04 GMT'] - fastly-ratelimit-remaining: ['507'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:59 GMT'] + fastly-ratelimit-remaining: ['539'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] - x-timer: ['S1504866964.062030,VS0,VE567'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869779.138222,VS0,VE562'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -130,25 +131,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/version/2/backend + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","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-08T10:36:05+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-08T10:36:05+00:00","comment":""}'} + 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":"VraN5eJuushudRTOKwACS","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-08T11:23: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-08T11:23:00+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['725'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:05 GMT'] - fastly-ratelimit-remaining: ['506'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:00 GMT'] + fastly-ratelimit-remaining: ['538'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] - x-timer: ['S1504866965.671555,VS0,VE493'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869780.771920,VS0,VE530'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -158,53 +159,53 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/version/2/header + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","version":"2","updated_at":"2017-09-08T10:36:05+00:00","deleted_at":null,"created_at":"2017-09-08T10:36:05+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":"VraN5eJuushudRTOKwACS","version":"2","updated_at":"2017-09-08T11:23:00+00:00","deleted_at":null,"created_at":"2017-09-08T11:23:00+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['423'] + content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:05 GMT'] - fastly-ratelimit-remaining: ['505'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:00 GMT'] + fastly-ratelimit-remaining: ['537'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] - x-timer: ['S1504866965.215261,VS0,VE519'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869780.387623,VS0,VE490'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' + 200 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/version/2/response_object + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"3zRC3y2B3UBRLlyuam6Su8","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:36:06+00:00","content_type":null,"updated_at":"2017-09-08T10:36:06+00:00"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"VraN5eJuushudRTOKwACS","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:23:01+00:00","updated_at":"2017-09-08T11:23:01+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['287'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:06 GMT'] - fastly-ratelimit-remaining: ['504'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:01 GMT'] + fastly-ratelimit-remaining: ['536'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] - x-timer: ['S1504866966.786105,VS0,VE509'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869781.023024,VS0,VE490'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "\n if (resp.status >= 500 && resp.status @@ -214,110 +215,110 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/version/2/snippet + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","version":"2","deleted_at":null,"created_at":"2017-09-08T10:36:06+00:00","updated_at":"2017-09-08T10:36:06+00:00","id":"43Qf0JU61e4IyicP2OLk7M"}'} + stale content","priority":100,"service_id":"VraN5eJuushudRTOKwACS","version":"2","deleted_at":null,"created_at":"2017-09-08T11:23:01+00:00","updated_at":"2017-09-08T11:23:01+00:00","id":"aIu9KsvYipDZs5QvIEoKe"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['462'] + content-length: ['460'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:06 GMT'] - fastly-ratelimit-remaining: ['503'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:01 GMT'] + fastly-ratelimit-remaining: ['535'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866966.429957,VS0,VE155'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869782.595420,VS0,VE203'] 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/3zRC3y2B3UBRLlyuam6Su8/version/2/settings + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3zRC3y2B3UBRLlyuam6Su8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"VraN5eJuushudRTOKwACS"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:06 GMT'] - fastly-ratelimit-remaining: ['502'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:02 GMT'] + fastly-ratelimit-remaining: ['534'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] - x-timer: ['S1504866967.624652,VS0,VE202'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869782.844439,VS0,VE592'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/version/2/activate + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:06+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:23:01+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['250'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:07 GMT'] - fastly-ratelimit-remaining: ['501'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:23:03 GMT'] + fastly-ratelimit-remaining: ['533'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] - x-timer: ['S1504866967.868280,VS0,VE1105'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869783.530541,VS0,VE1228'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/details + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:07+00:00","deployed":false}],"created_at":"2017-09-08T10:36:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8","version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:23:03+00:00","deployed":false}],"created_at":"2017-09-08T11:22:57+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS","version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"aIu9KsvYipDZs5QvIEoKe"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"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":"aIu9KsvYipDZs5QvIEoKe"}],"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: ['4547'] + content-length: ['4532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:08 GMT'] + date: ['Fri, 08 Sep 2017 11:23:04 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-fra1222-FRA'] - x-timer: ['S1504866968.055024,VS0,VE166'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869784.949368,VS0,VE170'] status: {code: 200, message: OK} - request: body: null @@ -326,84 +327,84 @@ 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":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:36:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false},{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:57+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['613'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:08 GMT'] + date: ['Fri, 08 Sep 2017 11:23:04 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-fra1239-FRA'] - x-timer: ['S1504866968.264032,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869784.161050,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/details + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:07+00:00","deployed":false}],"created_at":"2017-09-08T10:36:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8","version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:23:03+00:00","deployed":false}],"created_at":"2017-09-08T11:22:57+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS","version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"aIu9KsvYipDZs5QvIEoKe"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"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":"aIu9KsvYipDZs5QvIEoKe"}],"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: ['4547'] + content-length: ['4532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:08 GMT'] + date: ['Fri, 08 Sep 2017 11:23:04 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-fra1245-FRA'] - x-timer: ['S1504866968.462912,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869784.354715,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zRC3y2B3UBRLlyuam6Su8/details + uri: https://api.fastly.com/service/VraN5eJuushudRTOKwACS/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":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"created_at":"2017-09-08T10:36:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:36:07+00:00","deployed":false}],"created_at":"2017-09-08T10:36:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:36:02+00:00","id":"3zRC3y2B3UBRLlyuam6Su8","version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:57+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"created_at":"2017-09-08T11:22:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:23:03+00:00","deployed":false}],"created_at":"2017-09-08T11:22:57+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:57+00:00","id":"VraN5eJuushudRTOKwACS","version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zRC3y2B3UBRLlyuam6Su8","staging":false,"updated_at":"2017-09-08T10:36:07+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:36: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\" - 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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"aIu9KsvYipDZs5QvIEoKe"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"VraN5eJuushudRTOKwACS","staging":false,"updated_at":"2017-09-08T11:23:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:58+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\" + 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":"43Qf0JU61e4IyicP2OLk7M"}],"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":"aIu9KsvYipDZs5QvIEoKe"}],"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: ['4547'] + content-length: ['4532'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:36:08 GMT'] + date: ['Fri, 08 Sep 2017 11:23:04 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-fra1231-FRA'] - x-timer: ['S1504866969.633492,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869785.535832,VS0,VE174'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/tearDown b/tests/fixtures/cassettes/tearDown index dd3ee8a..d9d516d 100644 --- a/tests/fixtures/cassettes/tearDown +++ b/tests/fixtures/cassettes/tearDown @@ -6,77 +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":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:46+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:49+00:00","deployed":false},{"testing":false,"number":3,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:32:46+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:32:46+00:00","id":"QeUeO6gixn1SG5i5jh3b2"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:56+00:00","deployed":false},{"testing":false,"number":2,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:21:56+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:56+00:00","id":"7Bhr6FMe0kblYdYdFQTi8k"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['861'] + content-length: ['622'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:57 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1223-FRA'] - x-timer: ['S1504866897.610795,VS0,VE482'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869721.581465,VS0,VE152'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2/details + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/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":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:46+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:49+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:34:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:55+00:00","deployed":false}],"created_at":"2017-09-08T10:32:46+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:32:46+00:00","id":"QeUeO6gixn1SG5i5jh3b2","version":{"testing":false,"number":3,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"updated_at":"2017-09-08T10:34:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:53+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":3,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"updated_at":"2017-09-08T10:34:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:53+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":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:56+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:00+00:00","deployed":false}],"created_at":"2017-09-08T11:21:56+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:56+00:00","id":"7Bhr6FMe0kblYdYdFQTi8k","version":{"testing":false,"number":2,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"updated_at":"2017-09-08T11:22:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:57+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":2,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"updated_at":"2017-09-08T11:22:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:57+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}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3466'] + content-length: ['3229'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:57 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1240-FRA'] - x-timer: ['S1504866897.144108,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869721.788753,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2/version/3/deactivate + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:34:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:55+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:00+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['240'] + content-length: ['241'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:57 GMT'] - fastly-ratelimit-remaining: ['595'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:01 GMT'] + fastly-ratelimit-remaining: ['619'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] - x-timer: ['S1504866897.310517,VS0,VE564'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869721.962458,VS0,VE216'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2 + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -85,15 +86,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:58 GMT'] - fastly-ratelimit-remaining: ['594'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:01 GMT'] + fastly-ratelimit-remaining: ['618'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] - x-timer: ['S1504866898.924422,VS0,VE513'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869721.226884,VS0,VE510'] 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 bb40b8c..19c863a 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert +++ b/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert @@ -6,98 +6,123 @@ 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":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:46+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:49+00:00","deployed":false}],"created_at":"2017-09-08T10:32:46+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:32:46+00:00","id":"QeUeO6gixn1SG5i5jh3b2"}'} + body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load + service ''15DqjG1ON0S28gluYrATvC''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['721'] + content-length: ['117'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:52 GMT'] + date: ['Fri, 08 Sep 2017 11:21:55 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-fra1229-FRA'] + x-timer: ['S1504869716.633689,VS0,VE124'] + status: {code: 404, message: Not Found} +- request: + body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service + response: + body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Jimdo + Fastly Ansible Module Test","publish_key":"6f1ff392e4b17938c0b59b2ef208eae494f9a75e","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:56+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:21:56+00:00","comment":"","updated_at":"2017-09-08T11:21:56+00:00","id":"7Bhr6FMe0kblYdYdFQTi8k"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['538'] + content-type: [application/json] + date: ['Fri, 08 Sep 2017 11:21:56 GMT'] + fastly-ratelimit-remaining: ['625'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] - x-timer: ['S1504866892.845696,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1504869716.806271,VS0,VE496'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2/details + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/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":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:46+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:49+00:00","deployed":false}],"created_at":"2017-09-08T10:32:46+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:32:46+00:00","id":"QeUeO6gixn1SG5i5jh3b2","version":{"testing":false,"number":2,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"updated_at":"2017-09-08T10:32:49+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:32:47+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"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":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:56+00:00","deployed":false}],"created_at":"2017-09-08T11:21:56+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:56+00:00","id":"7Bhr6FMe0kblYdYdFQTi8k","version":{"testing":false,"number":1,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"updated_at":"2017-09-08T11:21:56+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:21:56+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}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2350'] + content-length: ['1077'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:52 GMT'] + date: ['Fri, 08 Sep 2017 11:21: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-fra1246-FRA'] - x-timer: ['S1504866892.362411,VS0,VE446'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869716.468339,VS0,VE498'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2/version + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/version response: - body: {string: !!python/unicode '{"service_id":"QeUeO6gixn1SG5i5jh3b2","number":3}'} + body: {string: !!python/unicode '{"service_id":"7Bhr6FMe0kblYdYdFQTi8k","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['49'] + content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:53 GMT'] - fastly-ratelimit-remaining: ['600'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:57 GMT'] + fastly-ratelimit-remaining: ['624'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866893.848086,VS0,VE507'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869717.014712,VS0,VE164'] 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/QeUeO6gixn1SG5i5jh3b2/version/3/domain + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"QeUeO6gixn1SG5i5jh3b2","version":3,"deleted_at":null,"created_at":"2017-09-08T10:34:53+00:00","updated_at":"2017-09-08T10:34:53+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"7Bhr6FMe0kblYdYdFQTi8k","version":2,"deleted_at":null,"created_at":"2017-09-08T11:21:57+00:00","updated_at":"2017-09-08T11:21:57+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['192'] + content-length: ['193'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:53 GMT'] - fastly-ratelimit-remaining: ['599'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:57 GMT'] + fastly-ratelimit-remaining: ['623'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] - x-timer: ['S1504866893.434738,VS0,VE558'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1504869717.223871,VS0,VE564'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -107,100 +132,100 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2/version/3/backend + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/version/2/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":"QeUeO6gixn1SG5i5jh3b2","version":3,"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-08T10:34:54+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-08T10:34:54+00:00","comment":""}'} + 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":"7Bhr6FMe0kblYdYdFQTi8k","version":2,"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-08T11:21:58+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-08T11:21:58+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['784'] + content-length: ['785'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:54 GMT'] - fastly-ratelimit-remaining: ['598'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:58 GMT'] + fastly-ratelimit-remaining: ['622'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866894.030441,VS0,VE495'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1504869718.833669,VS0,VE539'] 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/QeUeO6gixn1SG5i5jh3b2/version/3/settings + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"QeUeO6gixn1SG5i5jh3b2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"7Bhr6FMe0kblYdYdFQTi8k"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['127'] + content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:54 GMT'] - fastly-ratelimit-remaining: ['597'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:21:58 GMT'] + fastly-ratelimit-remaining: ['621'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] - x-timer: ['S1504866895.572238,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869718.422554,VS0,VE547'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2/version/3/activate + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:34:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:54+00:00","deployed":false,"msg":"Warning: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:58+00:00","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: ['364'] + content-length: ['365'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:56 GMT'] - fastly-ratelimit-remaining: ['596'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:00 GMT'] + fastly-ratelimit-remaining: ['620'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] - x-timer: ['S1504866895.792538,VS0,VE1211'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869719.186492,VS0,VE1089'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/QeUeO6gixn1SG5i5jh3b2/details + uri: https://api.fastly.com/service/7Bhr6FMe0kblYdYdFQTi8k/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":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:46+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:46+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:32:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:32:49+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"created_at":"2017-09-08T10:34:53+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:55+00:00","deployed":false}],"created_at":"2017-09-08T10:32:46+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:32:46+00:00","id":"QeUeO6gixn1SG5i5jh3b2","version":{"testing":false,"number":3,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"updated_at":"2017-09-08T10:34:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:53+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":3,"service_id":"QeUeO6gixn1SG5i5jh3b2","staging":false,"updated_at":"2017-09-08T10:34:55+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34:53+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":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:21:56+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"created_at":"2017-09-08T11:21:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:00+00:00","deployed":false}],"created_at":"2017-09-08T11:21:56+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:21:56+00:00","id":"7Bhr6FMe0kblYdYdFQTi8k","version":{"testing":false,"number":2,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"updated_at":"2017-09-08T11:22:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:57+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":2,"service_id":"7Bhr6FMe0kblYdYdFQTi8k","staging":false,"updated_at":"2017-09-08T11:22:00+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:21:57+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}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3466'] + content-length: ['3229'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:56 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1251-FRA'] - x-timer: ['S1504866896.052605,VS0,VE503'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869720.316175,VS0,VE212'] 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 8a4053d..1209666 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_port_not_required +++ b/tests/fixtures/cassettes/test_fastly_backend_port_not_required @@ -10,19 +10,18 @@ interactions: service ''15DqjG1ON0S28gluYrATvC''-''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: ['Fri, 08 Sep 2017 10:34:58 GMT'] + date: ['Fri, 08 Sep 2017 11:22:02 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-fra1232-FRA'] - x-timer: ['S1504866898.484906,VS0,VE133'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869722.909868,VS0,VE452'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -32,32 +31,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Jimdo - Fastly Ansible Module Test","publish_key":"c93e91c16ae01926e08ba93b5a37c3944b3059d3","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:34:58+00:00","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + Fastly Ansible Module Test","publish_key":"e01efeaa2e0b774df73f408e2f9948bc46089591","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:22:02+00:00","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['538'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:58 GMT'] - fastly-ratelimit-remaining: ['593'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:02 GMT'] + fastly-ratelimit-remaining: ['617'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] - x-timer: ['S1504866899.661285,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869722.412754,VS0,VE557'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":1,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:34:58+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:34:58+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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":1,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:02+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22: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}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +64,64 @@ interactions: connection: [keep-alive] content-length: ['1077'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:59 GMT'] + date: ['Fri, 08 Sep 2017 11:22:03 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-fra1251-FRA'] - x-timer: ['S1504866899.850389,VS0,VE168'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869723.165850,VS0,VE483'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":2}'} + body: {string: !!python/unicode '{"service_id":"7JCSlr3CJmqxuEtdp8YpgG","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:34:59 GMT'] - fastly-ratelimit-remaining: ['592'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:04 GMT'] + fastly-ratelimit-remaining: ['616'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866899.074373,VS0,VE485'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869724.785773,VS0,VE535'] 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/2pCWjydl8lXM0TaNV7zyKi/version/2/domain + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":2,"deleted_at":null,"created_at":"2017-09-08T10:35:00+00:00","updated_at":"2017-09-08T10:35:00+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":2,"deleted_at":null,"created_at":"2017-09-08T11:22:04+00:00","updated_at":"2017-09-08T11:22:04+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['193'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:00 GMT'] - fastly-ratelimit-remaining: ['591'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:04 GMT'] + fastly-ratelimit-remaining: ['615'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866900.655248,VS0,VE572'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869724.374473,VS0,VE551'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -131,25 +130,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/2/backend + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","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-08T10:35: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-08T10:35:00+00:00","comment":""}'} + 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":"7JCSlr3CJmqxuEtdp8YpgG","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-08T11:22:05+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-08T11:22:05+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:00 GMT'] - fastly-ratelimit-remaining: ['590'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:05 GMT'] + fastly-ratelimit-remaining: ['614'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866900.271315,VS0,VE521'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869725.039828,VS0,VE182'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,130 +158,129 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/2/header + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","version":"2","updated_at":"2017-09-08T10:35:01+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:01+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":"7JCSlr3CJmqxuEtdp8YpgG","version":"2","updated_at":"2017-09-08T11:22:05+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:05+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:01 GMT'] - fastly-ratelimit-remaining: ['589'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:05 GMT'] + fastly-ratelimit-remaining: ['613'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866901.042710,VS0,VE534'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869725.262527,VS0,VE167'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "response": "Ok"}' + 302 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/2/response_object + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:01+00:00","content_type":null,"updated_at":"2017-09-08T10:35:01+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:05+00:00","updated_at":"2017-09-08T11:22:05+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:01 GMT'] - fastly-ratelimit-remaining: ['588'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:05 GMT'] + fastly-ratelimit-remaining: ['612'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866902.634565,VS0,VE167'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869725.479899,VS0,VE512'] 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/2pCWjydl8lXM0TaNV7zyKi/version/2/settings + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:02 GMT'] - fastly-ratelimit-remaining: ['587'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:06 GMT'] + fastly-ratelimit-remaining: ['611'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] - x-timer: ['S1504866902.845979,VS0,VE562'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869726.040456,VS0,VE147'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/2/activate + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:01+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:05+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:03 GMT'] - fastly-ratelimit-remaining: ['586'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:07 GMT'] + fastly-ratelimit-remaining: ['610'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] - x-timer: ['S1504866902.450466,VS0,VE1054'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869726.233689,VS0,VE783'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:03+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":2,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:06+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":2,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3931'] + content-length: ['3923'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:03 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1232-FRA'] - x-timer: ['S1504866904.554258,VS0,VE171'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869727.062397,VS0,VE171'] 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 deb9aa1..58a7554 100644 --- a/tests/fixtures/cassettes/test_fastly_domain_comment_not_required +++ b/tests/fixtures/cassettes/test_fastly_domain_comment_not_required @@ -6,76 +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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['622'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:03 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1223-FRA'] - x-timer: ['S1504866904.821984,VS0,VE171'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869727.348125,VS0,VE150'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:03+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":2,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:06+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":2,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3931'] + content-length: ['3923'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:04 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1244-FRA'] - x-timer: ['S1504866904.034394,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869728.547746,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:03+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":2,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:06+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":2,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3931'] + content-length: ['3923'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:04 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1228-FRA'] - x-timer: ['S1504866904.210688,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869728.709070,VS0,VE131'] 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 dfa5b2e..1b6797b 100644 --- a/tests/fixtures/cassettes/test_fastly_header_action_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_action_not_required @@ -6,7 +6,7 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"number":2,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,92 +14,91 @@ interactions: connection: [keep-alive] content-length: ['622'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:04 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1240-FRA'] - x-timer: ['S1504866904.398974,VS0,VE154'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869728.915180,VS0,VE147'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:03+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":2,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:34: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":"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:06+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":2,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:06+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:04+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}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3931'] + content-length: ['3923'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:04 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1226-FRA'] - x-timer: ['S1504866905.598267,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869728.103060,VS0,VE162'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":3}'} + body: {string: !!python/unicode '{"service_id":"7JCSlr3CJmqxuEtdp8YpgG","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:04 GMT'] - fastly-ratelimit-remaining: ['585'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:08 GMT'] + fastly-ratelimit-remaining: ['609'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] - x-timer: ['S1504866905.758483,VS0,VE156'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1504869728.306774,VS0,VE524'] 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/2pCWjydl8lXM0TaNV7zyKi/version/3/domain + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":3,"deleted_at":null,"created_at":"2017-09-08T10:35:05+00:00","updated_at":"2017-09-08T10:35:05+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":3,"deleted_at":null,"created_at":"2017-09-08T11:22:09+00:00","updated_at":"2017-09-08T11:22:09+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['193'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:05 GMT'] - fastly-ratelimit-remaining: ['584'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:09 GMT'] + fastly-ratelimit-remaining: ['608'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866905.956381,VS0,VE524'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1504869729.873057,VS0,VE567'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -108,25 +107,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/3/backend + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","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-08T10:35:06+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-08T10:35:06+00:00","comment":""}'} + 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":"7JCSlr3CJmqxuEtdp8YpgG","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-08T11:22:09+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-08T11:22:09+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:06 GMT'] - fastly-ratelimit-remaining: ['583'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:09 GMT'] + fastly-ratelimit-remaining: ['607'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866906.633566,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869729.491608,VS0,VE177'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -136,130 +135,130 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/3/header + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","version":"3","updated_at":"2017-09-08T10:35:06+00:00","deleted_at":null,"created_at":"2017-09-08T10:35: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":"7JCSlr3CJmqxuEtdp8YpgG","version":"3","updated_at":"2017-09-08T11:22:09+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:09+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:06 GMT'] - fastly-ratelimit-remaining: ['582'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:09 GMT'] + fastly-ratelimit-remaining: ['606'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] - x-timer: ['S1504866906.164680,VS0,VE170'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869730.714931,VS0,VE161'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "response": "Ok"}' + 302 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/3/response_object + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/3/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:06+00:00","content_type":null,"updated_at":"2017-09-08T10:35:06+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:10+00:00","updated_at":"2017-09-08T11:22:10+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:06 GMT'] - fastly-ratelimit-remaining: ['581'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:10 GMT'] + fastly-ratelimit-remaining: ['605'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] - x-timer: ['S1504866906.387379,VS0,VE510'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869730.920957,VS0,VE163'] 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/2pCWjydl8lXM0TaNV7zyKi/version/3/settings + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:07 GMT'] - fastly-ratelimit-remaining: ['580'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:10 GMT'] + fastly-ratelimit-remaining: ['604'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866907.937793,VS0,VE508'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869730.133676,VS0,VE491'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/3/activate + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:06+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:10+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:08 GMT'] - fastly-ratelimit-remaining: ['579'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:11 GMT'] + fastly-ratelimit-remaining: ['603'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1504866907.485923,VS0,VE1046'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869731.674584,VS0,VE785'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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: ['4175'] + content-length: ['4167'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:08 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1233-FRA'] - x-timer: ['S1504866909.771832,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869732.510246,VS0,VE157'] 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 d3996a7..ee0d9d9 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,7 +6,7 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,68 +14,69 @@ interactions: connection: [keep-alive] content-length: ['864'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:09 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1236-FRA'] - x-timer: ['S1504866909.009437,VS0,VE154'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869732.736394,VS0,VE159'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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: ['4175'] + content-length: ['4167'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:09 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1233-FRA'] - x-timer: ['S1504866909.206221,VS0,VE442'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869732.932243,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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: ['4175'] + content-length: ['4167'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:09 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1245-FRA'] - x-timer: ['S1504866910.685031,VS0,VE129'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1504869732.105932,VS0,VE120'] 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 8b94501..e6631bd 100644 --- a/tests/fixtures/cassettes/test_fastly_header_priority_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_priority_not_required @@ -6,7 +6,7 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,68 +14,68 @@ interactions: connection: [keep-alive] content-length: ['864'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:10 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1220-FRA'] - x-timer: ['S1504866910.882855,VS0,VE156'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869732.314589,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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: ['4175'] + content-length: ['4167'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:10 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1221-FRA'] - x-timer: ['S1504866910.083128,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869733.509237,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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: ['4175'] + content-length: ['4167'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:10 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1226-FRA'] - x-timer: ['S1504866910.252078,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1504869733.668180,VS0,VE471'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_response_object_status_not_required b/tests/fixtures/cassettes/test_fastly_response_object_status_not_required deleted file mode 100644 index 832ed8a..0000000 --- a/tests/fixtures/cassettes/test_fastly_response_object_status_not_required +++ /dev/null @@ -1,264 +0,0 @@ -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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['864'] - content-type: [application/json] - date: ['Fri, 08 Sep 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-fra1226-FRA'] - x-timer: ['S1504866910.455092,VS0,VE155'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":3,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:04+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\" - 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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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: ['4175'] - content-type: [application/json] - date: ['Fri, 08 Sep 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-fra1227-FRA'] - x-timer: ['S1504866911.647835,VS0,VE126'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version - response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":4}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['50'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:10 GMT'] - fastly-ratelimit-remaining: ['578'] - fastly-ratelimit-reset: ['1504868400'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866911.819330,VS0,VE158'] - 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/2pCWjydl8lXM0TaNV7zyKi/version/4/domain - response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":4,"deleted_at":null,"created_at":"2017-09-08T10:35:11+00:00","updated_at":"2017-09-08T10:35:11+00:00"}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['193'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:11 GMT'] - fastly-ratelimit-remaining: ['577'] - fastly-ratelimit-reset: ['1504868400'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866911.016453,VS0,VE537'] - 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}' - headers: - Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/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":"2pCWjydl8lXM0TaNV7zyKi","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-08T10:35: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-08T10:35:12+00:00","comment":""}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['726'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:12 GMT'] - fastly-ratelimit-remaining: ['576'] - fastly-ratelimit-reset: ['1504868400'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] - x-timer: ['S1504866912.689720,VS0,VE493'] - 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": "100", "cache_condition": - null, "action": "set", "type": "response", "response_condition": null}' - headers: - Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/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":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"4","updated_at":"2017-09-08T10:35:12+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:12+00:00"}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['423'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:12 GMT'] - fastly-ratelimit-remaining: ['575'] - fastly-ratelimit-reset: ['1504868400'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866912.228512,VS0,VE160'] - status: {code: 200, message: OK} -- request: - body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set - 200 status code", "response": "Ok"}' - headers: - Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/4/response_object - response: - body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"4","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:12+00:00","content_type":null,"updated_at":"2017-09-08T10:35:12+00:00"}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['292'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:12 GMT'] - fastly-ratelimit-remaining: ['574'] - fastly-ratelimit-reset: ['1504868400'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] - x-timer: ['S1504866912.432469,VS0,VE523'] - 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/2pCWjydl8lXM0TaNV7zyKi/version/4/settings - response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['128'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:13 GMT'] - fastly-ratelimit-remaining: ['573'] - fastly-ratelimit-reset: ['1504868400'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866913.076928,VS0,VE186'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: PUT - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/4/activate - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:12+00:00","deployed":false,"msg":null}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['251'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:14 GMT'] - fastly-ratelimit-remaining: ['572'] - fastly-ratelimit-reset: ['1504868400'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866913.308737,VS0,VE942'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":4,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":"","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":"","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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: ['4417'] - content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35: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-fra1245-FRA'] - x-timer: ['S1504866914.294117,VS0,VE178'] - 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 1215668..1acebd6 100644 --- a/tests/fixtures/cassettes/test_service_does_exist +++ b/tests/fixtures/cassettes/test_service_does_exist @@ -6,99 +6,100 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"number":4,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1106'] + content-length: ['864'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:14 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1251-FRA'] - x-timer: ['S1504866915.540386,VS0,VE155'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1504869733.224161,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":4,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":"","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":"","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":null,"status":"200","response":"Ok","name":"Set - 200 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":3,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:08+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\" + 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: ['4167'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:15 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1232-FRA'] - x-timer: ['S1504866915.742786,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869733.417239,VS0,VE124'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":5}'} + body: {string: !!python/unicode '{"service_id":"7JCSlr3CJmqxuEtdp8YpgG","number":4}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:15 GMT'] - fastly-ratelimit-remaining: ['571'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:14 GMT'] + fastly-ratelimit-remaining: ['602'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866915.260990,VS0,VE501'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869734.587725,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/2pCWjydl8lXM0TaNV7zyKi/version/5/domain + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/4/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":5,"deleted_at":null,"created_at":"2017-09-08T10:35:16+00:00","updated_at":"2017-09-08T10:35:16+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":4,"deleted_at":null,"created_at":"2017-09-08T11:22:14+00:00","updated_at":"2017-09-08T11:22:14+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:16 GMT'] - fastly-ratelimit-remaining: ['570'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:14 GMT'] + fastly-ratelimit-remaining: ['601'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] - x-timer: ['S1504866916.875828,VS0,VE540'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869734.106256,VS0,VE206'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -107,25 +108,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/5/backend + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","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-08T10:35:16+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-08T10:35:16+00:00","comment":""}'} + 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":"7JCSlr3CJmqxuEtdp8YpgG","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-08T11:22:14+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-08T11:22:14+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:17 GMT'] - fastly-ratelimit-remaining: ['569'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:14 GMT'] + fastly-ratelimit-remaining: ['600'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] - x-timer: ['S1504866916.497995,VS0,VE503'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869734.356989,VS0,VE522'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -135,130 +136,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/5/header + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","version":"5","updated_at":"2017-09-08T10:35:17+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:17+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":"7JCSlr3CJmqxuEtdp8YpgG","version":"4","updated_at":"2017-09-08T11:22:15+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:15+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:17 GMT'] - fastly-ratelimit-remaining: ['568'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:15 GMT'] + fastly-ratelimit-remaining: ['599'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] - x-timer: ['S1504866917.045912,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869735.947343,VS0,VE530'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "response": "Ok"}' + 302 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/5/response_object + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/4/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"5","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:17+00:00","content_type":null,"updated_at":"2017-09-08T10:35:17+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:15+00:00","updated_at":"2017-09-08T11:22:15+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:17 GMT'] - fastly-ratelimit-remaining: ['567'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:16 GMT'] + fastly-ratelimit-remaining: ['598'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] - x-timer: ['S1504866917.258383,VS0,VE508'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869736.519630,VS0,VE496'] 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/2pCWjydl8lXM0TaNV7zyKi/version/5/settings + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:18 GMT'] - fastly-ratelimit-remaining: ['566'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:16 GMT'] + fastly-ratelimit-remaining: ['597'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866918.966362,VS0,VE231'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869736.056928,VS0,VE543'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/5/activate + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:17+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:15+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:18 GMT'] - fastly-ratelimit-remaining: ['565'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:17 GMT'] + fastly-ratelimit-remaining: ['596'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] - x-timer: ['S1504866918.234263,VS0,VE703'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869737.733287,VS0,VE839'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":5,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":[],"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":[],"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":4,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:13+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:13+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":"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: ['4667'] + content-length: ['4417'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:19 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1233-FRA'] - x-timer: ['S1504866919.033365,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869738.671601,VS0,VE162'] status: {code: 200, message: OK} - request: body: null @@ -267,99 +269,100 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"number":5,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"number":4,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1348'] + content-length: ['1106'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:19 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1223-FRA'] - x-timer: ['S1504866919.232308,VS0,VE493'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869738.878293,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":5,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":[],"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":[],"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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":4,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:13+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:13+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":"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: ['4667'] + content-length: ['4417'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:19 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1225-FRA'] - x-timer: ['S1504866920.841232,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869738.073773,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":6}'} + body: {string: !!python/unicode '{"service_id":"7JCSlr3CJmqxuEtdp8YpgG","number":5}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:20 GMT'] - fastly-ratelimit-remaining: ['564'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:18 GMT'] + fastly-ratelimit-remaining: ['595'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] - x-timer: ['S1504866920.013170,VS0,VE537'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869738.242839,VS0,VE517'] 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/2pCWjydl8lXM0TaNV7zyKi/version/6/domain + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/5/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":6,"deleted_at":null,"created_at":"2017-09-08T10:35:20+00:00","updated_at":"2017-09-08T10:35:20+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":5,"deleted_at":null,"created_at":"2017-09-08T11:22:19+00:00","updated_at":"2017-09-08T11:22:19+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:20 GMT'] - fastly-ratelimit-remaining: ['563'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:19 GMT'] + fastly-ratelimit-remaining: ['594'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] - x-timer: ['S1504866921.679177,VS0,VE205'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869739.821943,VS0,VE535'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -368,25 +371,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/6/backend + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","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-08T10:35: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-08T10:35:21+00:00","comment":""}'} + 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":"7JCSlr3CJmqxuEtdp8YpgG","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-08T11:22: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-08T11:22:19+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:21 GMT'] - fastly-ratelimit-remaining: ['562'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:19 GMT'] + fastly-ratelimit-remaining: ['593'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866921.928372,VS0,VE587'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1504869739.449877,VS0,VE542'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -396,130 +399,129 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/6/header + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"6","updated_at":"2017-09-08T10:35:22+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:22+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":"7JCSlr3CJmqxuEtdp8YpgG","version":"5","updated_at":"2017-09-08T11:22:20+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:20+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:22 GMT'] - fastly-ratelimit-remaining: ['561'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:20 GMT'] + fastly-ratelimit-remaining: ['592'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] - x-timer: ['S1504866922.725316,VS0,VE724'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1504869740.042999,VS0,VE559'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set - 301 status code", "response": "Ok"}' + 301 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/6/response_object + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/5/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"6","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:22+00:00","content_type":null,"updated_at":"2017-09-08T10:35:22+00:00"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":"5","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:20+00:00","updated_at":"2017-09-08T11:22:20+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:22 GMT'] - fastly-ratelimit-remaining: ['560'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:20 GMT'] + fastly-ratelimit-remaining: ['591'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] - x-timer: ['S1504866922.497600,VS0,VE463'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869741.709246,VS0,VE164'] 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/2pCWjydl8lXM0TaNV7zyKi/version/6/settings + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/5/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:23 GMT'] - fastly-ratelimit-remaining: ['559'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:21 GMT'] + fastly-ratelimit-remaining: ['590'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] - x-timer: ['S1504866923.004217,VS0,VE694'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869741.916740,VS0,VE527'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/6/activate + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/5/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:22+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:20+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:24 GMT'] - fastly-ratelimit-remaining: ['558'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:22 GMT'] + fastly-ratelimit-remaining: ['589'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] - x-timer: ['S1504866924.809087,VS0,VE1036'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869742.541802,VS0,VE769'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":6,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":5,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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: ['4909'] + content-length: ['4659'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:25 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1223-FRA'] - x-timer: ['S1504866925.890655,VS0,VE170'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869742.359077,VS0,VE666'] 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 ac9a030..4fa02a9 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,99 +6,99 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"number":6,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"number":5,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1590'] + content-length: ['1348'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:25 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1231-FRA'] - x-timer: ['S1504866925.147415,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869743.090131,VS0,VE185'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":6,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":5,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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: ['4909'] + content-length: ['4659'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:25 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1242-FRA'] - x-timer: ['S1504866925.374852,VS0,VE129'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869743.321963,VS0,VE468'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":7}'} + body: {string: !!python/unicode '{"service_id":"7JCSlr3CJmqxuEtdp8YpgG","number":6}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:26 GMT'] - fastly-ratelimit-remaining: ['557'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:24 GMT'] + fastly-ratelimit-remaining: ['588'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] - x-timer: ['S1504866926.546316,VS0,VE512'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869744.845655,VS0,VE531'] 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/2pCWjydl8lXM0TaNV7zyKi/version/7/domain + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/6/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":7,"deleted_at":null,"created_at":"2017-09-08T10:35:26+00:00","updated_at":"2017-09-08T10:35:26+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":6,"deleted_at":null,"created_at":"2017-09-08T11:22:24+00:00","updated_at":"2017-09-08T11:22:24+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:26 GMT'] - fastly-ratelimit-remaining: ['556'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:24 GMT'] + fastly-ratelimit-remaining: ['587'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] - x-timer: ['S1504866926.103219,VS0,VE209'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869744.419998,VS0,VE542'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -107,25 +107,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/7/backend + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","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-08T10:35:26+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-08T10:35:26+00:00","comment":""}'} + 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":"7JCSlr3CJmqxuEtdp8YpgG","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-08T11:22:25+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-08T11:22:25+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:26 GMT'] - fastly-ratelimit-remaining: ['555'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:25 GMT'] + fastly-ratelimit-remaining: ['586'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] - x-timer: ['S1504866926.362179,VS0,VE183'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869745.000346,VS0,VE551'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -135,106 +135,105 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/7/header + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","version":"7","updated_at":"2017-09-08T10:35:27+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:27+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":"7JCSlr3CJmqxuEtdp8YpgG","version":"6","updated_at":"2017-09-08T11:22:26+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:26+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:27 GMT'] - fastly-ratelimit-remaining: ['554'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:26 GMT'] + fastly-ratelimit-remaining: ['585'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] - x-timer: ['S1504866927.585659,VS0,VE511'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1504869746.610208,VS0,VE503'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "response": "Ok"}' + 302 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/7/response_object + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/6/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"7","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:27+00:00","content_type":null,"updated_at":"2017-09-08T10:35:27+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":"6","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:26+00:00","updated_at":"2017-09-08T11:22:26+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:27 GMT'] - fastly-ratelimit-remaining: ['553'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:26 GMT'] + fastly-ratelimit-remaining: ['584'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866927.141836,VS0,VE468'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869746.234876,VS0,VE516'] 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/2pCWjydl8lXM0TaNV7zyKi/version/7/settings + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/6/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:28 GMT'] - fastly-ratelimit-remaining: ['552'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:27 GMT'] + fastly-ratelimit-remaining: ['583'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] - x-timer: ['S1504866928.779511,VS0,VE533'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869747.862343,VS0,VE192'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":7,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:27+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:25+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":6,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:26+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22:24+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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: ['5154'] + content-length: ['4904'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:28 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1241-FRA'] - x-timer: ['S1504866928.403785,VS0,VE195'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869747.097110,VS0,VE213'] status: {code: 200, message: OK} - request: body: null @@ -243,99 +242,99 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"number":6,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"number":5,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1833'] + content-length: ['1591'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:29 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1220-FRA'] - x-timer: ['S1504866929.655291,VS0,VE521'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869747.354002,VS0,VE152'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":7,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:27+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:25+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":6,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:26+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22:24+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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: ['5154'] + content-length: ['4904'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:29 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1231-FRA'] - x-timer: ['S1504866929.305128,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869748.553715,VS0,VE479'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":8}'} + body: {string: !!python/unicode '{"service_id":"7JCSlr3CJmqxuEtdp8YpgG","number":7}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:30 GMT'] - fastly-ratelimit-remaining: ['551'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:28 GMT'] + fastly-ratelimit-remaining: ['582'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1504866930.548176,VS0,VE529'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869748.074783,VS0,VE162'] 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/2pCWjydl8lXM0TaNV7zyKi/version/8/domain + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/7/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":8,"deleted_at":null,"created_at":"2017-09-08T10:35:30+00:00","updated_at":"2017-09-08T10:35:30+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":7,"deleted_at":null,"created_at":"2017-09-08T11:22:28+00:00","updated_at":"2017-09-08T11:22:28+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:30 GMT'] - fastly-ratelimit-remaining: ['550'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:28 GMT'] + fastly-ratelimit-remaining: ['581'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866930.115178,VS0,VE565'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869748.280351,VS0,VE571'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -344,25 +343,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/8/backend + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","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-08T10:35:31+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-08T10:35:31+00:00","comment":""}'} + 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":"7JCSlr3CJmqxuEtdp8YpgG","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-08T11:22:29+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-08T11:22:29+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:31 GMT'] - fastly-ratelimit-remaining: ['549'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:29 GMT'] + fastly-ratelimit-remaining: ['580'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1504866931.927200,VS0,VE529'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1504869749.163194,VS0,VE180'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -372,104 +371,105 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/8/header + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","version":"8","updated_at":"2017-09-08T10:35:31+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:31+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":"7JCSlr3CJmqxuEtdp8YpgG","version":"7","updated_at":"2017-09-08T11:22:29+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:29+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:32 GMT'] - fastly-ratelimit-remaining: ['548'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:29 GMT'] + fastly-ratelimit-remaining: ['579'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] - x-timer: ['S1504866932.551527,VS0,VE505'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869749.380658,VS0,VE166'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set - 301 status code", "response": "Ok"}' + 301 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/8/response_object + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/7/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"8","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:32+00:00","content_type":null,"updated_at":"2017-09-08T10:35:32+00:00"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":"7","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:29+00:00","updated_at":"2017-09-08T11:22:29+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:32 GMT'] - fastly-ratelimit-remaining: ['547'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:29 GMT'] + fastly-ratelimit-remaining: ['578'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] - x-timer: ['S1504866932.168735,VS0,VE498'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869750.595050,VS0,VE159'] 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/2pCWjydl8lXM0TaNV7zyKi/version/8/settings + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/7/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:32 GMT'] - fastly-ratelimit-remaining: ['546'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:30 GMT'] + fastly-ratelimit-remaining: ['577'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866933.792854,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1504869750.795323,VS0,VE505'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":8,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:32+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:30+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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":7,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:29+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22: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":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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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: ['5397'] + content-length: ['5147'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:33 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1244-FRA'] - x-timer: ['S1504866933.024521,VS0,VE196'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1504869750.351164,VS0,VE543'] 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 4d82884..c6ff51a 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,99 +6,99 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"number":6,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"number":5,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2076'] + content-length: ['1834'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:33 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1240-FRA'] - x-timer: ['S1504866933.306167,VS0,VE170'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869751.976158,VS0,VE151'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":8,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:32+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:30+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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35: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":null,"status":"301","response":"Ok","name":"Set - 301 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":7,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:29+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22: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":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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22: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\" + 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: ['5397'] + content-length: ['5147'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:33 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1246-FRA'] - x-timer: ['S1504866934.516016,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869751.170524,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version response: - body: {string: !!python/unicode '{"service_id":"2pCWjydl8lXM0TaNV7zyKi","number":9}'} + body: {string: !!python/unicode '{"service_id":"7JCSlr3CJmqxuEtdp8YpgG","number":8}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:34 GMT'] - fastly-ratelimit-remaining: ['545'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:31 GMT'] + fastly-ratelimit-remaining: ['576'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1504866934.681609,VS0,VE514'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869751.337005,VS0,VE166'] 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/2pCWjydl8lXM0TaNV7zyKi/version/9/domain + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/8/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":9,"deleted_at":null,"created_at":"2017-09-08T10:35:34+00:00","updated_at":"2017-09-08T10:35:34+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":8,"deleted_at":null,"created_at":"2017-09-08T11:22:31+00:00","updated_at":"2017-09-08T11:22:31+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:34 GMT'] - fastly-ratelimit-remaining: ['544'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:31 GMT'] + fastly-ratelimit-remaining: ['575'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] - x-timer: ['S1504866934.250523,VS0,VE550'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1504869752.547580,VS0,VE212'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -107,25 +107,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/9/backend + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","version":9,"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-08T10:35:34+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-08T10:35:34+00:00","comment":""}'} + 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":"7JCSlr3CJmqxuEtdp8YpgG","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-08T11:22:31+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-08T11:22:31+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:35 GMT'] - fastly-ratelimit-remaining: ['543'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:31 GMT'] + fastly-ratelimit-remaining: ['574'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866935.878786,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1504869752.805742,VS0,VE187'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -135,130 +135,131 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/9/header + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","version":"9","updated_at":"2017-09-08T10:35:35+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:35+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":"7JCSlr3CJmqxuEtdp8YpgG","version":"8","updated_at":"2017-09-08T11:22:32+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:32+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:35 GMT'] - fastly-ratelimit-remaining: ['542'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:32 GMT'] + fastly-ratelimit-remaining: ['573'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1504866935.106069,VS0,VE165'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1504869752.035855,VS0,VE506'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "response": "Ok"}' + 302 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/9/response_object + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/8/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"2pCWjydl8lXM0TaNV7zyKi","version":"9","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:35+00:00","content_type":null,"updated_at":"2017-09-08T10:35:35+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"7JCSlr3CJmqxuEtdp8YpgG","version":"8","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:33+00:00","updated_at":"2017-09-08T11:22:33+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['288'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:35 GMT'] - fastly-ratelimit-remaining: ['541'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:33 GMT'] + fastly-ratelimit-remaining: ['572'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866935.315886,VS0,VE171'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869753.606701,VS0,VE491'] 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/2pCWjydl8lXM0TaNV7zyKi/version/9/settings + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/8/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:35 GMT'] - fastly-ratelimit-remaining: ['540'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:33 GMT'] + fastly-ratelimit-remaining: ['571'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1504866936.528206,VS0,VE190'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869753.233405,VS0,VE523'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/9/activate + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/8/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:35+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:33+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['251'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:36 GMT'] - fastly-ratelimit-remaining: ['539'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:34 GMT'] + fastly-ratelimit-remaining: ['570'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866936.763621,VS0,VE1066'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1504869754.806871,VS0,VE1065'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:37 GMT'] + date: ['Fri, 08 Sep 2017 11:22:35 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-fra1221-FRA'] - x-timer: ['S1504866937.911933,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869755.114220,VS0,VE169'] status: {code: 200, message: OK} - request: body: null @@ -267,74 +268,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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2318'] + content-length: ['2076'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:37 GMT'] + date: ['Fri, 08 Sep 2017 11:22:35 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-fra1223-FRA'] - x-timer: ['S1504866937.430649,VS0,VE519'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1504869755.335960,VS0,VE152'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:38 GMT'] + date: ['Fri, 08 Sep 2017 11:22:35 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-fra1232-FRA'] - x-timer: ['S1504866938.017185,VS0,VE168'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1504869756.532024,VS0,VE129'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:38 GMT'] + date: ['Fri, 08 Sep 2017 11:22:35 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-fra1225-FRA'] - x-timer: ['S1504866938.231970,VS0,VE462'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869756.754599,VS0,VE130'] 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 51c6231..6e16f89 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,77 +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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2318'] + content-length: ['2076'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:39 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1225-FRA'] - x-timer: ['S1504866939.876639,VS0,VE517'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869756.962660,VS0,VE150'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:39 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1232-FRA'] - x-timer: ['S1504866939.439219,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869756.152278,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:39 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1222-FRA'] - x-timer: ['S1504866940.605831,VS0,VE130'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869756.333687,VS0,VE128'] status: {code: 200, message: OK} - request: body: null @@ -85,76 +86,75 @@ 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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2318'] + content-length: ['2076'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:40 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1226-FRA'] - x-timer: ['S1504866940.834391,VS0,VE493'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869757.507074,VS0,VE153'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:40 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1235-FRA'] - x-timer: ['S1504866941.520968,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869757.704384,VS0,VE467'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:40 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1239-FRA'] - x-timer: ['S1504866941.688317,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1504869757.215093,VS0,VE125'] 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 2c6c6b9..4490764 100644 --- a/tests/fixtures/cassettes/test_service_does_not_exist +++ b/tests/fixtures/cassettes/test_service_does_not_exist @@ -6,81 +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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2318'] + content-length: ['2076'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:41 GMT'] + date: ['Fri, 08 Sep 2017 11:22:38 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-fra1223-FRA'] - x-timer: ['S1504866941.877841,VS0,VE161'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869758.221733,VS0,VE154'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/details + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/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":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:58+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:34:58+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:34:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:14+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:15+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:32+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}],"created_at":"2017-09-08T10:34:58+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:34:58+00:00","id":"2pCWjydl8lXM0TaNV7zyKi","version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"updated_at":"2017-09-08T10:35:36+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:34+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:02+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:02+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:17+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:13+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:18+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false},{"testing":false,"locked":false,"number":6,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:24+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:26+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:29+00:00","deployed":false},{"testing":false,"locked":true,"number":8,"active":true,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}],"created_at":"2017-09-08T11:22:02+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:02+00:00","id":"7JCSlr3CJmqxuEtdp8YpgG","version":{"testing":false,"number":8,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"updated_at":"2017-09-08T11:22:34+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:31+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":"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: ['5637'] + content-length: ['5387'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:41 GMT'] + date: ['Fri, 08 Sep 2017 11:22:38 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-fra1243-FRA'] - x-timer: ['S1504866941.081402,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1504869758.425338,VS0,VE491'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi/version/9/deactivate + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG/version/8/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":false,"service_id":"2pCWjydl8lXM0TaNV7zyKi","staging":false,"created_at":"2017-09-08T10:35:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:36+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":8,"active":false,"service_id":"7JCSlr3CJmqxuEtdp8YpgG","staging":false,"created_at":"2017-09-08T11:22:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:34+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:41 GMT'] - fastly-ratelimit-remaining: ['538'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:39 GMT'] + fastly-ratelimit-remaining: ['569'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] - x-timer: ['S1504866941.259596,VS0,VE555'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869759.952193,VS0,VE559'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2pCWjydl8lXM0TaNV7zyKi + uri: https://api.fastly.com/service/7JCSlr3CJmqxuEtdp8YpgG response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,16 +89,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:42 GMT'] - fastly-ratelimit-remaining: ['537'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:40 GMT'] + fastly-ratelimit-remaining: ['568'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] - x-timer: ['S1504866942.941941,VS0,VE214'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869760.579373,VS0,VE557'] status: {code: 200, message: OK} - request: body: null @@ -111,19 +111,18 @@ interactions: service ''15DqjG1ON0S28gluYrATvC''-''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: ['Fri, 08 Sep 2017 10:35:42 GMT'] + date: ['Fri, 08 Sep 2017 11:22:40 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-fra1227-FRA'] - x-timer: ['S1504866942.198098,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1504869760.193747,VS0,VE122'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -133,97 +132,97 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Jimdo - Fastly Ansible Module Test","publish_key":"580c27cc20cda09f93d23231f17f80bcc47225b0","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:42+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:35:42+00:00","comment":"","updated_at":"2017-09-08T10:35:42+00:00","id":"3ck89tlEDwtfxt4S90CE2a"}'} + Fastly Ansible Module Test","publish_key":"8305ed904a2ea45869287cd6d1d53086bddf6bc0","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:40+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:22:40+00:00","comment":"","updated_at":"2017-09-08T11:22:40+00:00","id":"CinKfjogEhUV0zxbIUVw0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['538'] + content-length: ['536'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:42 GMT'] - fastly-ratelimit-remaining: ['536'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:40 GMT'] + fastly-ratelimit-remaining: ['567'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866942.375734,VS0,VE479'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869760.354174,VS0,VE469'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/details + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/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":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:42+00:00","deployed":false}],"created_at":"2017-09-08T10:35:42+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:42+00:00","id":"3ck89tlEDwtfxt4S90CE2a","version":{"testing":false,"number":1,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"updated_at":"2017-09-08T10:35:42+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:42+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":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:40+00:00","deployed":false}],"created_at":"2017-09-08T11:22:40+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:40+00:00","id":"CinKfjogEhUV0zxbIUVw0","version":{"testing":false,"number":1,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"updated_at":"2017-09-08T11:22:40+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22:40+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}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1077'] + content-length: ['1074'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:44 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1235-FRA'] - x-timer: ['S1504866944.032008,VS0,VE524'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1504869761.967286,VS0,VE486'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/version + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/version response: - body: {string: !!python/unicode '{"service_id":"3ck89tlEDwtfxt4S90CE2a","number":2}'} + body: {string: !!python/unicode '{"service_id":"CinKfjogEhUV0zxbIUVw0","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['49'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:44 GMT'] - fastly-ratelimit-remaining: ['535'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:42 GMT'] + fastly-ratelimit-remaining: ['566'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] - x-timer: ['S1504866945.703796,VS0,VE201'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869762.593822,VS0,VE487'] 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/3ck89tlEDwtfxt4S90CE2a/version/2/domain + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"3ck89tlEDwtfxt4S90CE2a","version":2,"deleted_at":null,"created_at":"2017-09-08T10:35:45+00:00","updated_at":"2017-09-08T10:35:45+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"CinKfjogEhUV0zxbIUVw0","version":2,"deleted_at":null,"created_at":"2017-09-08T11:22:42+00:00","updated_at":"2017-09-08T11:22:42+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['197'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:45 GMT'] - fastly-ratelimit-remaining: ['534'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:42 GMT'] + fastly-ratelimit-remaining: ['565'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] - x-timer: ['S1504866945.945338,VS0,VE602'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869762.216689,VS0,VE543'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -232,25 +231,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/version/2/backend + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/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":"3ck89tlEDwtfxt4S90CE2a","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-08T10:35:46+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-08T10:35:46+00:00","comment":""}'} + 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":"CinKfjogEhUV0zxbIUVw0","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-08T11:22:43+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-08T11:22:43+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['725'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:46 GMT'] - fastly-ratelimit-remaining: ['533'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:43 GMT'] + fastly-ratelimit-remaining: ['564'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] - x-timer: ['S1504866946.587250,VS0,VE528'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869763.870106,VS0,VE518'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -260,130 +259,130 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/version/2/header + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/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":"3ck89tlEDwtfxt4S90CE2a","version":"2","updated_at":"2017-09-08T10:35:46+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:46+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":"CinKfjogEhUV0zxbIUVw0","version":"2","updated_at":"2017-09-08T11:22:43+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:43+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['421'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:46 GMT'] - fastly-ratelimit-remaining: ['532'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:43 GMT'] + fastly-ratelimit-remaining: ['563'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866946.159780,VS0,VE512'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1504869763.473409,VS0,VE157'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "response": "Ok"}' + 302 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/version/2/response_object + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"3ck89tlEDwtfxt4S90CE2a","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:47+00:00","content_type":null,"updated_at":"2017-09-08T10:35:47+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"CinKfjogEhUV0zxbIUVw0","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:43+00:00","updated_at":"2017-09-08T11:22:43+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['287'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:47 GMT'] - fastly-ratelimit-remaining: ['531'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:43 GMT'] + fastly-ratelimit-remaining: ['562'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1504866947.788421,VS0,VE517'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869764.675985,VS0,VE192'] 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/3ck89tlEDwtfxt4S90CE2a/version/2/settings + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3ck89tlEDwtfxt4S90CE2a"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"CinKfjogEhUV0zxbIUVw0"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:47 GMT'] - fastly-ratelimit-remaining: ['530'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:44 GMT'] + fastly-ratelimit-remaining: ['561'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1504866947.414471,VS0,VE521'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1504869764.915937,VS0,VE501'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/version/2/activate + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:47+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:43+00:00","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['251'] + content-length: ['250'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:49 GMT'] - fastly-ratelimit-remaining: ['529'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:45 GMT'] + fastly-ratelimit-remaining: ['560'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] - x-timer: ['S1504866948.041814,VS0,VE1106'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1504869765.516499,VS0,VE1074'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/details + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/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":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:42+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:49+00:00","deployed":false}],"created_at":"2017-09-08T10:35:42+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:42+00:00","id":"3ck89tlEDwtfxt4S90CE2a","version":{"testing":false,"number":2,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"updated_at":"2017-09-08T10:35:49+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:44+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"3ck89tlEDwtfxt4S90CE2a","staging":false,"updated_at":"2017-09-08T10:35:49+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:44+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:40+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:45+00:00","deployed":false}],"created_at":"2017-09-08T11:22:40+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:40+00:00","id":"CinKfjogEhUV0zxbIUVw0","version":{"testing":false,"number":2,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"updated_at":"2017-09-08T11:22:45+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:42+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":"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":"CinKfjogEhUV0zxbIUVw0","staging":false,"updated_at":"2017-09-08T11:22:45+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:42+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":"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: ['3941'] + content-length: ['3928'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:49 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1227-FRA'] - x-timer: ['S1504866949.194513,VS0,VE176'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869766.631127,VS0,VE174'] 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 7a70dbe..9cdf977 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,80 +6,82 @@ 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":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:42+00:00","deployed":false},{"testing":false,"number":2,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T10:35:42+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:42+00:00","id":"3ck89tlEDwtfxt4S90CE2a"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:40+00:00","deployed":false},{"testing":false,"number":2,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-08T11:22:40+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:40+00:00","id":"CinKfjogEhUV0zxbIUVw0"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['622'] + content-length: ['619'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:49 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1240-FRA'] - x-timer: ['S1504866949.439968,VS0,VE519'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1504869766.884955,VS0,VE150'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/details + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/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":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:42+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:49+00:00","deployed":false}],"created_at":"2017-09-08T10:35:42+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:42+00:00","id":"3ck89tlEDwtfxt4S90CE2a","version":{"testing":false,"number":2,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"updated_at":"2017-09-08T10:35:49+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:44+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"3ck89tlEDwtfxt4S90CE2a","staging":false,"updated_at":"2017-09-08T10:35:49+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T10:35:44+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"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":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:40+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:45+00:00","deployed":false}],"created_at":"2017-09-08T11:22:40+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:40+00:00","id":"CinKfjogEhUV0zxbIUVw0","version":{"testing":false,"number":2,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"updated_at":"2017-09-08T11:22:45+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:42+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":"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":"CinKfjogEhUV0zxbIUVw0","staging":false,"updated_at":"2017-09-08T11:22:45+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-09-08T11:22:42+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":"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: ['3941'] + content-length: ['3928'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:50 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1235-FRA'] - x-timer: ['S1504866950.000107,VS0,VE431'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1504869766.081565,VS0,VE170'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a/version/2/deactivate + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3ck89tlEDwtfxt4S90CE2a","staging":false,"created_at":"2017-09-08T10:35:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:49+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"CinKfjogEhUV0zxbIUVw0","staging":false,"created_at":"2017-09-08T11:22:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:45+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:50 GMT'] - fastly-ratelimit-remaining: ['528'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:46 GMT'] + fastly-ratelimit-remaining: ['559'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] - x-timer: ['S1504866951.545103,VS0,VE223'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1504869766.288350,VS0,VE557'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3ck89tlEDwtfxt4S90CE2a + uri: https://api.fastly.com/service/CinKfjogEhUV0zxbIUVw0 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -88,16 +90,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:51 GMT'] - fastly-ratelimit-remaining: ['527'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:47 GMT'] + fastly-ratelimit-remaining: ['558'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] - x-timer: ['S1504866951.813250,VS0,VE506'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869767.894956,VS0,VE472'] status: {code: 200, message: OK} - request: body: null @@ -110,19 +112,18 @@ interactions: service ''15DqjG1ON0S28gluYrATvC''-''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: ['Fri, 08 Sep 2017 10:35:51 GMT'] + date: ['Fri, 08 Sep 2017 11:22:47 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-fra1235-FRA'] - x-timer: ['S1504866951.384394,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869767.437436,VS0,VE170'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -132,97 +133,97 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"15DqjG1ON0S28gluYrATvC","name":"Jimdo - Fastly Ansible Module Test","publish_key":"235779baaa162e22f47c75681d780f2c53e07c12","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3n6Mb6lKOdR1pJf14VWixo","staging":false,"created_at":"2017-09-08T10:35:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:52+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T10:35:52+00:00","comment":"","updated_at":"2017-09-08T10:35:52+00:00","id":"3n6Mb6lKOdR1pJf14VWixo"}'} + Fastly Ansible Module Test","publish_key":"0bc2a7b287e2839f1f00f806f94a3698d2e1ba89","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"KcACBnRtPoOgaszTZjR6G","staging":false,"created_at":"2017-09-08T11:22:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:47+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-09-08T11:22:47+00:00","comment":"","updated_at":"2017-09-08T11:22:47+00:00","id":"KcACBnRtPoOgaszTZjR6G"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['538'] + content-length: ['536'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:52 GMT'] - fastly-ratelimit-remaining: ['526'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:47 GMT'] + fastly-ratelimit-remaining: ['557'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] - x-timer: ['S1504866952.564315,VS0,VE502'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1504869768.651427,VS0,VE190'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3n6Mb6lKOdR1pJf14VWixo/details + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/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":"3n6Mb6lKOdR1pJf14VWixo","staging":false,"created_at":"2017-09-08T10:35:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:52+00:00","deployed":false}],"created_at":"2017-09-08T10:35:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:52+00:00","id":"3n6Mb6lKOdR1pJf14VWixo","version":{"testing":false,"number":1,"service_id":"3n6Mb6lKOdR1pJf14VWixo","staging":false,"updated_at":"2017-09-08T10:35:52+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:52+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":"KcACBnRtPoOgaszTZjR6G","staging":false,"created_at":"2017-09-08T11:22:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:47+00:00","deployed":false}],"created_at":"2017-09-08T11:22:47+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:47+00:00","id":"KcACBnRtPoOgaszTZjR6G","version":{"testing":false,"number":1,"service_id":"KcACBnRtPoOgaszTZjR6G","staging":false,"updated_at":"2017-09-08T11:22:47+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22: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}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1077'] + content-length: ['1074'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:52 GMT'] + date: ['Fri, 08 Sep 2017 11:22:48 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-fra1238-FRA'] - x-timer: ['S1504866952.132862,VS0,VE485'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1504869768.888736,VS0,VE544'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3n6Mb6lKOdR1pJf14VWixo/version + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/version response: - body: {string: !!python/unicode '{"service_id":"3n6Mb6lKOdR1pJf14VWixo","number":2}'} + body: {string: !!python/unicode '{"service_id":"KcACBnRtPoOgaszTZjR6G","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['49'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:52 GMT'] - fastly-ratelimit-remaining: ['525'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:49 GMT'] + fastly-ratelimit-remaining: ['556'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] - x-timer: ['S1504866953.670291,VS0,VE208'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1504869768.490554,VS0,VE515'] 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/3n6Mb6lKOdR1pJf14VWixo/version/2/domain + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"3n6Mb6lKOdR1pJf14VWixo","version":2,"deleted_at":null,"created_at":"2017-09-08T10:35:53+00:00","updated_at":"2017-09-08T10:35:53+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"KcACBnRtPoOgaszTZjR6G","version":2,"deleted_at":null,"created_at":"2017-09-08T11:22:49+00:00","updated_at":"2017-09-08T11:22:49+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['198'] + content-length: ['197'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:53 GMT'] - fastly-ratelimit-remaining: ['524'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:49 GMT'] + fastly-ratelimit-remaining: ['555'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1504866953.925502,VS0,VE223'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1504869769.042859,VS0,VE601'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -231,25 +232,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3n6Mb6lKOdR1pJf14VWixo/version/2/backend + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/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":"3n6Mb6lKOdR1pJf14VWixo","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-08T10:35:53+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-08T10:35:53+00:00","comment":""}'} + 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":"KcACBnRtPoOgaszTZjR6G","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-08T11:22:49+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-08T11:22:49+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['726'] + content-length: ['725'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:53 GMT'] - fastly-ratelimit-remaining: ['523'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:49 GMT'] + fastly-ratelimit-remaining: ['554'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] - x-timer: ['S1504866953.191295,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1504869770.738139,VS0,VE175'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -259,103 +260,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3n6Mb6lKOdR1pJf14VWixo/version/2/header + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/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":"3n6Mb6lKOdR1pJf14VWixo","version":"2","updated_at":"2017-09-08T10:35:53+00:00","deleted_at":null,"created_at":"2017-09-08T10:35:53+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":"KcACBnRtPoOgaszTZjR6G","version":"2","updated_at":"2017-09-08T11:22:50+00:00","deleted_at":null,"created_at":"2017-09-08T11:22:50+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['422'] + content-length: ['421'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:53 GMT'] - fastly-ratelimit-remaining: ['522'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:50 GMT'] + fastly-ratelimit-remaining: ['553'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] - x-timer: ['S1504866953.418878,VS0,VE165'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1504869770.961804,VS0,VE508'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "response": "Ok"}' + 302 status code", "content": "", "content_type": "", "response": "Ok"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3n6Mb6lKOdR1pJf14VWixo/version/2/response_object + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"3n6Mb6lKOdR1pJf14VWixo","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-09-08T10:35:54+00:00","content_type":null,"updated_at":"2017-09-08T10:35:54+00:00"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"KcACBnRtPoOgaszTZjR6G","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-09-08T11:22:50+00:00","updated_at":"2017-09-08T11:22:50+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['292'] + content-length: ['287'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:54 GMT'] - fastly-ratelimit-remaining: ['521'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:50 GMT'] + fastly-ratelimit-remaining: ['552'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] - x-timer: ['S1504866954.630305,VS0,VE502'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1504869771.515881,VS0,VE152'] 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/3n6Mb6lKOdR1pJf14VWixo/version/2/settings + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3n6Mb6lKOdR1pJf14VWixo"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"KcACBnRtPoOgaszTZjR6G"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:54 GMT'] - fastly-ratelimit-remaining: ['520'] - fastly-ratelimit-reset: ['1504868400'] + date: ['Fri, 08 Sep 2017 11:22:51 GMT'] + fastly-ratelimit-remaining: ['551'] + fastly-ratelimit-reset: ['1504872000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1504866954.181036,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1504869771.711475,VS0,VE546'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3n6Mb6lKOdR1pJf14VWixo/details + uri: https://api.fastly.com/service/KcACBnRtPoOgaszTZjR6G/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":"3n6Mb6lKOdR1pJf14VWixo","staging":false,"created_at":"2017-09-08T10:35:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:52+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3n6Mb6lKOdR1pJf14VWixo","staging":false,"created_at":"2017-09-08T10:35:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T10:35:54+00:00","deployed":false}],"created_at":"2017-09-08T10:35:52+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T10:35:52+00:00","id":"3n6Mb6lKOdR1pJf14VWixo","version":{"testing":false,"number":2,"service_id":"3n6Mb6lKOdR1pJf14VWixo","staging":false,"updated_at":"2017-09-08T10:35:54+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T10:35:52+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":null,"status":"302","response":"Ok","name":"Set - 302 status code","content":null,"cache_condition":""}],"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":"KcACBnRtPoOgaszTZjR6G","staging":false,"created_at":"2017-09-08T11:22:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:47+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"KcACBnRtPoOgaszTZjR6G","staging":false,"created_at":"2017-09-08T11:22:48+00:00","deleted_at":null,"comment":"","updated_at":"2017-09-08T11:22:50+00:00","deployed":false}],"created_at":"2017-09-08T11:22:47+00:00","customer_id":"15DqjG1ON0S28gluYrATvC","comment":"","updated_at":"2017-09-08T11:22:47+00:00","id":"KcACBnRtPoOgaszTZjR6G","version":{"testing":false,"number":2,"service_id":"KcACBnRtPoOgaszTZjR6G","staging":false,"updated_at":"2017-09-08T11:22:50+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-09-08T11:22:48+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":"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: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2354'] + content-length: ['2346'] content-type: [application/json] - date: ['Fri, 08 Sep 2017 10:35:54 GMT'] + date: ['Fri, 08 Sep 2017 11:22: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-fra1229-FRA'] - x-timer: ['S1504866954.372010,VS0,VE154'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1504869771.309853,VS0,VE165'] status: {code: 200, message: OK} version: 1 diff --git a/tests/test_fastly_response_object.py b/tests/test_fastly_response_object.py new file mode 100644 index 0000000..3b1973a --- /dev/null +++ b/tests/test_fastly_response_object.py @@ -0,0 +1,64 @@ +#!/usr/bin/env python +import os +import unittest +import sys + +from test_common import TestCommon + +sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'library')) +from fastly_service import FastlyConfiguration + +class TestFastlyResponseObject(TestCommon): + + @TestCommon.vcr.use_cassette() + def test_fastly_response_object_defaults(self): + healthcheck_configuration = self.minimal_configuration.copy() + healthcheck_configuration.update({ + 'response_objects': [{ + 'name': 'Set 200 status code', + }] + }) + + configuration = FastlyConfiguration(healthcheck_configuration) + service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service + + self.assertEqual(service.active_version.configuration.response_objects[0].name, 'Set 200 status code') + self.assertEqual(service.active_version.configuration.response_objects[0].status, '200') + self.assertEqual(service.active_version.configuration.response_objects[0].response, 'Ok') + self.assertEqual(service.active_version.configuration, configuration) + + active_version_number = service.active_version.number + service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service + self.assertEqual(service.active_version.number, active_version_number) + + + @TestCommon.vcr.use_cassette() + def test_fastly_response_object_content_content_type(self): + healthcheck_configuration = self.minimal_configuration.copy() + healthcheck_configuration.update({ + 'response_objects': [{ + 'name': 'Set 200 status code', + 'status': 200, + 'response': 'Ok', + 'content': 'Hello from Fastly', + 'content_type': 'text/plain', + }] + }) + + configuration = FastlyConfiguration(healthcheck_configuration) + service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service + + self.assertEqual(service.active_version.configuration.response_objects[0].name, 'Set 200 status code') + self.assertEqual(service.active_version.configuration.response_objects[0].status, '200') + self.assertEqual(service.active_version.configuration.response_objects[0].response, 'Ok') + self.assertEqual(service.active_version.configuration.response_objects[0].content, 'Hello from Fastly') + self.assertEqual(service.active_version.configuration.response_objects[0].content_type, 'text/plain') + self.assertEqual(service.active_version.configuration, configuration) + + active_version_number = service.active_version.number + service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service + self.assertEqual(service.active_version.number, active_version_number) + +if __name__ == '__main__': + unittest.main() + diff --git a/tests/test_fastly_service.py b/tests/test_fastly_service.py index f0f9c42..57bf80f 100644 --- a/tests/test_fastly_service.py +++ b/tests/test_fastly_service.py @@ -358,29 +358,6 @@ def test_fastly_header_action_not_required(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_response_object_status_not_required(self): - configuration = FastlyConfiguration({ - 'domains': [{ - 'name': self.FASTLY_TEST_DOMAIN, - }], - 'backends': [{ - 'name': 'localhost', - 'address': '127.0.0.1' - }], - 'headers': [{ - 'name': 'Set Location header', - 'dst': 'http.Location', - 'type': 'response', - 'src': '"https://u.jimcdn.com" req.url.path', - }], - 'response_objects': [{ - 'name': 'Set 200 status code', - }] - }) - service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service - self.assertEqual(service.active_version.configuration, configuration) - if __name__ == '__main__': unittest.main()