diff --git a/README.md b/README.md index e295796..d6e2a4a 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,18 @@ $ ansible-galaxy install Jimdo.fastly | response | false | string | Ok | | status | false | integer | 200 | +### VCL Snippets + +[Fastly documentation](https://docs.fastly.com/api/config#snippet) + +| Field | Required | Type | Default | +|:----------|:---------|:----------------------------------------|:--------| +| name | true | string | | +| dynamic | false | integer | 0 | +| type | false | string | "init" | +| content | true | string | | +| priority | false | integer | 100 | + ### Settings [Fastly documentation](https://docs.fastly.com/api/config#settings) diff --git a/library/fastly_service.py b/library/fastly_service.py index cd32131..8feddc9 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -46,6 +46,10 @@ required: false description: - List of response objects + vcl_snippets: + required: false + description: + - List of VCL snippets settings: required: false description: @@ -76,6 +80,17 @@ src: http://test3.example.net req.url.path ignore_if_set: 0 priority: 10 + vcl_snippets + - name: Deliver stale content + dynamic: 0 + type: deliver + content: > + if (resp.status >= 500 && resp.status < 600) { + if (stale.exists) { + restart; + } + } + priority: 110 response_objects: - name: Set 301 status code status: 301 @@ -327,6 +342,24 @@ def __init__(self, config, validate_choices): self.status = self.read_config(config, validate_choices, 'status') +class FastlyVclSnippet(FastlyObject): + schema = { + 'name': dict(required=True, type='str', default=None), + 'dynamic': dict(required=False, type='int', default=0), + 'type': dict(required=False, type='str', default='init'), + 'content': dict(required=True, type='str', default=None), + 'priority': dict(required=False, type='int', default=100) + } + sort_key = lambda f: f.name + + def __init__(self, config, validate_choices): + self.name = self.read_config(config, validate_choices, 'name') + self.dynamic = self.read_config(config, validate_choices, 'dynamic') + self.type = self.read_config(config, validate_choices, 'type') + self.content = self.read_config(config, validate_choices, 'content') + self.priority = self.read_config(config, validate_choices, 'priority') + + class FastlySettings(FastlyObject): schema = { 'general.default_ttl': dict(required=False, type='int', default=3600) @@ -350,6 +383,7 @@ def __init__(self, configuration, validate_choices = True): self.gzips = [] self.headers = [] self.response_objects = [] + self.snippets = [] self.settings = FastlySettings(dict(), validate_choices) if 'domains' in configuration and configuration['domains'] is not None: @@ -380,6 +414,10 @@ def __init__(self, configuration, validate_choices = True): for response_object in configuration['response_objects']: self.response_objects.append(FastlyResponseObject(response_object, validate_choices)) + if 'snippets' in configuration and configuration['snippets'] is not None: + for snippet in configuration['snippets']: + self.snippets.append(FastlyVclSnippet(snippet, validate_choices)) + if 'settings' in configuration and configuration['settings'] is not None: self.settings = FastlySettings(configuration['settings'], validate_choices) @@ -391,6 +429,7 @@ def __eq__(self, other): and sorted(self.gzips, key=FastlyGzip.sort_key) == sorted(other.gzips, key=FastlyGzip.sort_key) \ and sorted(self.headers, key=FastlyHeader.sort_key) == sorted(other.headers, key=FastlyHeader.sort_key) \ and sorted(self.response_objects, key=FastlyResponseObject.sort_key) == sorted(other.response_objects, key=FastlyResponseObject.sort_key) \ + and sorted(self.snippets, key=FastlyVclSnippet.sort_key) == sorted(other.snippets, key=FastlyVclSnippet.sort_key) \ and self.settings == other.settings def __ne__(self, other): @@ -561,6 +600,15 @@ def create_response_object(self, service_id, version, response_object): raise Exception("Error creating response object for for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def create_vcl_snippet(self, service_id, version, vcl_snippet): + response = self._request('/service/%s/version/%s/snippet' % (service_id, version), 'POST', vcl_snippet) + + if response.status == 200: + return response.payload + else: + raise Exception("Error creating VCL snippet '%s' for service %s, version %s (%s)" % (vcl_snippet['name'], + service_id, version, response.payload['detail'])) + def create_settings(self, service_id, version, settings): response = self._request('/service/%s/version/%s/settings' % (service_id, version), 'PUT', settings) if response.status == 200: @@ -633,6 +681,9 @@ def deploy_version_with_configuration(self, service_id, configuration, activate_ for response_object in configuration.response_objects: self.client.create_response_object(service_id, version_number, response_object) + for vcl_snippet in configuration.snippets: + self.client.create_vcl_snippet(service_id, version_number, vcl_snippet) + if configuration.settings: self.client.create_settings(service_id, version_number, configuration.settings) @@ -670,6 +721,7 @@ def __init__(self): gzips=dict(default=None, required=False, type='list'), headers=dict(default=None, required=False, type='list'), response_objects=dict(default=None, required=False, type='list'), + vcl_snippets=dict(default=None, required=False, type='list'), settings=dict(default=None, required=False, type='dict'), ), supports_check_mode=False @@ -694,6 +746,7 @@ def configuration(self): 'gzips': self.module.params['gzips'], 'headers': self.module.params['headers'], 'response_objects': self.module.params['response_objects'], + 'snippets': self.module.params['vcl_snippets'], 'settings': self.module.params['settings'] }) except FastlyValidationError as err: diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml index 34fbad5..9e17e40 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false},{"testing":false,"number":2,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:29:59+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:55:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false},{"testing":false,"number":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['1342'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:07 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-fra1224-FRA'] - x-timer: ['S1500463807.910718,VS0,VE478'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791039.532230,VS0,VE158'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/details + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:30:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:05+00:00","deployed":false}],"created_at":"2017-07-19T11:29:59+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg","version":{"testing":false,"number":2,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:55:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-15T09:57:12+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM","version":{"testing":false,"number":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -40,48 +40,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4119'] + content-length: ['4845'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:07 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-fra1231-FRA'] - x-timer: ['S1500463807.448077,VS0,VE205'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791039.741924,VS0,VE125'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version/2/deactivate + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:30:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:05+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-15T09:57:12+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:07 GMT'] - fastly-ratelimit-remaining: ['694'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:19 GMT'] + fastly-ratelimit-remaining: ['991'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463808.723168,VS0,VE258'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791039.914235,VS0,VE544'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:09 GMT'] - fastly-ratelimit-remaining: ['693'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:20 GMT'] + fastly-ratelimit-remaining: ['990'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463809.655601,VS0,VE496'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791040.558980,VS0,VE514'] 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 88ee614..7e04848 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml @@ -6,123 +6,106 @@ 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 ''31RPDMBpiruA1yfGA2djLm''-''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":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"number":4,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['111'] + content-length: ['1100'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:29:59 GMT'] - status: [404 Not Found] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1221-FRA'] - x-timer: ['S1500463799.856722,VS0,VE469'] - 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":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"8d94b8c95bb7199231ac691d2fb08bbb08de6d8a","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-07-19T11:29:59+00:00","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg"}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['532'] - content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:29:59 GMT'] - fastly-ratelimit-remaining: ['703'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1233-FRA'] - x-timer: ['S1500463799.392517,VS0,VE510'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791031.363703,VS0,VE478'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/details + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false}],"created_at":"2017-07-19T11:29:59+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg","version":{"testing":false,"number":1,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:29:59+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:29:59+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":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:55:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM","version":{"testing":false,"number":4,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-11T21:55:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-11T21:55: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"Handle + 503 errors","content":"\n if (obj.status \u003e= 500 \u0026\u0026 + obj.status \u003c 600) {\n if (stale.exists) {\n return(deliver_stale);\n }\n\n synthetic + {\"\u003c!DOCTYPE html\u003e\u003chtml\u003eSorry. Coming back soon!.\u003c/html\u003e\"};\n return(deliver);\n }\n ","dynamic":"0","type":"error","id":"5kf6CGYqoQuoSi2kTANVCm"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-11T21:55:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-11T21:55: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"Handle + 503 errors","content":"\n if (obj.status \u003e= 500 \u0026\u0026 + obj.status \u003c 600) {\n if (stale.exists) {\n return(deliver_stale);\n }\n\n synthetic + {\"\u003c!DOCTYPE html\u003e\u003chtml\u003eSorry. Coming back soon!.\u003c/html\u003e\"};\n return(deliver);\n }\n ","dynamic":"0","type":"error","id":"5kf6CGYqoQuoSi2kTANVCm"}],"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: ['5331'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:00 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1242-FRA'] - x-timer: ['S1500463800.958980,VS0,VE570'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791032.880703,VS0,VE457'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version response: - body: {string: !!python/unicode '{"service_id":"4fQRV22wi5eS4BaodeS5Cg","number":2}'} + body: {string: !!python/unicode '{"service_id":"5S2BmW6VzRlPX3OycagQBM","number":5}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:01 GMT'] - fastly-ratelimit-remaining: ['702'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:12 GMT'] + fastly-ratelimit-remaining: ['999'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463801.602721,VS0,VE498'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791032.438479,VS0,VE495'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version/2/domain + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"4fQRV22wi5eS4BaodeS5Cg","version":2,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","updated_at":"2017-07-19T11:30:01+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"5S2BmW6VzRlPX3OycagQBM","version":5,"deleted_at":null,"created_at":"2017-08-15T09:57:13+00:00","updated_at":"2017-08-15T09:57:13+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:01 GMT'] - fastly-ratelimit-remaining: ['701'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:13 GMT'] + fastly-ratelimit-remaining: ['998'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463801.157530,VS0,VE623'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791033.980394,VS0,VE523'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -131,25 +114,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version/2/backend + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"4fQRV22wi5eS4BaodeS5Cg","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-07-19T11:30:02+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:30:02+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5S2BmW6VzRlPX3OycagQBM","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-08-15T09:57: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:57:14+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:02 GMT'] - fastly-ratelimit-remaining: ['700'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:14 GMT'] + fastly-ratelimit-remaining: ['997'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1222-FRA'] - x-timer: ['S1500463802.967975,VS0,VE647'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1502791034.716719,VS0,VE538'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 10, "name": "cache-settings-config-name", @@ -157,25 +140,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version/2/cache_settings + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"4fQRV22wi5eS4BaodeS5Cg","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-07-19T11:30:03+00:00","updated_at":"2017-07-19T11:30:03+00:00"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"5S2BmW6VzRlPX3OycagQBM","version":"5","ttl":null,"deleted_at":null,"created_at":"2017-08-15T09:57:14+00:00","updated_at":"2017-08-15T09:57:14+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['250'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:03 GMT'] - fastly-ratelimit-remaining: ['699'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:14 GMT'] + fastly-ratelimit-remaining: ['996'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463803.802565,VS0,VE495'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791034.337618,VS0,VE474'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -185,26 +168,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version/2/header + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"4fQRV22wi5eS4BaodeS5Cg","version":"2","updated_at":"2017-07-19T11:30:03+00:00","deleted_at":null,"created_at":"2017-07-19T11:30:03+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5S2BmW6VzRlPX3OycagQBM","version":"5","updated_at":"2017-08-15T09:57:15+00:00","deleted_at":null,"created_at":"2017-08-15T09:57:15+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:03 GMT'] - fastly-ratelimit-remaining: ['698'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:15 GMT'] + fastly-ratelimit-remaining: ['995'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463803.365138,VS0,VE197'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791035.910809,VS0,VE517'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -212,87 +195,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version/2/response_object + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"4fQRV22wi5eS4BaodeS5Cg","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:30:04+00:00","content_type":null,"updated_at":"2017-07-19T11:30:04+00:00"}'} + 200 status code","response":"Ok","service_id":"5S2BmW6VzRlPX3OycagQBM","version":"5","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:57:15+00:00","content_type":null,"updated_at":"2017-08-15T09:57:15+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:04 GMT'] - fastly-ratelimit-remaining: ['697'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:16 GMT'] + fastly-ratelimit-remaining: ['994'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463804.624902,VS0,VE566'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1502791036.592678,VS0,VE458'] 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/4fQRV22wi5eS4BaodeS5Cg/version/2/settings + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4fQRV22wi5eS4BaodeS5Cg"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"5S2BmW6VzRlPX3OycagQBM"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:04 GMT'] - fastly-ratelimit-remaining: ['696'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:16 GMT'] + fastly-ratelimit-remaining: ['993'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463804.270947,VS0,VE598'] + x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] + x-timer: ['S1502791036.098365,VS0,VE483'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/version/2/activate + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/version/5/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:30:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:04+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-15T09:57:12+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57: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: ['Wed, 19 Jul 2017 11:30:05 GMT'] - fastly-ratelimit-remaining: ['695'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:17 GMT'] + fastly-ratelimit-remaining: ['992'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463805.920816,VS0,VE903'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791037.640186,VS0,VE955'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/details + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:30:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:05+00:00","deployed":false}],"created_at":"2017-07-19T11:29:59+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg","version":{"testing":false,"number":2,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:55:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-15T09:57:12+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM","version":{"testing":false,"number":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -300,16 +283,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4119'] + content-length: ['4845'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:06 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-fra1246-FRA'] - x-timer: ['S1500463806.897992,VS0,VE233'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1502791038.642096,VS0,VE207'] status: {code: 200, message: OK} - request: body: null @@ -318,33 +301,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false},{"testing":false,"number":2,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:29:59+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:55:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false},{"testing":false,"number":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['616'] + content-length: ['1342'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:06 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1234-FRA'] - x-timer: ['S1500463806.190521,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1502791038.894981,VS0,VE162'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/details + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:30:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:05+00:00","deployed":false}],"created_at":"2017-07-19T11:29:59+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg","version":{"testing":false,"number":2,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:55:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-15T09:57:12+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM","version":{"testing":false,"number":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -352,27 +335,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4119'] + content-length: ['4845'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:06 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-fra1230-FRA'] - x-timer: ['S1500463806.453675,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791038.097774,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4fQRV22wi5eS4BaodeS5Cg/details + uri: https://api.fastly.com/service/5S2BmW6VzRlPX3OycagQBM/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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:29:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:29:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"created_at":"2017-07-19T11:30:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:05+00:00","deployed":false}],"created_at":"2017-07-19T11:29:59+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:29:59+00:00","id":"4fQRV22wi5eS4BaodeS5Cg","version":{"testing":false,"number":2,"service_id":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:02+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:54:57+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:55:08+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-11T21:55:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"created_at":"2017-08-15T09:57:12+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:17+00:00","deployed":false}],"created_at":"2017-08-11T21:54:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:50+00:00","id":"5S2BmW6VzRlPX3OycagQBM","version":{"testing":false,"number":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4fQRV22wi5eS4BaodeS5Cg","staging":false,"updated_at":"2017-07-19T11:30:05+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":5,"service_id":"5S2BmW6VzRlPX3OycagQBM","staging":false,"updated_at":"2017-08-15T09:57:17+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:12+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -380,15 +363,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4119'] + content-length: ['4845'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:06 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-fra1243-FRA'] - x-timer: ['S1500463807.646800,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791038.283574,VS0,VE122'] 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 c63f03f..749e4ab 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 @@ -7,7 +7,7 @@ interactions: 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 ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} + service ''5zLQhRXD9EpYQjnj0fA6e9''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:09 GMT'] + date: ['Tue, 15 Aug 2017 09:57:20 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-fra1251-FRA'] - x-timer: ['S1500463809.232878,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791040.144497,VS0,VE132'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,33 +31,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"3cdc2543d3da0947717757349947236f0df65d60","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-07-19T11:30:09+00:00","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"customer_id":"5zLQhRXD9EpYQjnj0fA6e9","name":"Fastly + Ansible Module Test","publish_key":"2fe5eabb333ed135d9d00f271574b1c7cbf2f999","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-08-15T09:57:20+00:00","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['532'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:09 GMT'] - fastly-ratelimit-remaining: ['692'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:20 GMT'] + fastly-ratelimit-remaining: ['989'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1234-FRA'] - x-timer: ['S1500463809.458032,VS0,VE178'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791040.324107,VS0,VE495'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":1,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:09+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:30: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}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":1,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:20+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:57: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}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +65,64 @@ interactions: connection: [keep-alive] content-length: ['1071'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:10 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1235-FRA'] - x-timer: ['S1500463810.703496,VS0,VE486'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791041.922956,VS0,VE213'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version response: - body: {string: !!python/unicode '{"service_id":"4qM21Kz00uFPCcFSJ2wrsE","number":2}'} + body: {string: !!python/unicode '{"service_id":"10Nx19lsCgLyNEtSVomzTi","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:10 GMT'] - fastly-ratelimit-remaining: ['691'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:21 GMT'] + fastly-ratelimit-remaining: ['988'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1251-FRA'] - x-timer: ['S1500463810.248734,VS0,VE551'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1502791041.177537,VS0,VE791'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/2/domain + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":2,"deleted_at":null,"created_at":"2017-07-19T11:30:11+00:00","updated_at":"2017-07-19T11:30:11+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"10Nx19lsCgLyNEtSVomzTi","version":2,"deleted_at":null,"created_at":"2017-08-15T09:57:22+00:00","updated_at":"2017-08-15T09:57:22+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:11 GMT'] - fastly-ratelimit-remaining: ['690'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:22 GMT'] + fastly-ratelimit-remaining: ['987'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1234-FRA'] - x-timer: ['S1500463811.950762,VS0,VE234'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1502791042.015087,VS0,VE510'] 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/4qM21Kz00uFPCcFSJ2wrsE/version/2/backend + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","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-07-19T11:30:11+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:30:11+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"10Nx19lsCgLyNEtSVomzTi","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-08-15T09:57: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:57:22+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:11 GMT'] - fastly-ratelimit-remaining: ['689'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:22 GMT'] + fastly-ratelimit-remaining: ['986'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463811.252359,VS0,VE516'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1502791043.572751,VS0,VE204'] 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/4qM21Kz00uFPCcFSJ2wrsE/version/2/cache_settings + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-07-19T11:30:12+00:00","updated_at":"2017-07-19T11:30:12+00:00"}'} + body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"10Nx19lsCgLyNEtSVomzTi","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-08-15T09:57:23+00:00","updated_at":"2017-08-15T09:57:23+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['252'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:12 GMT'] - fastly-ratelimit-remaining: ['688'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:23 GMT'] + fastly-ratelimit-remaining: ['985'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1230-FRA'] - x-timer: ['S1500463812.898131,VS0,VE504'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1502791043.831793,VS0,VE523'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -185,26 +185,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/2/header + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","version":"2","updated_at":"2017-07-19T11:30:12+00:00","deleted_at":null,"created_at":"2017-07-19T11:30:12+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":"10Nx19lsCgLyNEtSVomzTi","version":"2","updated_at":"2017-08-15T09:57:23+00:00","deleted_at":null,"created_at":"2017-08-15T09:57:23+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:12 GMT'] - fastly-ratelimit-remaining: ['687'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:24 GMT'] + fastly-ratelimit-remaining: ['984'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463812.464046,VS0,VE191'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791044.534212,VS0,VE480'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -212,87 +212,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/2/response_object + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:30:12+00:00","content_type":null,"updated_at":"2017-07-19T11:30:12+00:00"}'} + 200 status code","response":"Ok","service_id":"10Nx19lsCgLyNEtSVomzTi","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:57:24+00:00","content_type":null,"updated_at":"2017-08-15T09:57:24+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:12 GMT'] - fastly-ratelimit-remaining: ['686'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:24 GMT'] + fastly-ratelimit-remaining: ['983'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463813.714923,VS0,VE163'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1502791044.062675,VS0,VE584'] 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/4qM21Kz00uFPCcFSJ2wrsE/version/2/settings + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:13 GMT'] - fastly-ratelimit-remaining: ['685'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:25 GMT'] + fastly-ratelimit-remaining: ['982'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1246-FRA'] - x-timer: ['S1500463813.943357,VS0,VE538'] + x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] + x-timer: ['S1502791045.695914,VS0,VE516'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/2/activate + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:12+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:24+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: ['Wed, 19 Jul 2017 11:30:14 GMT'] - fastly-ratelimit-remaining: ['684'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:26 GMT'] + fastly-ratelimit-remaining: ['981'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463814.540488,VS0,VE871'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791045.258638,VS0,VE993'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:14+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":2,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:26+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":2,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -302,14 +302,14 @@ interactions: connection: [keep-alive] content-length: ['4123'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:14 GMT'] + date: ['Tue, 15 Aug 2017 09:57:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1230-FRA'] - x-timer: ['S1500463814.490130,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791046.351530,VS0,VE167'] 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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"number":2,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"number":2,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -326,25 +326,25 @@ interactions: connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:14 GMT'] + date: ['Tue, 15 Aug 2017 09:57:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1244-FRA'] - x-timer: ['S1500463815.700587,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791047.590404,VS0,VE163'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:14+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":2,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:26+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":2,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -354,40 +354,41 @@ interactions: connection: [keep-alive] content-length: ['4123'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:15 GMT'] + date: ['Tue, 15 Aug 2017 09:57:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1247-FRA'] - x-timer: ['S1500463815.915387,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1502791047.793487,VS0,VE129'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:14+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":2,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:26+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":2,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4123'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:15 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1230-FRA'] - x-timer: ['S1500463815.111123,VS0,VE147'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1502791047.973938,VS0,VE168'] 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 eec4067..b080a28 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,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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"number":2,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"number":2,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,25 +14,25 @@ interactions: connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:15 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1246-FRA'] - x-timer: ['S1500463815.498532,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1502791047.302027,VS0,VE156'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:14+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":2,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:26+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":2,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:14+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:21+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -42,64 +42,64 @@ interactions: connection: [keep-alive] content-length: ['4123'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:15 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-fra1248-FRA'] - x-timer: ['S1500463816.699956,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1502791048.504310,VS0,VE172'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version response: - body: {string: !!python/unicode '{"service_id":"4qM21Kz00uFPCcFSJ2wrsE","number":3}'} + body: {string: !!python/unicode '{"service_id":"10Nx19lsCgLyNEtSVomzTi","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:16 GMT'] - fastly-ratelimit-remaining: ['683'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:27 GMT'] + fastly-ratelimit-remaining: ['980'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463816.887370,VS0,VE493'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1502791048.724562,VS0,VE163'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/3/domain + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":3,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","updated_at":"2017-07-19T11:30:16+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"10Nx19lsCgLyNEtSVomzTi","version":3,"deleted_at":null,"created_at":"2017-08-15T09:57:28+00:00","updated_at":"2017-08-15T09:57:28+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:16 GMT'] - fastly-ratelimit-remaining: ['682'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:28 GMT'] + fastly-ratelimit-remaining: ['979'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463816.453458,VS0,VE530'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791048.943221,VS0,VE608'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -108,25 +108,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/3/backend + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","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-07-19T11:30:17+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:30:17+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"10Nx19lsCgLyNEtSVomzTi","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-08-15T09:57: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:57:29+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:17 GMT'] - fastly-ratelimit-remaining: ['681'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:29 GMT'] + fastly-ratelimit-remaining: ['978'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463817.222504,VS0,VE172'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1502791049.594030,VS0,VE510'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 0, "name": "cache-settings-config-name", @@ -134,25 +134,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/3/cache_settings + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/3/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":"3","ttl":null,"deleted_at":null,"created_at":"2017-07-19T11:30:17+00:00","updated_at":"2017-07-19T11:30:17+00:00"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"10Nx19lsCgLyNEtSVomzTi","version":"3","ttl":null,"deleted_at":null,"created_at":"2017-08-15T09:57:29+00:00","updated_at":"2017-08-15T09:57:29+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['249'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:17 GMT'] - fastly-ratelimit-remaining: ['680'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:29 GMT'] + fastly-ratelimit-remaining: ['977'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463817.451300,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1502791049.169336,VS0,VE532'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -162,26 +162,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/3/header + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","version":"3","updated_at":"2017-07-19T11:30:18+00:00","deleted_at":null,"created_at":"2017-07-19T11:30:18+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"10Nx19lsCgLyNEtSVomzTi","version":"3","updated_at":"2017-08-15T09:57:30+00:00","deleted_at":null,"created_at":"2017-08-15T09:57:30+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:18 GMT'] - fastly-ratelimit-remaining: ['679'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:30 GMT'] + fastly-ratelimit-remaining: ['976'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1236-FRA'] - x-timer: ['S1500463818.684256,VS0,VE483'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791050.763632,VS0,VE527'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -189,104 +189,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/3/response_object + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:30:18+00:00","content_type":null,"updated_at":"2017-07-19T11:30:18+00:00"}'} + 200 status code","response":"Ok","service_id":"10Nx19lsCgLyNEtSVomzTi","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:57:30+00:00","content_type":null,"updated_at":"2017-08-15T09:57:30+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:18 GMT'] - fastly-ratelimit-remaining: ['678'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:30 GMT'] + fastly-ratelimit-remaining: ['975'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1226-FRA'] - x-timer: ['S1500463818.231834,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1502791050.337307,VS0,VE450'] 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/4qM21Kz00uFPCcFSJ2wrsE/version/3/settings + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:18 GMT'] - fastly-ratelimit-remaining: ['677'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:31 GMT'] + fastly-ratelimit-remaining: ['974'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1245-FRA'] - x-timer: ['S1500463818.452039,VS0,VE532'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1502791051.834187,VS0,VE194'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/3/activate + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:18+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:30+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: ['Wed, 19 Jul 2017 11:30:19 GMT'] - fastly-ratelimit-remaining: ['676'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:32 GMT'] + fastly-ratelimit-remaining: ['973'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1249-FRA'] - x-timer: ['S1500463819.054877,VS0,VE802'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791051.075062,VS0,VE970'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":3,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":3,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4359'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:20 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1229-FRA'] - x-timer: ['S1500463820.977660,VS0,VE184'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1502791052.165783,VS0,VE486'] status: {code: 200, message: OK} - request: body: null @@ -295,60 +294,60 @@ 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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"number":3,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"number":3,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['858'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:20 GMT'] + date: ['Tue, 15 Aug 2017 09:57:33 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] - x-timer: ['S1500463820.228854,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791053.703943,VS0,VE493'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":3,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":3,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4359'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:20 GMT'] + date: ['Tue, 15 Aug 2017 09:57:33 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] - x-timer: ['S1500463821.785463,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791053.352332,VS0,VE172'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":3,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":3,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -358,13 +357,13 @@ interactions: connection: [keep-alive] content-length: ['4359'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:21 GMT'] + date: ['Tue, 15 Aug 2017 09:57:33 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] - x-timer: ['S1500463821.984801,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791054.566484,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 644b8a6..02236ea 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:26+00:00","deployed":false},{"testing":false,"number":4,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:38+00:00","deployed":false},{"testing":false,"number":4,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,26 +14,26 @@ interactions: connection: [keep-alive] content-length: ['1100'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:26 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1229-FRA'] - x-timer: ['S1500463827.780204,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791059.957797,VS0,VE161'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:26+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:26+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":4,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:38+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:38+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":4,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.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}}}'} @@ -44,46 +44,46 @@ interactions: connection: [keep-alive] content-length: ['4641'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:27 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1250-FRA'] - x-timer: ['S1500463827.996310,VS0,VE158'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791059.172799,VS0,VE133'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/4/deactivate + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/4/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:26+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:38+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:27 GMT'] - fastly-ratelimit-remaining: ['667'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:39 GMT'] + fastly-ratelimit-remaining: ['964'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1234-FRA'] - x-timer: ['S1500463827.223210,VS0,VE595'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791059.352839,VS0,VE547'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -92,15 +92,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:28 GMT'] - fastly-ratelimit-remaining: ['666'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:40 GMT'] + fastly-ratelimit-remaining: ['963'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1229-FRA'] - x-timer: ['S1500463828.887368,VS0,VE580'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791060.940911,VS0,VE221'] 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 f33030e..9f4043f 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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"number":3,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"number":3,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,25 +14,25 @@ interactions: connection: [keep-alive] content-length: ['858'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:21 GMT'] + date: ['Tue, 15 Aug 2017 09:57:34 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1241-FRA'] - x-timer: ['S1500463821.345858,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1502791054.854398,VS0,VE166'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":3,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":3,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:19+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:16+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:31+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:27+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -42,64 +42,64 @@ interactions: connection: [keep-alive] content-length: ['4359'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:21 GMT'] + date: ['Tue, 15 Aug 2017 09:57:34 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1240-FRA'] - x-timer: ['S1500463822.569486,VS0,VE116'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791054.066162,VS0,VE131'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version response: - body: {string: !!python/unicode '{"service_id":"4qM21Kz00uFPCcFSJ2wrsE","number":4}'} + body: {string: !!python/unicode '{"service_id":"10Nx19lsCgLyNEtSVomzTi","number":4}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:22 GMT'] - fastly-ratelimit-remaining: ['675'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:34 GMT'] + fastly-ratelimit-remaining: ['972'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1235-FRA'] - x-timer: ['S1500463822.742763,VS0,VE503'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791054.251046,VS0,VE164'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/4/domain + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":4,"deleted_at":null,"created_at":"2017-07-19T11:30:22+00:00","updated_at":"2017-07-19T11:30:22+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"10Nx19lsCgLyNEtSVomzTi","version":4,"deleted_at":null,"created_at":"2017-08-15T09:57:34+00:00","updated_at":"2017-08-15T09:57:34+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:22 GMT'] - fastly-ratelimit-remaining: ['674'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:34 GMT'] + fastly-ratelimit-remaining: ['971'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463822.314301,VS0,VE514'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791054.454963,VS0,VE531'] 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/4qM21Kz00uFPCcFSJ2wrsE/version/4/condition + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/4/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"CACHE","name":"condition-name","statement":"req.url - ~ \"^/some_asset.js\"","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":"4","deleted_at":null,"created_at":"2017-07-19T11:30:23+00:00","updated_at":"2017-07-19T11:30:23+00:00"}'} + ~ \"^/some_asset.js\"","service_id":"10Nx19lsCgLyNEtSVomzTi","version":"4","deleted_at":null,"created_at":"2017-08-15T09:57:35+00:00","updated_at":"2017-08-15T09:57:35+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['264'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:23 GMT'] - fastly-ratelimit-remaining: ['673'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:35 GMT'] + fastly-ratelimit-remaining: ['970'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1226-FRA'] - x-timer: ['S1500463823.066678,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791055.233376,VS0,VE144'] 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/4qM21Kz00uFPCcFSJ2wrsE/version/4/backend + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","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-07-19T11:30:23+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:30:23+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"10Nx19lsCgLyNEtSVomzTi","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-08-15T09:57: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:57:35+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:23 GMT'] - fastly-ratelimit-remaining: ['672'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:35 GMT'] + fastly-ratelimit-remaining: ['969'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463823.282107,VS0,VE486'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791055.423211,VS0,VE535'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -163,26 +163,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/4/header + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","version":"4","updated_at":"2017-07-19T11:30:24+00:00","deleted_at":null,"created_at":"2017-07-19T11:30:24+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":"10Nx19lsCgLyNEtSVomzTi","version":"4","updated_at":"2017-08-15T09:57:36+00:00","deleted_at":null,"created_at":"2017-08-15T09:57:36+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['430'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:24 GMT'] - fastly-ratelimit-remaining: ['671'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:36 GMT'] + fastly-ratelimit-remaining: ['968'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1236-FRA'] - x-timer: ['S1500463824.821677,VS0,VE496'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791056.005243,VS0,VE176'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -190,88 +190,88 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/4/response_object + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/4/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"4qM21Kz00uFPCcFSJ2wrsE","version":"4","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:30:24+00:00","content_type":null,"updated_at":"2017-07-19T11:30:24+00:00"}'} + 200 status code","response":"Ok","service_id":"10Nx19lsCgLyNEtSVomzTi","version":"4","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:57:36+00:00","content_type":null,"updated_at":"2017-08-15T09:57:36+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:24 GMT'] - fastly-ratelimit-remaining: ['670'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:36 GMT'] + fastly-ratelimit-remaining: ['967'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463824.379612,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] + x-timer: ['S1502791056.221348,VS0,VE521'] 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/4qM21Kz00uFPCcFSJ2wrsE/version/4/settings + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"4qM21Kz00uFPCcFSJ2wrsE"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"10Nx19lsCgLyNEtSVomzTi"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:25 GMT'] - fastly-ratelimit-remaining: ['669'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:37 GMT'] + fastly-ratelimit-remaining: ['966'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463825.906570,VS0,VE521'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791057.790608,VS0,VE480'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/version/4/activate + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:24+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57: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: ['Wed, 19 Jul 2017 11:30:26 GMT'] - fastly-ratelimit-remaining: ['668'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:38 GMT'] + fastly-ratelimit-remaining: ['965'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463826.567243,VS0,VE795'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791057.320456,VS0,VE959'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4qM21Kz00uFPCcFSJ2wrsE/details + uri: https://api.fastly.com/service/10Nx19lsCgLyNEtSVomzTi/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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:09+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:09+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:10+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:19+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:16+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:26+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"created_at":"2017-07-19T11:30:22+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:26+00:00","deployed":false}],"created_at":"2017-07-19T11:30:09+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:09+00:00","id":"4qM21Kz00uFPCcFSJ2wrsE","version":{"testing":false,"number":4,"service_id":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:20+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:21+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:31+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:27+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:38+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"created_at":"2017-08-15T09:57:34+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:38+00:00","deployed":false}],"created_at":"2017-08-15T09:57:20+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:20+00:00","id":"10Nx19lsCgLyNEtSVomzTi","version":{"testing":false,"number":4,"service_id":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.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":"4qM21Kz00uFPCcFSJ2wrsE","staging":false,"updated_at":"2017-07-19T11:30:26+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:22+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 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":"10Nx19lsCgLyNEtSVomzTi","staging":false,"updated_at":"2017-08-15T09:57:38+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.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}}}'} @@ -281,13 +281,13 @@ interactions: connection: [keep-alive] content-length: ['4641'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:26 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1241-FRA'] - x-timer: ['S1500463826.426381,VS0,VE226'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791058.326791,VS0,VE520'] 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 84f96d4..bd6fe0f 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml @@ -7,21 +7,22 @@ interactions: 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 ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} + service ''5zLQhRXD9EpYQjnj0fA6e9''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:29 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1251-FRA'] - x-timer: ['S1500463829.725608,VS0,VE486'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1502791060.233103,VS0,VE132'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -30,33 +31,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"8268613b3bde2fe8c884b3a1e9bcf2b8ca03ad15","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-07-19T11:30:29+00:00","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI"}'} + body: {string: !!python/unicode '{"customer_id":"5zLQhRXD9EpYQjnj0fA6e9","name":"Fastly + Ansible Module Test","publish_key":"ecd60db52d215701f8a1aba44846eb013ac27fb7","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-08-15T09:57:40+00:00","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['532'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:29 GMT'] - fastly-ratelimit-remaining: ['665'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:40 GMT'] + fastly-ratelimit-remaining: ['962'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463829.334045,VS0,VE520'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791060.411623,VS0,VE480'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/details + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false}],"created_at":"2017-07-19T11:30:29+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI","version":{"testing":false,"number":1,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:29+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:30:29+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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false}],"created_at":"2017-08-15T09:57:40+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW","version":{"testing":false,"number":1,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:40+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:57: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'] @@ -64,64 +65,64 @@ interactions: connection: [keep-alive] content-length: ['1071'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:30 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1222-FRA'] - x-timer: ['S1500463830.965730,VS0,VE550'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791061.030350,VS0,VE504'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version response: - body: {string: !!python/unicode '{"service_id":"5D74H4aSinmF1t4HlwmHuI","number":2}'} + body: {string: !!python/unicode '{"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:31 GMT'] - fastly-ratelimit-remaining: ['664'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:42 GMT'] + fastly-ratelimit-remaining: ['961'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1236-FRA'] - x-timer: ['S1500463831.576670,VS0,VE537'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791062.579870,VS0,VE537'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/2/domain + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"5D74H4aSinmF1t4HlwmHuI","version":2,"deleted_at":null,"created_at":"2017-07-19T11:30:31+00:00","updated_at":"2017-07-19T11:30:31+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"1Mxjo1kHc9DpUyDrI9w8jW","version":2,"deleted_at":null,"created_at":"2017-08-15T09:57:42+00:00","updated_at":"2017-08-15T09:57:42+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:31 GMT'] - fastly-ratelimit-remaining: ['663'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:42 GMT'] + fastly-ratelimit-remaining: ['960'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463831.269018,VS0,VE558'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1502791062.225546,VS0,VE539'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "REQUEST", "name": @@ -129,26 +130,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/2/condition + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/2/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"REQUEST","name":"condition-name","statement":"req.url - ~ \"^/robots.txt\"","service_id":"5D74H4aSinmF1t4HlwmHuI","version":"2","deleted_at":null,"created_at":"2017-07-19T11:30:32+00:00","updated_at":"2017-07-19T11:30:32+00:00"}'} + ~ \"^/robots.txt\"","service_id":"1Mxjo1kHc9DpUyDrI9w8jW","version":"2","deleted_at":null,"created_at":"2017-08-15T09:57:43+00:00","updated_at":"2017-08-15T09:57:43+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['263'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:32 GMT'] - fastly-ratelimit-remaining: ['662'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:43 GMT'] + fastly-ratelimit-remaining: ['959'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463832.975591,VS0,VE517'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791063.888826,VS0,VE514'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -157,25 +158,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/2/backend + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5D74H4aSinmF1t4HlwmHuI","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-07-19T11:30:33+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:30:33+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","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-08-15T09:57: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:57:43+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:33 GMT'] - fastly-ratelimit-remaining: ['661'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:44 GMT'] + fastly-ratelimit-remaining: ['958'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1242-FRA'] - x-timer: ['S1500463833.549757,VS0,VE532'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791064.581571,VS0,VE474'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -185,26 +186,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/2/header + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/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":"5D74H4aSinmF1t4HlwmHuI","version":"2","updated_at":"2017-07-19T11:30:33+00:00","deleted_at":null,"created_at":"2017-07-19T11:30:33+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":"1Mxjo1kHc9DpUyDrI9w8jW","version":"2","updated_at":"2017-08-15T09:57:44+00:00","deleted_at":null,"created_at":"2017-08-15T09:57:44+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:33 GMT'] - fastly-ratelimit-remaining: ['660'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:44 GMT'] + fastly-ratelimit-remaining: ['957'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463833.200022,VS0,VE507'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791064.213911,VS0,VE524'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -212,88 +213,88 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/2/response_object + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"5D74H4aSinmF1t4HlwmHuI","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:30:34+00:00","content_type":null,"updated_at":"2017-07-19T11:30:34+00:00"}'} + 200 status code","response":"Ok","service_id":"1Mxjo1kHc9DpUyDrI9w8jW","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:57:44+00:00","content_type":null,"updated_at":"2017-08-15T09:57:44+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:34 GMT'] - fastly-ratelimit-remaining: ['659'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:44 GMT'] + fastly-ratelimit-remaining: ['956'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463834.769936,VS0,VE532'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791065.783865,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/5D74H4aSinmF1t4HlwmHuI/version/2/settings + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"5D74H4aSinmF1t4HlwmHuI"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:35 GMT'] - fastly-ratelimit-remaining: ['658'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:45 GMT'] + fastly-ratelimit-remaining: ['955'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1251-FRA'] - x-timer: ['S1500463835.501839,VS0,VE516'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791065.979012,VS0,VE517'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/2/activate + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:34+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57: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: ['Wed, 19 Jul 2017 11:30:35 GMT'] - fastly-ratelimit-remaining: ['657'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:46 GMT'] + fastly-ratelimit-remaining: ['954'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1230-FRA'] - x-timer: ['S1500463835.093106,VS0,VE896'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791066.568467,VS0,VE1037'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/details + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:35+00:00","deployed":false}],"created_at":"2017-07-19T11:30:29+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI","version":{"testing":false,"number":2,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:46+00:00","deployed":false}],"created_at":"2017-08-15T09:57:40+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW","version":{"testing":false,"number":2,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"priority":"0","statement":"req.url + 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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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}}}'} @@ -304,13 +305,13 @@ interactions: connection: [keep-alive] content-length: ['4141'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:36 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-fra1247-FRA'] - x-timer: ['S1500463836.052042,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791067.654898,VS0,VE161'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml index 0526e67..9cc93c4 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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:41+00:00","deployed":false},{"testing":false,"number":3,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:29+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:51+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:40+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,28 +14,28 @@ interactions: connection: [keep-alive] content-length: ['858'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:42 GMT'] + date: ['Tue, 15 Aug 2017 09:57:52 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1233-FRA'] - x-timer: ['S1500463842.900831,VS0,VE146'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791072.248480,VS0,VE167'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/details + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:41+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:29+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI","version":{"testing":false,"number":3,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-07-19T11:30:38+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-07-19T11:30:38+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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:51+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:51+00:00","deployed":false}],"created_at":"2017-08-15T09:57:40+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW","version":{"testing":false,"number":3,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:51+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-08-15T09:57:49+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-08-15T09:57:49+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":3,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-07-19T11:30:38+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-07-19T11:30:38+00:00","content_types":"text/html + 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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:51+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-08-15T09:57:49+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-08-15T09:57:49+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}}}'} @@ -46,46 +46,46 @@ interactions: connection: [keep-alive] content-length: ['4631'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:42 GMT'] + date: ['Tue, 15 Aug 2017 09:57:52 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] - x-timer: ['S1500463842.105272,VS0,VE162'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1502791072.468063,VS0,VE168'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/3/deactivate + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:41+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:51+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:42 GMT'] - fastly-ratelimit-remaining: ['648'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:53 GMT'] + fastly-ratelimit-remaining: ['945'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1248-FRA'] - x-timer: ['S1500463842.364679,VS0,VE615'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1502791073.676117,VS0,VE574'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -94,15 +94,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:43 GMT'] - fastly-ratelimit-remaining: ['647'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:53 GMT'] + fastly-ratelimit-remaining: ['944'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463843.055191,VS0,VE524'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791073.408294,VS0,VE211'] 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 9876879..2b4da2e 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false},{"testing":false,"number":2,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:29+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:40+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,26 +14,26 @@ interactions: connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:36 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1223-FRA'] - x-timer: ['S1500463836.436454,VS0,VE147'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1502791067.963850,VS0,VE155'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/details + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:35+00:00","deployed":false}],"created_at":"2017-07-19T11:30:29+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI","version":{"testing":false,"number":2,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:46+00:00","deployed":false}],"created_at":"2017-08-15T09:57:40+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW","version":{"testing":false,"number":2,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:35+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":[{"priority":"0","statement":"req.url + 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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:46+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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}}}'} @@ -44,64 +44,64 @@ interactions: connection: [keep-alive] content-length: ['4141'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:36 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1251-FRA'] - x-timer: ['S1500463837.639834,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791067.170799,VS0,VE178'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version response: - body: {string: !!python/unicode '{"service_id":"5D74H4aSinmF1t4HlwmHuI","number":3}'} + body: {string: !!python/unicode '{"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:37 GMT'] - fastly-ratelimit-remaining: ['656'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:47 GMT'] + fastly-ratelimit-remaining: ['953'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463837.873127,VS0,VE511'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791067.415346,VS0,VE522'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/3/domain + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"5D74H4aSinmF1t4HlwmHuI","version":3,"deleted_at":null,"created_at":"2017-07-19T11:30:37+00:00","updated_at":"2017-07-19T11:30:37+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"1Mxjo1kHc9DpUyDrI9w8jW","version":3,"deleted_at":null,"created_at":"2017-08-15T09:57:48+00:00","updated_at":"2017-08-15T09:57:48+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:37 GMT'] - fastly-ratelimit-remaining: ['655'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:48 GMT'] + fastly-ratelimit-remaining: ['952'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1225-FRA'] - x-timer: ['S1500463837.484857,VS0,VE231'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791068.978266,VS0,VE584'] 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/5D74H4aSinmF1t4HlwmHuI/version/3/backend + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5D74H4aSinmF1t4HlwmHuI","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-07-19T11:30:38+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:30:38+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","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-08-15T09:57: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:57:49+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:38 GMT'] - fastly-ratelimit-remaining: ['654'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:49 GMT'] + fastly-ratelimit-remaining: ['951'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1228-FRA'] - x-timer: ['S1500463838.773855,VS0,VE511'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791069.610649,VS0,VE515'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content_types": "text/html text/css application/javascript", @@ -137,26 +137,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/3/gzip + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/3/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":"5D74H4aSinmF1t4HlwmHuI","version":"3","deleted_at":null,"created_at":"2017-07-19T11:30:38+00:00","updated_at":"2017-07-19T11:30:38+00:00"}'} + css js","name":"gzip-config-name","cache_condition":"","service_id":"1Mxjo1kHc9DpUyDrI9w8jW","version":"3","deleted_at":null,"created_at":"2017-08-15T09:57:49+00:00","updated_at":"2017-08-15T09:57:49+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['287'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:39 GMT'] - fastly-ratelimit-remaining: ['653'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:49 GMT'] + fastly-ratelimit-remaining: ['950'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1238-FRA'] - x-timer: ['S1500463839.527612,VS0,VE506'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791069.232107,VS0,VE152'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -166,26 +166,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/3/header + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/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":"5D74H4aSinmF1t4HlwmHuI","version":"3","updated_at":"2017-07-19T11:30:39+00:00","deleted_at":null,"created_at":"2017-07-19T11:30:39+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":"1Mxjo1kHc9DpUyDrI9w8jW","version":"3","updated_at":"2017-08-15T09:57:49+00:00","deleted_at":null,"created_at":"2017-08-15T09:57:49+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:39 GMT'] - fastly-ratelimit-remaining: ['652'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:49 GMT'] + fastly-ratelimit-remaining: ['949'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463839.089006,VS0,VE492'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791069.432674,VS0,VE512'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -193,90 +193,90 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/3/response_object + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"5D74H4aSinmF1t4HlwmHuI","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:30:40+00:00","content_type":null,"updated_at":"2017-07-19T11:30:40+00:00"}'} + 200 status code","response":"Ok","service_id":"1Mxjo1kHc9DpUyDrI9w8jW","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:57:50+00:00","content_type":null,"updated_at":"2017-08-15T09:57:50+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:40 GMT'] - fastly-ratelimit-remaining: ['651'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:50 GMT'] + fastly-ratelimit-remaining: ['948'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1231-FRA'] - x-timer: ['S1500463840.777444,VS0,VE479'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791070.986045,VS0,VE489'] 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/5D74H4aSinmF1t4HlwmHuI/version/3/settings + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"5D74H4aSinmF1t4HlwmHuI"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:40 GMT'] - fastly-ratelimit-remaining: ['650'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:51 GMT'] + fastly-ratelimit-remaining: ['947'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463840.398534,VS0,VE190'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791071.526250,VS0,VE541'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/version/3/activate + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:40+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:50+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: ['Wed, 19 Jul 2017 11:30:41 GMT'] - fastly-ratelimit-remaining: ['649'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:51 GMT'] + fastly-ratelimit-remaining: ['946'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463841.662525,VS0,VE848'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791071.116259,VS0,VE639'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5D74H4aSinmF1t4HlwmHuI/details + uri: https://api.fastly.com/service/1Mxjo1kHc9DpUyDrI9w8jW/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":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:29+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:41+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"created_at":"2017-07-19T11:30:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:29+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:29+00:00","id":"5D74H4aSinmF1t4HlwmHuI","version":{"testing":false,"number":3,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-07-19T11:30:38+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-07-19T11:30:38+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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:40+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:40+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:42+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:51+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"created_at":"2017-08-15T09:57:47+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:51+00:00","deployed":false}],"created_at":"2017-08-15T09:57:40+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:40+00:00","id":"1Mxjo1kHc9DpUyDrI9w8jW","version":{"testing":false,"number":3,"service_id":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:51+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-08-15T09:57:49+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-08-15T09:57:49+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":3,"service_id":"5D74H4aSinmF1t4HlwmHuI","staging":false,"updated_at":"2017-07-19T11:30:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-07-19T11:30:38+00:00","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-07-19T11:30:38+00:00","content_types":"text/html + 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":"1Mxjo1kHc9DpUyDrI9w8jW","staging":false,"updated_at":"2017-08-15T09:57:51+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57: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":"","name":"example7000.com"}],"gzips":[{"created_at":"2017-08-15T09:57:49+00:00","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-08-15T09:57:49+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}}}'} @@ -287,13 +287,13 @@ interactions: connection: [keep-alive] content-length: ['4631'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:41 GMT'] + date: ['Tue, 15 Aug 2017 09:57:52 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1236-FRA'] - x-timer: ['S1500463842.567979,VS0,VE200'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791072.942876,VS0,VE208'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml index 18ce65a..8472aa9 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:32:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:58:55+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,25 +14,25 @@ interactions: connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:11 GMT'] + date: ['Tue, 15 Aug 2017 09:59: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-slwdc9050-SL, cache-fra1248-FRA'] - x-timer: ['S1500463932.847893,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791141.292140,VS0,VE167'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/details + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:10+00:00","deployed":false}],"created_at":"2017-07-19T11:32:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG","version":{"testing":false,"number":2,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:59+00:00","deployed":false}],"created_at":"2017-08-15T09:58:55+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs","version":{"testing":false,"number":2,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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}}}'} headers: @@ -42,46 +42,46 @@ interactions: connection: [keep-alive] content-length: ['3919'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:12 GMT'] + date: ['Tue, 15 Aug 2017 09:59: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-slwdc9050-SL, cache-fra1231-FRA'] - x-timer: ['S1500463932.061694,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791142.500751,VS0,VE146'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/version/2/deactivate + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:10+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:59+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:12 GMT'] - fastly-ratelimit-remaining: ['557'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:59:01 GMT'] + fastly-ratelimit-remaining: ['854'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1242-FRA'] - x-timer: ['S1500463932.274916,VS0,VE654'] + x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] + x-timer: ['S1502791142.693894,VS0,VE266'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:13 GMT'] - fastly-ratelimit-remaining: ['556'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:59:02 GMT'] + fastly-ratelimit-remaining: ['853'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1220-FRA'] - x-timer: ['S1500463933.000935,VS0,VE481'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1502791142.025052,VS0,VE662'] 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 4208ffa..d9c2c57 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml @@ -7,22 +7,21 @@ interactions: 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 ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} + service ''5zLQhRXD9EpYQjnj0fA6e9''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:05 GMT'] + date: ['Tue, 15 Aug 2017 09:58:54 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-fra1228-FRA'] - x-timer: ['S1500463925.129084,VS0,VE527'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791135.812612,VS0,VE131'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,33 +30,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"a065a7b1459dd63ab86f7775e634b23dbf461b03","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-07-19T11:32:05+00:00","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG"}'} + body: {string: !!python/unicode '{"customer_id":"5zLQhRXD9EpYQjnj0fA6e9","name":"Fastly + Ansible Module Test","publish_key":"ad8982a66af3e6c3c3c5f21dae87f5d7c2a456c3","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-08-15T09:58:55+00:00","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['532'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:05 GMT'] - fastly-ratelimit-remaining: ['565'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:55 GMT'] + fastly-ratelimit-remaining: ['862'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463926.737030,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1502791135.983025,VS0,VE518'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/details + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false}],"created_at":"2017-07-19T11:32:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG","version":{"testing":false,"number":1,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:05+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:32:05+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":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false}],"created_at":"2017-08-15T09:58:55+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs","version":{"testing":false,"number":1,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:55+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58: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}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +64,64 @@ interactions: connection: [keep-alive] content-length: ['1071'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:06 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1223-FRA'] - x-timer: ['S1500463926.944567,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791136.556919,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/version + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/version response: - body: {string: !!python/unicode '{"service_id":"6x7KLPETT3IW7aJAiWmUnG","number":2}'} + body: {string: !!python/unicode '{"service_id":"2ishcbuUP7ShPNrznQcrQs","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:06 GMT'] - fastly-ratelimit-remaining: ['564'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:56 GMT'] + fastly-ratelimit-remaining: ['861'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463926.154432,VS0,VE526'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791136.755629,VS0,VE568'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/version/2/domain + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"6x7KLPETT3IW7aJAiWmUnG","version":2,"deleted_at":null,"created_at":"2017-07-19T11:32:07+00:00","updated_at":"2017-07-19T11:32:07+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"2ishcbuUP7ShPNrznQcrQs","version":2,"deleted_at":null,"created_at":"2017-08-15T09:58:56+00:00","updated_at":"2017-08-15T09:58:56+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:07 GMT'] - fastly-ratelimit-remaining: ['563'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:56 GMT'] + fastly-ratelimit-remaining: ['860'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463927.787527,VS0,VE634'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1502791136.375875,VS0,VE536'] 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/6x7KLPETT3IW7aJAiWmUnG/version/2/backend + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"6x7KLPETT3IW7aJAiWmUnG","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-07-19T11:32:07+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:32:07+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"2ishcbuUP7ShPNrznQcrQs","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-08-15T09:58: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:57+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:08 GMT'] - fastly-ratelimit-remaining: ['562'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:57 GMT'] + fastly-ratelimit-remaining: ['859'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463928.500144,VS0,VE552'] + x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] + x-timer: ['S1502791137.954183,VS0,VE510'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,26 +158,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/version/2/header + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/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":"6x7KLPETT3IW7aJAiWmUnG","version":"2","updated_at":"2017-07-19T11:32:08+00:00","deleted_at":null,"created_at":"2017-07-19T11:32:08+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":"2ishcbuUP7ShPNrznQcrQs","version":"2","updated_at":"2017-08-15T09:58:57+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:57+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:08 GMT'] - fastly-ratelimit-remaining: ['561'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:57 GMT'] + fastly-ratelimit-remaining: ['858'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463928.106128,VS0,VE490'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791138.564293,VS0,VE158'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -186,87 +185,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/version/2/response_object + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"6x7KLPETT3IW7aJAiWmUnG","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:32:08+00:00","content_type":null,"updated_at":"2017-07-19T11:32:08+00:00"}'} + 200 status code","response":"Ok","service_id":"2ishcbuUP7ShPNrznQcrQs","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:57+00:00","content_type":null,"updated_at":"2017-08-15T09:58:57+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:08 GMT'] - fastly-ratelimit-remaining: ['560'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:57 GMT'] + fastly-ratelimit-remaining: ['857'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1224-FRA'] - x-timer: ['S1500463929.669101,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1502791138.772377,VS0,VE154'] 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/6x7KLPETT3IW7aJAiWmUnG/version/2/settings + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":1000,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6x7KLPETT3IW7aJAiWmUnG"}'} + body: {string: !!python/unicode '{"general.default_ttl":1000,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2ishcbuUP7ShPNrznQcrQs"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:09 GMT'] - fastly-ratelimit-remaining: ['559'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:58 GMT'] + fastly-ratelimit-remaining: ['856'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463929.903477,VS0,VE606'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1502791138.974483,VS0,VE559'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/version/2/activate + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:08+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:57+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: ['Wed, 19 Jul 2017 11:32:10 GMT'] - fastly-ratelimit-remaining: ['558'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:59 GMT'] + fastly-ratelimit-remaining: ['855'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1241-FRA'] - x-timer: ['S1500463930.724092,VS0,VE1002'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1502791139.581270,VS0,VE1026'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/details + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:10+00:00","deployed":false}],"created_at":"2017-07-19T11:32:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG","version":{"testing":false,"number":2,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:59+00:00","deployed":false}],"created_at":"2017-08-15T09:58:55+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs","version":{"testing":false,"number":2,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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}}}'} headers: @@ -276,14 +275,14 @@ interactions: connection: [keep-alive] content-length: ['3919'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:11 GMT'] + date: ['Tue, 15 Aug 2017 09:59: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-fra1230-FRA'] - x-timer: ['S1500463931.805320,VS0,VE231'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1502791140.723843,VS0,VE374'] status: {code: 200, message: OK} - request: body: null @@ -292,33 +291,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:32:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:58:55+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['616'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:11 GMT'] + date: ['Tue, 15 Aug 2017 09:59: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-slwdc9050-SL, cache-fra1239-FRA'] - x-timer: ['S1500463931.088585,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791140.147750,VS0,VE530'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/details + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:10+00:00","deployed":false}],"created_at":"2017-07-19T11:32:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG","version":{"testing":false,"number":2,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:59+00:00","deployed":false}],"created_at":"2017-08-15T09:58:55+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs","version":{"testing":false,"number":2,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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}}}'} headers: @@ -328,25 +326,25 @@ interactions: connection: [keep-alive] content-length: ['3919'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:11 GMT'] + date: ['Tue, 15 Aug 2017 09:59: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-slwdc9050-SL, cache-fra1244-FRA'] - x-timer: ['S1500463931.309510,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791141.790961,VS0,VE193'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6x7KLPETT3IW7aJAiWmUnG/details + uri: https://api.fastly.com/service/2ishcbuUP7ShPNrznQcrQs/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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:05+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"created_at":"2017-07-19T11:32:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:10+00:00","deployed":false}],"created_at":"2017-07-19T11:32:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:05+00:00","id":"6x7KLPETT3IW7aJAiWmUnG","version":{"testing":false,"number":2,"service_id":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:55+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:55+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"created_at":"2017-08-15T09:58:56+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:59+00:00","deployed":false}],"created_at":"2017-08-15T09:58:55+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:55+00:00","id":"2ishcbuUP7ShPNrznQcrQs","version":{"testing":false,"number":2,"service_id":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"6x7KLPETT3IW7aJAiWmUnG","staging":false,"updated_at":"2017-07-19T11:32:10+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:32:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"2ishcbuUP7ShPNrznQcrQs","staging":false,"updated_at":"2017-08-15T09:58:59+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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}}}'} headers: @@ -356,13 +354,13 @@ interactions: connection: [keep-alive] content-length: ['3919'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:11 GMT'] + date: ['Tue, 15 Aug 2017 09:59: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-fra1225-FRA'] - x-timer: ['S1500463932.558703,VS0,VE161'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791141.031209,VS0,VE131'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml new file mode 100644 index 0000000..c571d7b --- /dev/null +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml @@ -0,0 +1,107 @@ +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":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:59:03+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['616'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59: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-fra1247-FRA'] + x-timer: ['S1502791150.234290,VS0,VE486'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/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":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:08+00:00","deployed":false}],"created_at":"2017-08-15T09:59:03+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE","version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"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-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59: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-fra1244-FRA'] + x-timer: ['S1502791151.760611,VS0,VE123'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/version/2/deactivate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:08+00:00","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['241'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:11 GMT'] + fastly-ratelimit-remaining: ['843'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791151.940509,VS0,VE542'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE + 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: ['Tue, 15 Aug 2017 09:59:12 GMT'] + fastly-ratelimit-remaining: ['842'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791152.654925,VS0,VE502'] + 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 new file mode 100644 index 0000000..5003510 --- /dev/null +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml @@ -0,0 +1,410 @@ +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 ''5zLQhRXD9EpYQjnj0fA6e9''-''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: ['Tue, 15 Aug 2017 09:59: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-fra1248-FRA'] + x-timer: ['S1502791143.758101,VS0,VE143'] + 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":"5zLQhRXD9EpYQjnj0fA6e9","name":"Fastly + Ansible Module Test","publish_key":"08614a5dd60653c00b71fded7211160cea0ac873","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-08-15T09:59:03+00:00","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['532'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:03 GMT'] + fastly-ratelimit-remaining: ['852'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791143.947919,VS0,VE496'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/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":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false}],"created_at":"2017-08-15T09:59:03+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE","version":{"testing":false,"number":1,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:03+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:59:03+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: ['Tue, 15 Aug 2017 09:59: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-fra1222-FRA'] + x-timer: ['S1502791143.491693,VS0,VE494'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/version + response: + body: {string: !!python/unicode '{"service_id":"2roGEMWfEqtLENwXIfGYWE","number":2}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['50'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:04 GMT'] + fastly-ratelimit-remaining: ['851'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791144.111041,VS0,VE523'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"comment": "", "name": "example7000.com"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/version/2/domain + response: + body: {string: !!python/unicode '{"comment":"","name":"example7000.com","service_id":"2roGEMWfEqtLENwXIfGYWE","version":2,"deleted_at":null,"created_at":"2017-08-15T09:59:05+00:00","updated_at":"2017-08-15T09:59:05+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['189'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:05 GMT'] + fastly-ratelimit-remaining: ['850'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791145.685495,VS0,VE547'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": + "localhost", "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/2roGEMWfEqtLENwXIfGYWE/version/2/backend + response: + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"2roGEMWfEqtLENwXIfGYWE","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-08-15T09:59: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:59:05+00:00","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['726'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:05 GMT'] + fastly-ratelimit-remaining: ['849'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791145.366280,VS0,VE508'] + 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/2roGEMWfEqtLENwXIfGYWE/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":"2roGEMWfEqtLENwXIfGYWE","version":"2","updated_at":"2017-08-15T09:59:06+00:00","deleted_at":null,"created_at":"2017-08-15T09:59:06+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['423'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:06 GMT'] + fastly-ratelimit-remaining: ['848'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791146.928011,VS0,VE515'] + 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/2roGEMWfEqtLENwXIfGYWE/version/2/response_object + response: + body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set + 200 status code","response":"Ok","service_id":"2roGEMWfEqtLENwXIfGYWE","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:59:06+00:00","content_type":null,"updated_at":"2017-08-15T09:59:06+00:00"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['292'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:06 GMT'] + fastly-ratelimit-remaining: ['847'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791147.619521,VS0,VE154'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"content": "\n if (resp.status >= 500 && resp.status + < 600) {\n if (stale.exists) {\n restart;\n }\n }\n ", + "type": "deliver", "dynamic": 0, "name": "Deliver stale content", "priority": + 100}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/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":"2roGEMWfEqtLENwXIfGYWE","version":"2","deleted_at":null,"created_at":"2017-08-15T09:59:07+00:00","updated_at":"2017-08-15T09:59:07+00:00","id":"2wBKp8u1J0w9tGzrrWdhig"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['462'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:07 GMT'] + fastly-ratelimit-remaining: ['846'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791147.828430,VS0,VE502'] + 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/2roGEMWfEqtLENwXIfGYWE/version/2/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2roGEMWfEqtLENwXIfGYWE"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59:07 GMT'] + fastly-ratelimit-remaining: ['845'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791147.373379,VS0,VE534'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/version/2/activate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:07+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: ['Tue, 15 Aug 2017 09:59:08 GMT'] + fastly-ratelimit-remaining: ['844'] + fastly-ratelimit-reset: ['1502791200'] + status: [200 OK] + vary: [Accept-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: ['S1502791148.965507,VS0,VE1012'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/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":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:08+00:00","deployed":false}],"created_at":"2017-08-15T09:59:03+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE","version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"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-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59: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-fra1228-FRA'] + x-timer: ['S1502791149.023245,VS0,VE165'] + 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":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:59:03+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE"}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['616'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59: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-fra1251-FRA'] + x-timer: ['S1502791149.228566,VS0,VE171'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/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":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:08+00:00","deployed":false}],"created_at":"2017-08-15T09:59:03+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE","version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"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: ['4547'] + content-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59: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-fra1222-FRA'] + x-timer: ['S1502791149.446669,VS0,VE483'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2roGEMWfEqtLENwXIfGYWE/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":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:03+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:03+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"created_at":"2017-08-15T09:59:04+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:59:08+00:00","deployed":false}],"created_at":"2017-08-15T09:59:03+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:59:03+00:00","id":"2roGEMWfEqtLENwXIfGYWE","version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2roGEMWfEqtLENwXIfGYWE","staging":false,"updated_at":"2017-08-15T09:59:08+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:59: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":"example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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 + 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":"2wBKp8u1J0w9tGzrrWdhig"}],"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-type: [application/json] + date: ['Tue, 15 Aug 2017 09:59: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-fra1231-FRA'] + x-timer: ['S1502791150.985562,VS0,VE121'] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/fixtures/cassettes/tearDown b/tests/fixtures/cassettes/tearDown index 42fef27..dba1879 100644 --- a/tests/fixtures/cassettes/tearDown +++ b/tests/fixtures/cassettes/tearDown @@ -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":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:05+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:08+00:00","deployed":false},{"testing":false,"number":3,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:25:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:25:05+00:00","id":"76vBuEzDypKbwPJqPagIv0"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:30+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:33+00:00","deployed":false},{"testing":false,"number":3,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-11T21:54:30+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:30+00:00","id":"55Hob1AOZmBBK0mkgN4VUC"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,23 +14,23 @@ interactions: connection: [keep-alive] content-length: ['865'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:48 GMT'] + date: ['Tue, 15 Aug 2017 09:57:57 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1227-FRA'] - x-timer: ['S1500463848.475848,VS0,VE505'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791078.657618,VS0,VE151'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/details + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/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":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:05+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:30:45+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:48+00:00","deployed":false}],"created_at":"2017-07-19T11:25:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:25:05+00:00","id":"76vBuEzDypKbwPJqPagIv0","version":{"testing":false,"number":3,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"updated_at":"2017-07-19T11:30:48+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:45+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.example7000.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":"76vBuEzDypKbwPJqPagIv0","staging":false,"updated_at":"2017-07-19T11:30:48+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:45+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.example7000.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":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:30+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:33+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-15T09:57:54+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:57+00:00","deployed":false}],"created_at":"2017-08-11T21:54:30+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:30+00:00","id":"55Hob1AOZmBBK0mkgN4VUC","version":{"testing":false,"number":3,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"updated_at":"2017-08-15T09:57:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:54+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.example7000.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":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"updated_at":"2017-08-15T09:57:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:54+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.example7000.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'] @@ -38,46 +38,46 @@ interactions: connection: [keep-alive] content-length: ['3472'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:49 GMT'] + date: ['Tue, 15 Aug 2017 09:57:57 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] - x-timer: ['S1500463849.047345,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1502791078.854016,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/version/3/deactivate + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:30:45+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:48+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-15T09:57:54+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:57+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:50 GMT'] - fastly-ratelimit-remaining: ['641'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:58 GMT'] + fastly-ratelimit-remaining: ['938'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463850.602874,VS0,VE563'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1502791078.027886,VS0,VE550'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0 + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -86,15 +86,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:50 GMT'] - fastly-ratelimit-remaining: ['640'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:58 GMT'] + fastly-ratelimit-remaining: ['937'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463850.439771,VS0,VE497'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791079.721153,VS0,VE177'] 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 8da2f99..4f6a544 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert +++ b/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert @@ -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":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:05+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:08+00:00","deployed":false}],"created_at":"2017-07-19T11:25:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:25:05+00:00","id":"76vBuEzDypKbwPJqPagIv0"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:30+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:33+00:00","deployed":false}],"created_at":"2017-08-11T21:54:30+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:30+00:00","id":"55Hob1AOZmBBK0mkgN4VUC"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,23 +14,23 @@ interactions: connection: [keep-alive] content-length: ['724'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:43 GMT'] + date: ['Tue, 15 Aug 2017 09:57:53 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] - x-timer: ['S1500463844.772591,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1502791074.690449,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/details + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/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":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:05+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:08+00:00","deployed":false}],"created_at":"2017-07-19T11:25:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:25:05+00:00","id":"76vBuEzDypKbwPJqPagIv0","version":{"testing":false,"number":2,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"updated_at":"2017-07-19T11:25:08+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:25:06+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:30+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:33+00:00","deployed":false}],"created_at":"2017-08-11T21:54:30+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:30+00:00","id":"55Hob1AOZmBBK0mkgN4VUC","version":{"testing":false,"number":2,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"updated_at":"2017-08-11T21:54:33+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-11T21:54: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.example7000.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}'} headers: @@ -40,64 +40,64 @@ interactions: connection: [keep-alive] content-length: ['2354'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:44 GMT'] + date: ['Tue, 15 Aug 2017 09:57: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-slwdc9050-SL, cache-fra1250-FRA'] - x-timer: ['S1500463844.961512,VS0,VE601'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791074.869090,VS0,VE201'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/version + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/version response: - body: {string: !!python/unicode '{"service_id":"76vBuEzDypKbwPJqPagIv0","number":3}'} + body: {string: !!python/unicode '{"service_id":"55Hob1AOZmBBK0mkgN4VUC","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:45 GMT'] - fastly-ratelimit-remaining: ['646'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:54 GMT'] + fastly-ratelimit-remaining: ['943'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463845.794320,VS0,VE500'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791074.123577,VS0,VE160'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/version/3/domain + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"76vBuEzDypKbwPJqPagIv0","version":3,"deleted_at":null,"created_at":"2017-07-19T11:30:45+00:00","updated_at":"2017-07-19T11:30:45+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"55Hob1AOZmBBK0mkgN4VUC","version":3,"deleted_at":null,"created_at":"2017-08-15T09:57:54+00:00","updated_at":"2017-08-15T09:57:54+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['193'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:45 GMT'] - fastly-ratelimit-remaining: ['645'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:54 GMT'] + fastly-ratelimit-remaining: ['942'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1244-FRA'] - x-timer: ['S1500463845.420071,VS0,VE528'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1502791074.322321,VS0,VE558'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -106,100 +106,99 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/version/3/backend + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","ssl_cert_hostname":null,"address":"my-backend.example.net","port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"76vBuEzDypKbwPJqPagIv0","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-07-19T11:30:46+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,"healthcheck":null,"max_conn":200,"use_ssl":true,"created_at":"2017-07-19T11:30:46+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","ssl_cert_hostname":null,"address":"my-backend.example.net","port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"55Hob1AOZmBBK0mkgN4VUC","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-08-15T09:57:55+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,"healthcheck":null,"max_conn":200,"use_ssl":true,"created_at":"2017-08-15T09:57:55+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['785'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:46 GMT'] - fastly-ratelimit-remaining: ['644'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:55 GMT'] + fastly-ratelimit-remaining: ['941'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463846.051931,VS0,VE544'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1502791075.927086,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/76vBuEzDypKbwPJqPagIv0/version/3/settings + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"76vBuEzDypKbwPJqPagIv0"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"55Hob1AOZmBBK0mkgN4VUC"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:47 GMT'] - fastly-ratelimit-remaining: ['643'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:56 GMT'] + fastly-ratelimit-remaining: ['940'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463847.651742,VS0,VE560'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791076.582661,VS0,VE540'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/version/3/activate + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:30:45+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:46+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"}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-15T09:57:54+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:55+00:00","deployed":false,"msg":"Warning: + Backend host ''''\"my-backend.example.net\"'''' could not be resolved to an + IP address:\n\tName or service not known"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['365'] + content-length: ['370'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:48 GMT'] - fastly-ratelimit-remaining: ['642'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:57 GMT'] + fastly-ratelimit-remaining: ['939'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1221-FRA'] - x-timer: ['S1500463847.321063,VS0,VE817'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791076.168526,VS0,VE1152'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/76vBuEzDypKbwPJqPagIv0/details + uri: https://api.fastly.com/service/55Hob1AOZmBBK0mkgN4VUC/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":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:05+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:05+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:25:06+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:25:08+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"created_at":"2017-07-19T11:30:45+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:48+00:00","deployed":false}],"created_at":"2017-07-19T11:25:05+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:25:05+00:00","id":"76vBuEzDypKbwPJqPagIv0","version":{"testing":false,"number":3,"service_id":"76vBuEzDypKbwPJqPagIv0","staging":false,"updated_at":"2017-07-19T11:30:48+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:45+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.example7000.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":"76vBuEzDypKbwPJqPagIv0","staging":false,"updated_at":"2017-07-19T11:30:48+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30:45+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.example7000.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":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:30+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:30+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-11T21:54:31+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-11T21:54:33+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"created_at":"2017-08-15T09:57:54+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:57+00:00","deployed":false}],"created_at":"2017-08-11T21:54:30+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-11T21:54:30+00:00","id":"55Hob1AOZmBBK0mkgN4VUC","version":{"testing":false,"number":3,"service_id":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"updated_at":"2017-08-15T09:57:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:54+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.example7000.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":"55Hob1AOZmBBK0mkgN4VUC","staging":false,"updated_at":"2017-08-15T09:57:57+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:57:54+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.example7000.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: ['3472'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:48 GMT'] + date: ['Tue, 15 Aug 2017 09:57:57 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463848.213086,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791077.372030,VS0,VE210'] 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 4163d01..883bb29 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_port_not_required +++ b/tests/fixtures/cassettes/test_fastly_backend_port_not_required @@ -7,7 +7,7 @@ interactions: uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load - service ''31RPDMBpiruA1yfGA2djLm''-''Jimdo Fastly Ansible Module Test''"}'} + service ''5zLQhRXD9EpYQjnj0fA6e9''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:51 GMT'] + date: ['Tue, 15 Aug 2017 09:57:59 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463851.029585,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791079.970248,VS0,VE170'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -31,33 +31,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo - Fastly Ansible Module Test","publish_key":"aab62d363bace6b9451f8603c3fcbfa252121fb0","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-07-19T11:30:51+00:00","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"customer_id":"5zLQhRXD9EpYQjnj0fA6e9","name":"Jimdo + Fastly Ansible Module Test","publish_key":"0840d848cb325fb6894348848e058cc3f830e3b2","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-08-15T09:57:59+00:00","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['538'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:51 GMT'] - fastly-ratelimit-remaining: ['639'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:57:59 GMT'] + fastly-ratelimit-remaining: ['936'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463851.241431,VS0,VE176'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1502791079.179343,VS0,VE753'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":1,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:51+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:30:51+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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":1,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:57:59+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:57:59+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: ['1077'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:51 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1234-FRA'] - x-timer: ['S1500463851.472215,VS0,VE497'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1502791080.008351,VS0,VE311'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":2}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:52 GMT'] - fastly-ratelimit-remaining: ['638'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:01 GMT'] + fastly-ratelimit-remaining: ['935'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463852.042868,VS0,VE555'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1502791080.374952,VS0,VE645'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/2/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":2,"deleted_at":null,"created_at":"2017-07-19T11:30:53+00:00","updated_at":"2017-07-19T11:30:53+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":2,"deleted_at":null,"created_at":"2017-08-15T09:58:01+00:00","updated_at":"2017-08-15T09:58:01+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['193'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:53 GMT'] - fastly-ratelimit-remaining: ['637'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:01 GMT'] + fastly-ratelimit-remaining: ['934'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463853.724683,VS0,VE559'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791081.067247,VS0,VE556'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/2/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:30: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:30:53+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58:02+00:00","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"between_bytes_timeout":10000,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:02+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:53 GMT'] - fastly-ratelimit-remaining: ['636'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:02 GMT'] + fastly-ratelimit-remaining: ['933'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463853.345102,VS0,VE552'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791082.670393,VS0,VE537'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -159,26 +159,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/2/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","version":"2","updated_at":"2017-07-19T11:30:54+00:00","deleted_at":null,"created_at":"2017-07-19T11:30:54+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":"1iL8YxzxDoUn4clwOvuxAq","version":"2","updated_at":"2017-08-15T09:58:02+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:02+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:54 GMT'] - fastly-ratelimit-remaining: ['635'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:02 GMT'] + fastly-ratelimit-remaining: ['932'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1238-FRA'] - x-timer: ['S1500463854.970297,VS0,VE553'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791082.401906,VS0,VE236'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -186,87 +186,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/2/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:30:54+00:00","content_type":null,"updated_at":"2017-07-19T11:30:54+00:00"}'} + 302 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:03+00:00","content_type":null,"updated_at":"2017-08-15T09:58:03+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:54 GMT'] - fastly-ratelimit-remaining: ['634'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:03 GMT'] + fastly-ratelimit-remaining: ['931'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463855.619273,VS0,VE233'] + x-timer: ['S1502791083.682753,VS0,VE522'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/2/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:55 GMT'] - fastly-ratelimit-remaining: ['633'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:03 GMT'] + fastly-ratelimit-remaining: ['930'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463855.912823,VS0,VE630'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1502791083.253613,VS0,VE528'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/2/activate + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:54+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:03+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: ['Wed, 19 Jul 2017 11:30:56 GMT'] - fastly-ratelimit-remaining: ['632'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:04 GMT'] + fastly-ratelimit-remaining: ['929'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1246-FRA'] - x-timer: ['S1500463856.663420,VS0,VE839'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791084.848573,VS0,VE1055'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:56+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":2,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:04+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":2,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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}}}'} headers: @@ -276,13 +276,13 @@ interactions: connection: [keep-alive] content-length: ['3931'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:57 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1239-FRA'] - x-timer: ['S1500463857.555602,VS0,VE548'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791085.955793,VS0,VE180'] 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 bd6ec92..0b687d7 100644 --- a/tests/fixtures/cassettes/test_fastly_domain_comment_not_required +++ b/tests/fixtures/cassettes/test_fastly_domain_comment_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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"number":2,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,25 +14,25 @@ interactions: connection: [keep-alive] content-length: ['622'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:57 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1239-FRA'] - x-timer: ['S1500463857.497302,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1502791085.370056,VS0,VE158'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:56+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":2,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:04+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":2,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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}}}'} headers: @@ -42,25 +42,25 @@ interactions: connection: [keep-alive] content-length: ['3931'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:58 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1242-FRA'] - x-timer: ['S1500463858.040920,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791086.576010,VS0,VE134'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:56+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":2,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:04+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":2,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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}}}'} headers: @@ -70,13 +70,13 @@ interactions: connection: [keep-alive] content-length: ['3931'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:58 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1244-FRA'] - x-timer: ['S1500463858.239186,VS0,VE205'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791086.758060,VS0,VE130'] 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 6e3567f..85ee3d8 100644 --- a/tests/fixtures/cassettes/test_fastly_header_action_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_action_not_required @@ -6,33 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"number":2,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"number":2,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['622'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:58 GMT'] + date: ['Tue, 15 Aug 2017 09:58:06 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] - x-timer: ['S1500463859.615722,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791086.005071,VS0,VE522'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:56+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":2,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:04+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":2,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:30:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:04+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:00+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.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}}}'} headers: @@ -42,64 +41,64 @@ interactions: connection: [keep-alive] content-length: ['3931'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:58 GMT'] + date: ['Tue, 15 Aug 2017 09:58:06 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] - x-timer: ['S1500463859.835955,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791087.768484,VS0,VE132'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":3}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:30:59 GMT'] - fastly-ratelimit-remaining: ['631'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:07 GMT'] + fastly-ratelimit-remaining: ['928'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1222-FRA'] - x-timer: ['S1500463859.061994,VS0,VE566'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1502791087.946174,VS0,VE501'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/3/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":3,"deleted_at":null,"created_at":"2017-07-19T11:31:00+00:00","updated_at":"2017-07-19T11:31:00+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":3,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","updated_at":"2017-08-15T09:58:07+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['193'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:00 GMT'] - fastly-ratelimit-remaining: ['630'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:08 GMT'] + fastly-ratelimit-remaining: ['927'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463860.836076,VS0,VE563'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1502791087.493434,VS0,VE562'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/3/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:31: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:00+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:08+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:01 GMT'] - fastly-ratelimit-remaining: ['629'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:08 GMT'] + fastly-ratelimit-remaining: ['926'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463860.462410,VS0,VE612'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791088.101370,VS0,VE530'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -136,26 +135,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/3/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","version":"3","updated_at":"2017-07-19T11:31:01+00:00","deleted_at":null,"created_at":"2017-07-19T11:31:01+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"100","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"3","updated_at":"2017-08-15T09:58:09+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:09+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:01 GMT'] - fastly-ratelimit-remaining: ['628'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:09 GMT'] + fastly-ratelimit-remaining: ['925'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1233-FRA'] - x-timer: ['S1500463861.296821,VS0,VE580'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1502791089.864904,VS0,VE493'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -163,87 +162,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/3/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/3/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:02+00:00","content_type":null,"updated_at":"2017-07-19T11:31:02+00:00"}'} + 302 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"3","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:09+00:00","content_type":null,"updated_at":"2017-08-15T09:58:09+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:02 GMT'] - fastly-ratelimit-remaining: ['627'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:09 GMT'] + fastly-ratelimit-remaining: ['924'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1224-FRA'] - x-timer: ['S1500463862.976304,VS0,VE504'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1502791089.403329,VS0,VE507'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/3/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:03 GMT'] - fastly-ratelimit-remaining: ['626'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:10 GMT'] + fastly-ratelimit-remaining: ['923'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463863.543939,VS0,VE535'] + x-served-by: ['app-slwdc9051-SL, cache-fra1236-FRA'] + x-timer: ['S1502791090.969456,VS0,VE185'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/3/activate + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:02+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:09+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: ['Wed, 19 Jul 2017 11:31:03 GMT'] - fastly-ratelimit-remaining: ['625'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:11 GMT'] + fastly-ratelimit-remaining: ['922'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463863.169808,VS0,VE478'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791090.193902,VS0,VE972'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -253,13 +252,13 @@ interactions: connection: [keep-alive] content-length: ['4175'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:03 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1221-FRA'] - x-timer: ['S1500463864.721063,VS0,VE166'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1502791091.260425,VS0,VE168'] 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 71f8bae..f61742b 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,76 +6,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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['864'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:04 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1227-FRA'] - x-timer: ['S1500463864.094956,VS0,VE569'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791092.599196,VS0,VE151'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: ['Wed, 19 Jul 2017 11:31:05 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1248-FRA'] - x-timer: ['S1500463865.889747,VS0,VE243'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791092.801596,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: ['Wed, 19 Jul 2017 11:31:05 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1223-FRA'] - x-timer: ['S1500463865.204059,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791092.973602,VS0,VE471'] 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 c3658b0..83d0fe6 100644 --- a/tests/fixtures/cassettes/test_fastly_header_priority_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_priority_not_required @@ -6,75 +6,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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['864'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:06 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1227-FRA'] - x-timer: ['S1500463866.509771,VS0,VE490'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791093.573042,VS0,VE160'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: ['Wed, 19 Jul 2017 11:31:06 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1231-FRA'] - x-timer: ['S1500463866.100952,VS0,VE205'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791093.780453,VS0,VE457'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: ['Wed, 19 Jul 2017 11:31:06 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1242-FRA'] - x-timer: ['S1500463866.367427,VS0,VE563'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791093.285394,VS0,VE133'] 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 index 8927198..f7cb4e6 100644 --- a/tests/fixtures/cassettes/test_fastly_response_object_status_not_required +++ b/tests/fixtures/cassettes/test_fastly_response_object_status_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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,25 +14,25 @@ interactions: connection: [keep-alive] content-length: ['864'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:07 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1235-FRA'] - x-timer: ['S1500463867.354618,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1502791094.590840,VS0,VE149'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":3,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":3,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:03+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:30: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:11+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:07+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -42,64 +42,64 @@ interactions: connection: [keep-alive] content-length: ['4175'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:07 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1240-FRA'] - x-timer: ['S1500463868.574767,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra1225-FRA'] + x-timer: ['S1502791094.787651,VS0,VE127'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":4}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":4}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:08 GMT'] - fastly-ratelimit-remaining: ['624'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:14 GMT'] + fastly-ratelimit-remaining: ['921'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1228-FRA'] - x-timer: ['S1500463868.754467,VS0,VE541'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1502791094.961769,VS0,VE505'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/4/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":4,"deleted_at":null,"created_at":"2017-07-19T11:31:08+00:00","updated_at":"2017-07-19T11:31:08+00:00"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":4,"deleted_at":null,"created_at":"2017-08-15T09:58:15+00:00","updated_at":"2017-08-15T09:58:15+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['193'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:08 GMT'] - fastly-ratelimit-remaining: ['623'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:15 GMT'] + fastly-ratelimit-remaining: ['920'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1249-FRA'] - x-timer: ['S1500463868.363189,VS0,VE588'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791095.706369,VS0,VE532'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -108,25 +108,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/4/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:31: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:09+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:15+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:09 GMT'] - fastly-ratelimit-remaining: ['622'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:15 GMT'] + fastly-ratelimit-remaining: ['919'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1229-FRA'] - x-timer: ['S1500463869.021326,VS0,VE520'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791095.342472,VS0,VE520'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -136,26 +136,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/4/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","version":"4","updated_at":"2017-07-19T11:31:10+00:00","deleted_at":null,"created_at":"2017-07-19T11:31: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":"1iL8YxzxDoUn4clwOvuxAq","version":"4","updated_at":"2017-08-15T09:58:15+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:15+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['423'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:10 GMT'] - fastly-ratelimit-remaining: ['621'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:16 GMT'] + fastly-ratelimit-remaining: ['918'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463870.630411,VS0,VE493'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791096.911297,VS0,VE163'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -163,102 +163,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/4/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/4/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"4","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:10+00:00","content_type":null,"updated_at":"2017-07-19T11:31:10+00:00"}'} + 200 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"4","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:16+00:00","content_type":null,"updated_at":"2017-08-15T09:58:16+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:10 GMT'] - fastly-ratelimit-remaining: ['620'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:16 GMT'] + fastly-ratelimit-remaining: ['917'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463870.220992,VS0,VE563'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1502791096.117667,VS0,VE464'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/4/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:11 GMT'] - fastly-ratelimit-remaining: ['619'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:17 GMT'] + fastly-ratelimit-remaining: ['916'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463871.906392,VS0,VE537'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791097.627690,VS0,VE540'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/4/activate + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:10+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:16+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: ['Wed, 19 Jul 2017 11:31:12 GMT'] - fastly-ratelimit-remaining: ['618'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:18 GMT'] + fastly-ratelimit-remaining: ['915'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463872.532023,VS0,VE865'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1502791097.423913,VS0,VE968'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":4,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":4,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4417'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:13 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1231-FRA'] - x-timer: ['S1500463872.466320,VS0,VE544'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791098.443401,VS0,VE165'] 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 14d4609..5ee34a4 100644 --- a/tests/fixtures/cassettes/test_service_does_exist +++ b/tests/fixtures/cassettes/test_service_does_exist @@ -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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"number":4,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"number":4,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,25 +14,25 @@ interactions: connection: [keep-alive] content-length: ['1106'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:13 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1243-FRA'] - x-timer: ['S1500463873.365385,VS0,VE488'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791099.747679,VS0,VE146'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":4,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":4,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:12+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":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: @@ -41,64 +41,64 @@ interactions: connection: [keep-alive] content-length: ['4417'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:14 GMT'] + date: ['Tue, 15 Aug 2017 09:58:19 GMT'] status: [200 OK] vary: [Accept-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: ['S1500463874.916086,VS0,VE485'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791099.943760,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":5}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":5}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:14 GMT'] - fastly-ratelimit-remaining: ['617'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:19 GMT'] + fastly-ratelimit-remaining: ['914'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463874.470080,VS0,VE497'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791099.114268,VS0,VE160'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/5/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/5/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":5,"deleted_at":null,"created_at":"2017-07-19T11:31:15+00:00","updated_at":"2017-07-19T11:31:15+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":5,"deleted_at":null,"created_at":"2017-08-15T09:58:19+00:00","updated_at":"2017-08-15T09:58:19+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:15 GMT'] - fastly-ratelimit-remaining: ['616'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:19 GMT'] + fastly-ratelimit-remaining: ['913'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1227-FRA'] - x-timer: ['S1500463875.026775,VS0,VE531'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791099.320675,VS0,VE536'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/5/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/5/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:31: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:16+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58:20+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:20+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:16 GMT'] - fastly-ratelimit-remaining: ['615'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:20 GMT'] + fastly-ratelimit-remaining: ['912'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1248-FRA'] - x-timer: ['S1500463876.703462,VS0,VE519'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791100.901764,VS0,VE506'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -135,26 +135,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/5/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","version":"5","updated_at":"2017-07-19T11:31:16+00:00","deleted_at":null,"created_at":"2017-07-19T11:31:16+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":"1iL8YxzxDoUn4clwOvuxAq","version":"5","updated_at":"2017-08-15T09:58:20+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:20+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:16 GMT'] - fastly-ratelimit-remaining: ['614'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:20 GMT'] + fastly-ratelimit-remaining: ['911'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1247-FRA'] - x-timer: ['S1500463876.299592,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791100.454809,VS0,VE496'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -162,87 +162,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/5/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/5/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"5","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:17+00:00","content_type":null,"updated_at":"2017-07-19T11:31:17+00:00"}'} + 302 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"5","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:21+00:00","content_type":null,"updated_at":"2017-08-15T09:58:21+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:17 GMT'] - fastly-ratelimit-remaining: ['613'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:21 GMT'] + fastly-ratelimit-remaining: ['910'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1227-FRA'] - x-timer: ['S1500463877.963659,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791101.052535,VS0,VE160'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/5/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/5/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:17 GMT'] - fastly-ratelimit-remaining: ['612'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:21 GMT'] + fastly-ratelimit-remaining: ['909'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1242-FRA'] - x-timer: ['S1500463877.183882,VS0,VE520'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1502791101.260883,VS0,VE514'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/5/activate + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/5/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:17+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:21+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: ['Wed, 19 Jul 2017 11:31:18 GMT'] - fastly-ratelimit-remaining: ['611'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:22 GMT'] + fastly-ratelimit-remaining: ['908'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1231-FRA'] - x-timer: ['S1500463878.773324,VS0,VE792'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1502791102.041984,VS0,VE950'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":5,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":5,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:19+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:19+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: @@ -252,14 +252,14 @@ interactions: connection: [keep-alive] content-length: ['4667'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:19 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1236-FRA'] - x-timer: ['S1500463879.625851,VS0,VE515'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791103.038702,VS0,VE173'] status: {code: 200, message: OK} - request: body: null @@ -268,7 +268,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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"number":5,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"number":5,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -276,25 +276,25 @@ interactions: connection: [keep-alive] content-length: ['1348'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:19 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1240-FRA'] - x-timer: ['S1500463879.214936,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791103.263303,VS0,VE200'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":5,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":5,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:19+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:18+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:14+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:22+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:19+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: @@ -304,64 +304,64 @@ interactions: connection: [keep-alive] content-length: ['4667'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:19 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1238-FRA'] - x-timer: ['S1500463879.419394,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1502791104.506150,VS0,VE173'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":6}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":6}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:20 GMT'] - fastly-ratelimit-remaining: ['610'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:23 GMT'] + fastly-ratelimit-remaining: ['907'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463880.989021,VS0,VE494'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791104.723425,VS0,VE163'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/6/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/6/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":6,"deleted_at":null,"created_at":"2017-07-19T11:31:21+00:00","updated_at":"2017-07-19T11:31:21+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":6,"deleted_at":null,"created_at":"2017-08-15T09:58:24+00:00","updated_at":"2017-08-15T09:58:24+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:21 GMT'] - fastly-ratelimit-remaining: ['609'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:24 GMT'] + fastly-ratelimit-remaining: ['906'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1225-FRA'] - x-timer: ['S1500463881.580405,VS0,VE551'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791104.932328,VS0,VE218'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -370,25 +370,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/6/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/6/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:31: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:21+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58:24+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:24+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:21 GMT'] - fastly-ratelimit-remaining: ['608'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:24 GMT'] + fastly-ratelimit-remaining: ['905'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463881.347516,VS0,VE501'] + x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] + x-timer: ['S1502791104.198263,VS0,VE559'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -398,26 +398,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/6/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","version":"6","updated_at":"2017-07-19T11:31:22+00:00","deleted_at":null,"created_at":"2017-07-19T11:31: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":"1iL8YxzxDoUn4clwOvuxAq","version":"6","updated_at":"2017-08-15T09:58:25+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:25+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:22 GMT'] - fastly-ratelimit-remaining: ['607'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:25 GMT'] + fastly-ratelimit-remaining: ['904'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1247-FRA'] - x-timer: ['S1500463882.928584,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791105.804144,VS0,VE496'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -425,103 +425,102 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/6/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/6/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"6","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:22+00:00","content_type":null,"updated_at":"2017-07-19T11:31:22+00:00"}'} + 301 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"6","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:25+00:00","content_type":null,"updated_at":"2017-08-15T09:58:25+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:22 GMT'] - fastly-ratelimit-remaining: ['606'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:25 GMT'] + fastly-ratelimit-remaining: ['903'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1246-FRA'] - x-timer: ['S1500463882.479284,VS0,VE495'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1502791105.366959,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/5bMKvngJvnzdNTqlUxZV9Q/version/6/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/6/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:23 GMT'] - fastly-ratelimit-remaining: ['605'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:26 GMT'] + fastly-ratelimit-remaining: ['902'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1249-FRA'] - x-timer: ['S1500463883.031185,VS0,VE516'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791106.905750,VS0,VE146'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/6/activate + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/6/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:22+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:25+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: ['Wed, 19 Jul 2017 11:31:24 GMT'] - fastly-ratelimit-remaining: ['604'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:27 GMT'] + fastly-ratelimit-remaining: ['901'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463884.610969,VS0,VE805'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791106.102910,VS0,VE1095'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":6,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":6,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4909'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:24 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1243-FRA'] - x-timer: ['S1500463885.597953,VS0,VE200'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1502791107.242995,VS0,VE497'] 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 b4b07d5..3f22d6c 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,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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"number":6,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"number":6,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,25 +14,25 @@ interactions: connection: [keep-alive] content-length: ['1590'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:25 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1248-FRA'] - x-timer: ['S1500463885.052549,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791108.019923,VS0,VE154'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":6,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":6,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: @@ -42,64 +42,64 @@ interactions: connection: [keep-alive] content-length: ['4909'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:25 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1249-FRA'] - x-timer: ['S1500463885.268294,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791108.219930,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":7}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":7}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:25 GMT'] - fastly-ratelimit-remaining: ['603'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:28 GMT'] + fastly-ratelimit-remaining: ['900'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463885.448230,VS0,VE164'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1502791108.399918,VS0,VE481'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/7/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/7/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":7,"deleted_at":null,"created_at":"2017-07-19T11:31:26+00:00","updated_at":"2017-07-19T11:31:26+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":7,"deleted_at":null,"created_at":"2017-08-15T09:58:29+00:00","updated_at":"2017-08-15T09:58:29+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:26 GMT'] - fastly-ratelimit-remaining: ['602'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:29 GMT'] + fastly-ratelimit-remaining: ['899'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1234-FRA'] - x-timer: ['S1500463886.681522,VS0,VE534'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791109.023467,VS0,VE553'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -108,25 +108,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/7/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/7/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:31: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:26+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:29+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:26 GMT'] - fastly-ratelimit-remaining: ['601'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:29 GMT'] + fastly-ratelimit-remaining: ['898'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1240-FRA'] - x-timer: ['S1500463886.368056,VS0,VE558'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791110.752988,VS0,VE183'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -136,26 +136,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/7/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","version":"7","updated_at":"2017-07-19T11:31:27+00:00","deleted_at":null,"created_at":"2017-07-19T11:31: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":"1iL8YxzxDoUn4clwOvuxAq","version":"7","updated_at":"2017-08-15T09:58:30+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:30+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:27 GMT'] - fastly-ratelimit-remaining: ['600'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:30 GMT'] + fastly-ratelimit-remaining: ['897'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463887.987825,VS0,VE507'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791110.977610,VS0,VE540'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -163,78 +163,79 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/7/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/7/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"7","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:27+00:00","content_type":null,"updated_at":"2017-07-19T11:31:27+00:00"}'} + 302 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"7","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:30+00:00","content_type":null,"updated_at":"2017-08-15T09:58:30+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:28 GMT'] - fastly-ratelimit-remaining: ['599'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:31 GMT'] + fastly-ratelimit-remaining: ['896'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1226-FRA'] - x-timer: ['S1500463888.563652,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791111.583543,VS0,VE490'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/7/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/7/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:28 GMT'] - fastly-ratelimit-remaining: ['598'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:31 GMT'] + fastly-ratelimit-remaining: ['895'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463888.118998,VS0,VE543'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791111.121639,VS0,VE183'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":7,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:27+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":7,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:31+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58: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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5154'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:29 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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: ['S1500463889.739345,VS0,VE536'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1502791111.351536,VS0,VE209'] status: {code: 200, message: OK} - request: body: null @@ -243,7 +244,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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"number":6,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"number":6,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -251,25 +252,25 @@ interactions: connection: [keep-alive] content-length: ['1833'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:29 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1229-FRA'] - x-timer: ['S1500463889.335325,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-fra1223-FRA'] + x-timer: ['S1502791112.608032,VS0,VE153'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":7,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:27+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":7,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:31+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58: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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: @@ -279,64 +280,64 @@ interactions: connection: [keep-alive] content-length: ['5154'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:29 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1227-FRA'] - x-timer: ['S1500463890.545029,VS0,VE195'] + x-timer: ['S1502791112.808561,VS0,VE131'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":8}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":8}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:29 GMT'] - fastly-ratelimit-remaining: ['597'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:32 GMT'] + fastly-ratelimit-remaining: ['894'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1251-FRA'] - x-timer: ['S1500463890.793148,VS0,VE166'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791112.986808,VS0,VE519'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/8/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/8/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":8,"deleted_at":null,"created_at":"2017-07-19T11:31:30+00:00","updated_at":"2017-07-19T11:31:30+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":8,"deleted_at":null,"created_at":"2017-08-15T09:58:32+00:00","updated_at":"2017-08-15T09:58:32+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:30 GMT'] - fastly-ratelimit-remaining: ['596'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:32 GMT'] + fastly-ratelimit-remaining: ['893'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463890.032898,VS0,VE536'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791113.551668,VS0,VE202'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -345,25 +346,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/8/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/8/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:31: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:31+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58:33+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:33+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:32 GMT'] - fastly-ratelimit-remaining: ['595'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:33 GMT'] + fastly-ratelimit-remaining: ['892'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1225-FRA'] - x-timer: ['S1500463891.754248,VS0,VE1835'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791113.801269,VS0,VE521'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -373,26 +374,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/8/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","version":"8","updated_at":"2017-07-19T11:31:33+00:00","deleted_at":null,"created_at":"2017-07-19T11:31:33+00:00"}'} + Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"8","updated_at":"2017-08-15T09:58:33+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:33+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:33 GMT'] - fastly-ratelimit-remaining: ['594'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:33 GMT'] + fastly-ratelimit-remaining: ['891'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1248-FRA'] - x-timer: ['S1500463893.836295,VS0,VE576'] + x-served-by: ['app-slwdc9051-SL, cache-fra1227-FRA'] + x-timer: ['S1502791113.371456,VS0,VE537'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -400,77 +401,78 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/8/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/8/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"8","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:33+00:00","content_type":null,"updated_at":"2017-07-19T11:31:33+00:00"}'} + 301 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"8","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:34+00:00","content_type":null,"updated_at":"2017-08-15T09:58:34+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:34 GMT'] - fastly-ratelimit-remaining: ['593'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:34 GMT'] + fastly-ratelimit-remaining: ['890'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1250-FRA'] - x-timer: ['S1500463893.478824,VS0,VE527'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1502791114.031448,VS0,VE505'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/8/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/8/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:34 GMT'] - fastly-ratelimit-remaining: ['592'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:35 GMT'] + fastly-ratelimit-remaining: ['889'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1223-FRA'] - x-timer: ['S1500463894.080206,VS0,VE587'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1502791115.589949,VS0,VE484'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":8,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:33+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:31:29+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":8,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:34+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58:32+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5397'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:35 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1229-FRA'] - x-timer: ['S1500463895.894548,VS0,VE534'] + x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] + x-timer: ['S1502791115.114618,VS0,VE201'] 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 884a61b..4ab5cdd 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,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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"number":6,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"number":6,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,91 +14,92 @@ interactions: connection: [keep-alive] content-length: ['2076'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:36 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1234-FRA'] - x-timer: ['S1500463896.943483,VS0,VE485'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791115.494651,VS0,VE150'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":8,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:33+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:31:29+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":8,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:34+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58:32+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:24+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:27+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58:23+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.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}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5397'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:37 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1242-FRA'] - x-timer: ['S1500463897.510288,VS0,VE518'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1502791116.697175,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version response: - body: {string: !!python/unicode '{"service_id":"5bMKvngJvnzdNTqlUxZV9Q","number":9}'} + body: {string: !!python/unicode '{"service_id":"1iL8YxzxDoUn4clwOvuxAq","number":9}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:37 GMT'] - fastly-ratelimit-remaining: ['591'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:36 GMT'] + fastly-ratelimit-remaining: ['888'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] - x-timer: ['S1500463897.149079,VS0,VE188'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791116.875565,VS0,VE156'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/9/domain + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/9/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":9,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","updated_at":"2017-07-19T11:31:37+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":9,"deleted_at":null,"created_at":"2017-08-15T09:58:36+00:00","updated_at":"2017-08-15T09:58:36+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:37 GMT'] - fastly-ratelimit-remaining: ['590'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:36 GMT'] + fastly-ratelimit-remaining: ['887'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1242-FRA'] - x-timer: ['S1500463897.399659,VS0,VE272'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791116.075777,VS0,VE563'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/9/backend + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/9/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","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-07-19T11:31:38+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:38+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"1iL8YxzxDoUn4clwOvuxAq","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-08-15T09:58:37+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:37+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:38 GMT'] - fastly-ratelimit-remaining: ['589'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:37 GMT'] + fastly-ratelimit-remaining: ['886'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463898.759954,VS0,VE575'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791117.690592,VS0,VE509'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -135,26 +136,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/9/header + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/9/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"9","updated_at":"2017-07-19T11:31:38+00:00","deleted_at":null,"created_at":"2017-07-19T11:31:38+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":"1iL8YxzxDoUn4clwOvuxAq","version":"9","updated_at":"2017-08-15T09:58:37+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:37+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:38 GMT'] - fastly-ratelimit-remaining: ['588'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:37 GMT'] + fastly-ratelimit-remaining: ['885'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463898.451016,VS0,VE508'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791117.246684,VS0,VE156'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -162,103 +163,104 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/9/response_object + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/9/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"5bMKvngJvnzdNTqlUxZV9Q","version":"9","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:39+00:00","content_type":null,"updated_at":"2017-07-19T11:31:39+00:00"}'} + 302 status code","response":"Ok","service_id":"1iL8YxzxDoUn4clwOvuxAq","version":"9","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:37+00:00","content_type":null,"updated_at":"2017-08-15T09:58:37+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:39 GMT'] - fastly-ratelimit-remaining: ['587'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:37 GMT'] + fastly-ratelimit-remaining: ['884'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1238-FRA'] - x-timer: ['S1500463899.029348,VS0,VE482'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1502791117.443199,VS0,VE492'] 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/5bMKvngJvnzdNTqlUxZV9Q/version/9/settings + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/9/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:40 GMT'] - fastly-ratelimit-remaining: ['586'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:38 GMT'] + fastly-ratelimit-remaining: ['883'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463900.585220,VS0,VE561'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791118.986721,VS0,VE190'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/9/activate + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/9/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:39+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:37+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: ['Wed, 19 Jul 2017 11:31:41 GMT'] - fastly-ratelimit-remaining: ['585'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:39 GMT'] + fastly-ratelimit-remaining: ['882'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1225-FRA'] - x-timer: ['S1500463900.361149,VS0,VE836'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1502791118.222306,VS0,VE986'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:41 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1231-FRA'] - x-timer: ['S1500463901.402019,VS0,VE499'] + x-served-by: ['app-slwdc9051-SL, cache-fra1231-FRA'] + x-timer: ['S1502791119.252172,VS0,VE172'] status: {code: 200, message: OK} - request: body: null @@ -267,33 +269,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['2318'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:42 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1221-FRA'] - x-timer: ['S1500463902.967673,VS0,VE488'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791119.470211,VS0,VE161'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: @@ -302,25 +303,25 @@ interactions: connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:42 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1238-FRA'] - x-timer: ['S1500463903.657718,VS0,VE162'] + x-served-by: ['app-slwdc9051-SL, cache-fra1243-FRA'] + x-timer: ['S1502791120.676380,VS0,VE131'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: @@ -329,13 +330,13 @@ interactions: connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:43 GMT'] + date: ['Tue, 15 Aug 2017 09:58:40 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1234-FRA'] - x-timer: ['S1500463903.880287,VS0,VE163'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1502791120.854031,VS0,VE466'] 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 4ef6fd2..f2c63e6 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,33 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['2318'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:43 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1230-FRA'] - x-timer: ['S1500463903.312265,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra1232-FRA'] + x-timer: ['S1502791121.533945,VS0,VE492'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: @@ -41,42 +40,41 @@ interactions: connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:44 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1234-FRA'] - x-timer: ['S1500463904.517579,VS0,VE498'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791121.078962,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:44 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1241-FRA'] - x-timer: ['S1500463904.074959,VS0,VE500'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791121.252359,VS0,VE123'] status: {code: 200, message: OK} - request: body: null @@ -85,32 +83,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['2318'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:45 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1221-FRA'] - x-timer: ['S1500463905.648990,VS0,VE533'] + x-served-by: ['app-slwdc9051-SL, cache-fra1230-FRA'] + x-timer: ['S1502791121.425143,VS0,VE159'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: @@ -119,40 +118,41 @@ interactions: connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:45 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1244-FRA'] - x-timer: ['S1500463905.270319,VS0,VE533'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1502791122.625160,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:46 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1236-FRA'] - x-timer: ['S1500463906.997789,VS0,VE536'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791122.800271,VS0,VE138'] 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 449b10d..445578f 100644 --- a/tests/fixtures/cassettes/test_service_does_not_exist +++ b/tests/fixtures/cassettes/test_service_does_not_exist @@ -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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,73 +14,74 @@ interactions: connection: [keep-alive] content-length: ['2318'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:47 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1231-FRA'] - x-timer: ['S1500463907.917615,VS0,VE529'] + x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] + x-timer: ['S1502791122.081102,VS0,VE154'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/details + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:30:51+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:03+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:30:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:12+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:08+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:18+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:24+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:20+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:25+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:27+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:29+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:33+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}],"created_at":"2017-07-19T11:30:51+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:30:51+00:00","id":"5bMKvngJvnzdNTqlUxZV9Q","version":{"testing":false,"number":9,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:57:59+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:57:59+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:11+00:00","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:07+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:18+00:00","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:14+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:22+00:00","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:19+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:27+00:00","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:23+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false},{"testing":false,"locked":false,"number":7,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:28+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:31+00:00","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:32+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:34+00:00","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}],"created_at":"2017-08-15T09:57:59+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:57:59+00:00","id":"1iL8YxzxDoUn4clwOvuxAq","version":{"testing":false,"number":9,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"updated_at":"2017-07-19T11:31:41+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31:37+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"updated_at":"2017-08-15T09:58:39+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5637'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:47 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1242-FRA'] - x-timer: ['S1500463908.506136,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra1235-FRA'] + x-timer: ['S1502791122.281006,VS0,VE129'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q/version/9/deactivate + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq/version/9/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":false,"service_id":"5bMKvngJvnzdNTqlUxZV9Q","staging":false,"created_at":"2017-07-19T11:31:37+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:41+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":false,"service_id":"1iL8YxzxDoUn4clwOvuxAq","staging":false,"created_at":"2017-08-15T09:58:35+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:39+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:48 GMT'] - fastly-ratelimit-remaining: ['584'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:42 GMT'] + fastly-ratelimit-remaining: ['881'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1223-FRA'] - x-timer: ['S1500463908.111896,VS0,VE588'] + x-served-by: ['app-slwdc9051-SL, cache-fra1221-FRA'] + x-timer: ['S1502791122.463117,VS0,VE210'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/5bMKvngJvnzdNTqlUxZV9Q + uri: https://api.fastly.com/service/1iL8YxzxDoUn4clwOvuxAq response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,16 +90,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:49 GMT'] - fastly-ratelimit-remaining: ['583'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:42 GMT'] + fastly-ratelimit-remaining: ['880'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463909.856831,VS0,VE538'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1502791123.714844,VS0,VE236'] status: {code: 200, message: OK} - request: body: null @@ -108,21 +109,21 @@ interactions: uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load - service ''31RPDMBpiruA1yfGA2djLm''-''Jimdo Fastly Ansible Module Test''"}'} + service ''5zLQhRXD9EpYQjnj0fA6e9''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:50 GMT'] + date: ['Tue, 15 Aug 2017 09:58:43 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: ['S1500463910.766585,VS0,VE513'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791123.002000,VS0,VE133'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -131,33 +132,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo - Fastly Ansible Module Test","publish_key":"660df08015297ecd69b68bcbd20ca998b47678d4","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:50+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-07-19T11:31:50+00:00","comment":"","updated_at":"2017-07-19T11:31:50+00:00","id":"6gDuqyu6ypoNnI5ow0lR2s"}'} + body: {string: !!python/unicode '{"customer_id":"5zLQhRXD9EpYQjnj0fA6e9","name":"Jimdo + Fastly Ansible Module Test","publish_key":"91fa3c17e7c88148e81c1671ed5ed77b754b98ed","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:43+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:43+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-08-15T09:58:43+00:00","comment":"","updated_at":"2017-08-15T09:58:43+00:00","id":"2Vd6xbg6mUIqUed1m3f0Rc"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['538'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:50 GMT'] - fastly-ratelimit-remaining: ['582'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:43 GMT'] + fastly-ratelimit-remaining: ['879'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463910.339249,VS0,VE528'] + x-served-by: ['app-slwdc9051-SL, cache-fra1250-FRA'] + x-timer: ['S1502791123.178023,VS0,VE545'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/details + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/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":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:50+00:00","deployed":false}],"created_at":"2017-07-19T11:31:50+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:31:50+00:00","id":"6gDuqyu6ypoNnI5ow0lR2s","version":{"testing":false,"number":1,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"updated_at":"2017-07-19T11:31:50+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:31:50+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:43+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:43+00:00","deployed":false}],"created_at":"2017-08-15T09:58:43+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:43+00:00","id":"2Vd6xbg6mUIqUed1m3f0Rc","version":{"testing":false,"number":1,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"updated_at":"2017-08-15T09:58:43+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58:43+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'] @@ -165,64 +166,64 @@ interactions: connection: [keep-alive] content-length: ['1077'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:51 GMT'] + date: ['Tue, 15 Aug 2017 09:58:44 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] - x-timer: ['S1500463911.008877,VS0,VE499'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791124.861963,VS0,VE515'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/version + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/version response: - body: {string: !!python/unicode '{"service_id":"6gDuqyu6ypoNnI5ow0lR2s","number":2}'} + body: {string: !!python/unicode '{"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:52 GMT'] - fastly-ratelimit-remaining: ['581'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:44 GMT'] + fastly-ratelimit-remaining: ['878'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463912.071496,VS0,VE552'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791124.473870,VS0,VE489'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/version/2/domain + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"6gDuqyu6ypoNnI5ow0lR2s","version":2,"deleted_at":null,"created_at":"2017-07-19T11:31:53+00:00","updated_at":"2017-07-19T11:31:53+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"2Vd6xbg6mUIqUed1m3f0Rc","version":2,"deleted_at":null,"created_at":"2017-08-15T09:58:45+00:00","updated_at":"2017-08-15T09:58:45+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:53 GMT'] - fastly-ratelimit-remaining: ['580'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:45 GMT'] + fastly-ratelimit-remaining: ['877'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1239-FRA'] - x-timer: ['S1500463913.886283,VS0,VE614'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791125.013933,VS0,VE207'] 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/6gDuqyu6ypoNnI5ow0lR2s/version/2/backend + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","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-07-19T11:31: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:31:54+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","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-08-15T09:58:45+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:45+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:54 GMT'] - fastly-ratelimit-remaining: ['579'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:45 GMT'] + fastly-ratelimit-remaining: ['876'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1250-FRA'] - x-timer: ['S1500463914.565310,VS0,VE578'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791125.266945,VS0,VE212'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -259,26 +260,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/version/2/header + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/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":"6gDuqyu6ypoNnI5ow0lR2s","version":"2","updated_at":"2017-07-19T11:31:54+00:00","deleted_at":null,"created_at":"2017-07-19T11:31:54+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":"2Vd6xbg6mUIqUed1m3f0Rc","version":"2","updated_at":"2017-08-15T09:58:45+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:45+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:54 GMT'] - fastly-ratelimit-remaining: ['578'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:45 GMT'] + fastly-ratelimit-remaining: ['875'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1240-FRA'] - x-timer: ['S1500463914.362366,VS0,VE525'] + x-served-by: ['app-slwdc9051-SL, cache-fra1226-FRA'] + x-timer: ['S1502791126.527883,VS0,VE160'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -286,87 +287,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/version/2/response_object + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"6gDuqyu6ypoNnI5ow0lR2s","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:31:55+00:00","content_type":null,"updated_at":"2017-07-19T11:31:55+00:00"}'} + 302 status code","response":"Ok","service_id":"2Vd6xbg6mUIqUed1m3f0Rc","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:46+00:00","content_type":null,"updated_at":"2017-08-15T09:58:46+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:55 GMT'] - fastly-ratelimit-remaining: ['577'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:46 GMT'] + fastly-ratelimit-remaining: ['874'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463915.984837,VS0,VE203'] + x-served-by: ['app-slwdc9051-SL, cache-fra1233-FRA'] + x-timer: ['S1502791126.739507,VS0,VE549'] 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/6gDuqyu6ypoNnI5ow0lR2s/version/2/settings + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6gDuqyu6ypoNnI5ow0lR2s"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:55 GMT'] - fastly-ratelimit-remaining: ['576'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:46 GMT'] + fastly-ratelimit-remaining: ['873'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463915.251006,VS0,VE593'] + x-served-by: ['app-slwdc9051-SL, cache-fra1228-FRA'] + x-timer: ['S1502791126.337628,VS0,VE536'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/version/2/activate + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:55+00:00","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:46+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: ['Wed, 19 Jul 2017 11:31:56 GMT'] - fastly-ratelimit-remaining: ['575'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:47 GMT'] + fastly-ratelimit-remaining: ['872'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463916.027824,VS0,VE581'] + x-served-by: ['app-slwdc9051-SL, cache-fra1251-FRA'] + x-timer: ['S1502791127.979439,VS0,VE1015'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/details + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/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":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:56+00:00","deployed":false}],"created_at":"2017-07-19T11:31:50+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:31:50+00:00","id":"6gDuqyu6ypoNnI5ow0lR2s","version":{"testing":false,"number":2,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"updated_at":"2017-07-19T11:31:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:43+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:43+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:47+00:00","deployed":false}],"created_at":"2017-08-15T09:58:43+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:43+00:00","id":"2Vd6xbg6mUIqUed1m3f0Rc","version":{"testing":false,"number":2,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"updated_at":"2017-08-15T09:58:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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.example7000.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":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"updated_at":"2017-07-19T11:31:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"updated_at":"2017-08-15T09:58:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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.example7000.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}}}'} headers: @@ -376,13 +377,13 @@ interactions: connection: [keep-alive] content-length: ['3941'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:56 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-fra1247-FRA'] - x-timer: ['S1500463917.688528,VS0,VE273'] + x-served-by: ['app-slwdc9051-SL, cache-fra1222-FRA'] + x-timer: ['S1502791128.040465,VS0,VE204'] 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 4513927..5508bc3 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,33 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:50+00:00","deployed":false},{"testing":false,"number":2,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-07-19T11:31:50+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:31:50+00:00","id":"6gDuqyu6ypoNnI5ow0lR2s"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:43+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:43+00:00","deployed":false},{"testing":false,"number":2,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-08-15T09:58:43+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:43+00:00","id":"2Vd6xbg6mUIqUed1m3f0Rc"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['622'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:57 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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: ['S1500463917.180591,VS0,VE528'] + x-served-by: ['app-slwdc9051-SL, cache-fra1247-FRA'] + x-timer: ['S1502791128.431258,VS0,VE490'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/details + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/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":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:50+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:56+00:00","deployed":false}],"created_at":"2017-07-19T11:31:50+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:31:50+00:00","id":"6gDuqyu6ypoNnI5ow0lR2s","version":{"testing":false,"number":2,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"updated_at":"2017-07-19T11:31:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:43+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:43+00:00","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:47+00:00","deployed":false}],"created_at":"2017-08-15T09:58:43+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:43+00:00","id":"2Vd6xbg6mUIqUed1m3f0Rc","version":{"testing":false,"number":2,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"updated_at":"2017-08-15T09:58:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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.example7000.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":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"updated_at":"2017-07-19T11:31:56+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-07-19T11:31: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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 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":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"updated_at":"2017-08-15T09:58:47+00:00","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-08-15T09:58: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.example7000.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}}}'} headers: @@ -42,46 +41,46 @@ interactions: connection: [keep-alive] content-length: ['3941'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:57 GMT'] + date: ['Tue, 15 Aug 2017 09:58:49 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra1242-FRA'] - x-timer: ['S1500463918.770521,VS0,VE210'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791129.965205,VS0,VE165'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s/version/2/deactivate + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6gDuqyu6ypoNnI5ow0lR2s","staging":false,"created_at":"2017-07-19T11:31:52+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:31:56+00:00","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2Vd6xbg6mUIqUed1m3f0Rc","staging":false,"created_at":"2017-08-15T09:58:44+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:47+00:00","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:58 GMT'] - fastly-ratelimit-remaining: ['574'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:49 GMT'] + fastly-ratelimit-remaining: ['871'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1251-FRA'] - x-timer: ['S1500463918.043556,VS0,VE609'] + x-served-by: ['app-slwdc9051-SL, cache-fra1245-FRA'] + x-timer: ['S1502791129.175788,VS0,VE264'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6gDuqyu6ypoNnI5ow0lR2s + uri: https://api.fastly.com/service/2Vd6xbg6mUIqUed1m3f0Rc response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,16 +89,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:59 GMT'] - fastly-ratelimit-remaining: ['573'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:50 GMT'] + fastly-ratelimit-remaining: ['870'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463919.751090,VS0,VE529'] + x-served-by: ['app-slwdc9051-SL, cache-fra1249-FRA'] + x-timer: ['S1502791130.592139,VS0,VE510'] status: {code: 200, message: OK} - request: body: null @@ -109,21 +108,22 @@ interactions: uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load - service ''31RPDMBpiruA1yfGA2djLm''-''Jimdo Fastly Ansible Module Test''"}'} + service ''5zLQhRXD9EpYQjnj0fA6e9''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:31:59 GMT'] + date: ['Tue, 15 Aug 2017 09:58:50 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: ['S1500463919.399666,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra1241-FRA'] + x-timer: ['S1502791130.165812,VS0,VE135'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -132,33 +132,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo - Fastly Ansible Module Test","publish_key":"592ccea618550825d8a57cfcee39fa05fbfb306e","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6r1fI4hISdXUQ0XSyEvkZI","staging":false,"created_at":"2017-07-19T11:32:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:00+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-07-19T11:32:00+00:00","comment":"","updated_at":"2017-07-19T11:32:00+00:00","id":"6r1fI4hISdXUQ0XSyEvkZI"}'} + body: {string: !!python/unicode '{"customer_id":"5zLQhRXD9EpYQjnj0fA6e9","name":"Jimdo + Fastly Ansible Module Test","publish_key":"e975ad9e2d52cb9763c3a31b0443877b8e858739","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2dd9jzdWJzexvCdukDL0Qe","staging":false,"created_at":"2017-08-15T09:58:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:50+00:00","deployed":false}],"deleted_at":null,"created_at":"2017-08-15T09:58:50+00:00","comment":"","updated_at":"2017-08-15T09:58:50+00:00","id":"2dd9jzdWJzexvCdukDL0Qe"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['538'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:00 GMT'] - fastly-ratelimit-remaining: ['572'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:50 GMT'] + fastly-ratelimit-remaining: ['869'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463920.985523,VS0,VE476'] + x-served-by: ['app-slwdc9051-SL, cache-fra1240-FRA'] + x-timer: ['S1502791130.351820,VS0,VE492'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6r1fI4hISdXUQ0XSyEvkZI/details + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/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":"6r1fI4hISdXUQ0XSyEvkZI","staging":false,"created_at":"2017-07-19T11:32:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:00+00:00","deployed":false}],"created_at":"2017-07-19T11:32:00+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:00+00:00","id":"6r1fI4hISdXUQ0XSyEvkZI","version":{"testing":false,"number":1,"service_id":"6r1fI4hISdXUQ0XSyEvkZI","staging":false,"updated_at":"2017-07-19T11:32:00+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:32:00+00:00","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2dd9jzdWJzexvCdukDL0Qe","staging":false,"created_at":"2017-08-15T09:58:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:50+00:00","deployed":false}],"created_at":"2017-08-15T09:58:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:50+00:00","id":"2dd9jzdWJzexvCdukDL0Qe","version":{"testing":false,"number":1,"service_id":"2dd9jzdWJzexvCdukDL0Qe","staging":false,"updated_at":"2017-08-15T09:58:50+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58: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'] @@ -166,64 +166,64 @@ interactions: connection: [keep-alive] content-length: ['1077'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:01 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1232-FRA'] - x-timer: ['S1500463921.682544,VS0,VE526'] + x-served-by: ['app-slwdc9051-SL, cache-fra1246-FRA'] + x-timer: ['S1502791131.883854,VS0,VE200'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6r1fI4hISdXUQ0XSyEvkZI/version + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/version response: - body: {string: !!python/unicode '{"service_id":"6r1fI4hISdXUQ0XSyEvkZI","number":2}'} + body: {string: !!python/unicode '{"service_id":"2dd9jzdWJzexvCdukDL0Qe","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:01 GMT'] - fastly-ratelimit-remaining: ['571'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:51 GMT'] + fastly-ratelimit-remaining: ['868'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463921.355690,VS0,VE584'] + x-served-by: ['app-slwdc9051-SL, cache-fra1248-FRA'] + x-timer: ['S1502791131.130641,VS0,VE523'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example7000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6r1fI4hISdXUQ0XSyEvkZI/version/2/domain + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"6r1fI4hISdXUQ0XSyEvkZI","version":2,"deleted_at":null,"created_at":"2017-07-19T11:32:02+00:00","updated_at":"2017-07-19T11:32:02+00:00"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example7000.com","service_id":"2dd9jzdWJzexvCdukDL0Qe","version":2,"deleted_at":null,"created_at":"2017-08-15T09:58:52+00:00","updated_at":"2017-08-15T09:58:52+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['198'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:02 GMT'] - fastly-ratelimit-remaining: ['570'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:52 GMT'] + fastly-ratelimit-remaining: ['867'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1247-FRA'] - x-timer: ['S1500463922.009397,VS0,VE526'] + x-served-by: ['app-slwdc9051-SL, cache-fra1238-FRA'] + x-timer: ['S1502791132.891275,VS0,VE564'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -232,25 +232,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6r1fI4hISdXUQ0XSyEvkZI/version/2/backend + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"6r1fI4hISdXUQ0XSyEvkZI","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-07-19T11:32: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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-07-19T11:32:03+00:00","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","ssl_cert_hostname":null,"address":"127.0.0.1","port":80,"ssl_hostname":null,"shield":null,"service_id":"2dd9jzdWJzexvCdukDL0Qe","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-08-15T09:58:52+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,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2017-08-15T09:58:52+00:00","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['726'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:03 GMT'] - fastly-ratelimit-remaining: ['569'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:53 GMT'] + fastly-ratelimit-remaining: ['866'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1250-FRA'] - x-timer: ['S1500463923.602410,VS0,VE541'] + x-served-by: ['app-slwdc9051-SL, cache-fra1239-FRA'] + x-timer: ['S1502791133.524494,VS0,VE490'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -260,26 +260,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6r1fI4hISdXUQ0XSyEvkZI/version/2/header + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/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":"6r1fI4hISdXUQ0XSyEvkZI","version":"2","updated_at":"2017-07-19T11:32:03+00:00","deleted_at":null,"created_at":"2017-07-19T11:32:03+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":"2dd9jzdWJzexvCdukDL0Qe","version":"2","updated_at":"2017-08-15T09:58:53+00:00","deleted_at":null,"created_at":"2017-08-15T09:58:53+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['422'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:03 GMT'] - fastly-ratelimit-remaining: ['568'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:53 GMT'] + fastly-ratelimit-remaining: ['865'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463923.229067,VS0,VE499'] + x-served-by: ['app-slwdc9051-SL, cache-fra1244-FRA'] + x-timer: ['S1502791133.064177,VS0,VE516'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -287,60 +287,60 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6r1fI4hISdXUQ0XSyEvkZI/version/2/response_object + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","response":"Ok","service_id":"6r1fI4hISdXUQ0XSyEvkZI","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-07-19T11:32:04+00:00","content_type":null,"updated_at":"2017-07-19T11:32:04+00:00"}'} + 302 status code","response":"Ok","service_id":"2dd9jzdWJzexvCdukDL0Qe","version":"2","content":null,"deleted_at":null,"cache_condition":"","created_at":"2017-08-15T09:58:53+00:00","content_type":null,"updated_at":"2017-08-15T09:58:53+00:00"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['292'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:04 GMT'] - fastly-ratelimit-remaining: ['567'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:53 GMT'] + fastly-ratelimit-remaining: ['864'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9050-SL, cache-fra1224-FRA'] - x-timer: ['S1500463924.857485,VS0,VE498'] + x-served-by: ['app-slwdc9051-SL, cache-fra1224-FRA'] + x-timer: ['S1502791134.634215,VS0,VE197'] 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/6r1fI4hISdXUQ0XSyEvkZI/version/2/settings + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6r1fI4hISdXUQ0XSyEvkZI"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2dd9jzdWJzexvCdukDL0Qe"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:04 GMT'] - fastly-ratelimit-remaining: ['566'] - fastly-ratelimit-reset: ['1500465600'] + date: ['Tue, 15 Aug 2017 09:58:54 GMT'] + fastly-ratelimit-remaining: ['863'] + fastly-ratelimit-reset: ['1502791200'] status: [200 OK] vary: [Accept-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: ['S1500463924.417084,VS0,VE236'] + x-served-by: ['app-slwdc9051-SL, cache-fra1229-FRA'] + x-timer: ['S1502791134.872973,VS0,VE570'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6r1fI4hISdXUQ0XSyEvkZI/details + uri: https://api.fastly.com/service/2dd9jzdWJzexvCdukDL0Qe/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":"6r1fI4hISdXUQ0XSyEvkZI","staging":false,"created_at":"2017-07-19T11:32:00+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:00+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"6r1fI4hISdXUQ0XSyEvkZI","staging":false,"created_at":"2017-07-19T11:32:01+00:00","deleted_at":null,"comment":"","updated_at":"2017-07-19T11:32:04+00:00","deployed":false}],"created_at":"2017-07-19T11:32:00+00:00","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2017-07-19T11:32:00+00:00","id":"6r1fI4hISdXUQ0XSyEvkZI","version":{"testing":false,"number":2,"service_id":"6r1fI4hISdXUQ0XSyEvkZI","staging":false,"updated_at":"2017-07-19T11:32:04+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-07-19T11:32:01+00:00","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"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.example7000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2dd9jzdWJzexvCdukDL0Qe","staging":false,"created_at":"2017-08-15T09:58:50+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:50+00:00","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2dd9jzdWJzexvCdukDL0Qe","staging":false,"created_at":"2017-08-15T09:58:51+00:00","deleted_at":null,"comment":"","updated_at":"2017-08-15T09:58:53+00:00","deployed":false}],"created_at":"2017-08-15T09:58:50+00:00","customer_id":"5zLQhRXD9EpYQjnj0fA6e9","comment":"","updated_at":"2017-08-15T09:58:50+00:00","id":"2dd9jzdWJzexvCdukDL0Qe","version":{"testing":false,"number":2,"service_id":"2dd9jzdWJzexvCdukDL0Qe","staging":false,"updated_at":"2017-08-15T09:58:53+00:00","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-08-15T09:58: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":"test1","name":"cdn.example7000.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}'} headers: @@ -350,13 +350,13 @@ interactions: connection: [keep-alive] content-length: ['2354'] content-type: [application/json] - date: ['Wed, 19 Jul 2017 11:32:04 GMT'] + date: ['Tue, 15 Aug 2017 09:58: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-slwdc9050-SL, cache-fra1228-FRA'] - x-timer: ['S1500463925.715545,VS0,VE197'] + x-served-by: ['app-slwdc9051-SL, cache-fra1220-FRA'] + x-timer: ['S1502791134.497190,VS0,VE155'] status: {code: 200, message: OK} version: 1 diff --git a/tests/test.yml b/tests/test.yml index c14062f..aaaf2d1 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -32,4 +32,13 @@ response_objects: - name: Set 302 status code status: 302 + vcl_snippets: + - name: Deliver stale content + type: deliver + content: > + if (resp.status >= 500 && resp.status < 600) { + if (stale.exists) { + restart; + } + } diff --git a/tests/test_fastly_vcl_snippets.py b/tests/test_fastly_vcl_snippets.py new file mode 100644 index 0000000..0f2d1b6 --- /dev/null +++ b/tests/test_fastly_vcl_snippets.py @@ -0,0 +1,50 @@ +#!/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 TestFastlyVclSnippets(TestCommon): + + VCL_SNIPPETS_NAME = 'Deliver stale content'; + + @TestCommon.vcr.use_cassette() + def test_fastly_vcl_snippets_deliver_stale_content(self): + content = ''' + if (resp.status >= 500 && resp.status < 600) { + if (stale.exists) { + restart; + } + } + ''' + + vcl_snippets_configuration = self.minimal_configuration.copy() + vcl_snippets_configuration.update({ + 'snippets': [{ + 'name': self.VCL_SNIPPETS_NAME, + 'dynamic': 0, + 'type': 'deliver', + 'content': content, + }] + }) + + configuration = FastlyConfiguration(vcl_snippets_configuration) + service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, configuration).service + + self.assertEqual(service.active_version.configuration.snippets[0].name, self.VCL_SNIPPETS_NAME) + self.assertEqual(service.active_version.configuration.snippets[0].dynamic, 0) + self.assertEqual(service.active_version.configuration.snippets[0].type, 'deliver') + self.assertEqual(service.active_version.configuration.snippets[0].content, content) + 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() +