From 560f0ca1435aef22aeadb6e7d6e8892e6349708e Mon Sep 17 00:00:00 2001 From: joaopereiramrf Date: Sun, 18 Feb 2018 17:33:30 +0100 Subject: [PATCH 01/10] clone when the service exists delete all settings create all settings from scratch --- library/fastly_service.py | 283 +++++++++++++++++++++++++++++++++++++- 1 file changed, 277 insertions(+), 6 deletions(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index e0f8521..77ef427 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -644,6 +644,19 @@ def _request(self, path, method='GET', payload=None, headers=None): conn.request(method, path, body, headers) return FastlyResponse(conn.getresponse()) + def get_active_version(self, service_id): + response = self._request('/service/%s/version/active' % service_id) + if response.status == 200: + cloned_from_version = response.payload['number'] + return cloned_from_version + + def clone_old_version(self, service_id, version_to_clone): + response = self._request('/service/%s/version/%s/clone' % (service_id, version_to_clone), 'PUT') + if response.status == 200: + return response.payload + else: + raise Exception("Could not clone version '%s' for service '%s': %s" % (version_to_clone, service_id, response.payload['detail'])) + def get_service_by_name(self, service_name): response = self._request('/service/search?name=%s' % urllib.quote(service_name)) if response.status == 200: @@ -707,6 +720,14 @@ def deactivate_version(self, service_id, version): raise Exception( "Error deactivating version %s for service %s (%s)" % (version, service_id, response.payload['detail'])) + def get_domain_name(self, service_id, version): + response = self._request('/service/%s/version/%s/domain' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving domain for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) + def create_domain(self, service_id, version, domain): response = self._request('/service/%s/version/%s/domain' % (service_id, version), 'POST', domain) if response.status == 200: @@ -715,6 +736,22 @@ def create_domain(self, service_id, version, domain): raise Exception("Error creating domain for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_domain(self, service_id, version, domain): + response = self._request('/service/%s/version/%s/domain/%s' % (service_id, version, domain), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting domain %s service %s, version %s (%s)" % (domain, service_id, version, + response.payload['detail'])) + def get_healthcheck_name(self, service_id, version): + response = self._request('/service/%s/version/%s/healthcheck' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception("Error getting healthcheck name service %s, version %s (%s)" % (service_id, version, + response.payload['detail'])) + def create_healthcheck(self, service_id, version, healthcheck): response = self._request('/service/%s/version/%s/healthcheck' % (service_id, version), 'POST', healthcheck) if response.status == 200: @@ -723,6 +760,24 @@ def create_healthcheck(self, service_id, version, healthcheck): raise Exception("Error creating healthcheck for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_healthcheck(self, service_id, version, healthcheck): + response = self._request('/service/%s/version/%s/healthcheck/%s' % (service_id, version, healthcheck), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting healthcheck %s service %s, version %s (%s)" % ( + healthcheck, service_id, version, response.payload['detail'])) + + def get_backend_name(self, service_id, version): + response = self._request('/service/%s/version/%s/backend' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving backend for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) + def create_backend(self, service_id, version, backend): response = self._request('/service/%s/version/%s/backend' % (service_id, version), 'POST', backend) if response.status == 200: @@ -731,6 +786,24 @@ def create_backend(self, service_id, version, backend): raise Exception("Error creating backend for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_backend(self, service_id, version, backend): + response = self._request('/service/%s/version/%s/backend/%s' % (service_id, version, backend), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting backend %s service %s, version %s (%s)" % ( + backend, service_id, version, response.payload['detail'])) + + def get_director_name(self, service_id, version): + response = self._request('/service/%s/version/%s/director' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving director for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) + def create_director(self, service_id, version, director): response = self._request('/service/%s/version/%s/director' % (service_id, version), 'POST', director) if response.status != 200: @@ -746,6 +819,24 @@ def create_director(self, service_id, version, director): director.name, backend, service_id, version, response.payload['detail'])) return payload + def delete_director(self, service_id, version, director): + response = self._request('/service/%s/version/%s/director/%s' % (service_id, version, director), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting director %s service %s, version %s (%s)" % ( + director, service_id, version, response.payload['detail'])) + + def get_cache_settings_name(self, service_id, version): + response = self._request('/service/%s/version/%s/cache_settings' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving cache_settings for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) + def create_cache_settings(self, service_id, version, cache_settings): response = self._request('/service/%s/version/%s/cache_settings' % (service_id, version), 'POST', cache_settings) if response.status == 200: @@ -754,6 +845,23 @@ def create_cache_settings(self, service_id, version, cache_settings): raise Exception("Error creating cache_settings for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_cache_settings(self, service_id, version, cache_settings): + response = self._request('/service/%s/version/%s/backend/%s' % (service_id, version, cache_settings), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting cache_settings %s service %s, version %s (%s)" % ( + cache_settings, service_id, version, response.payload['detail'])) + + def get_condition_name(self, service_id, version): + response = self._request('/service/%s/version/%s/condition' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving condition for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) + def create_condition(self, service_id, version, condition): response = self._request('/service/%s/version/%s/condition' % (service_id, version), 'POST', condition) if response.status == 200: @@ -762,6 +870,24 @@ def create_condition(self, service_id, version, condition): raise Exception("Error creating condition for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_condition(self, service_id, version, condition): + response = self._request('/service/%s/version/%s/condition/%s' % (service_id, version, condition), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting condition %s service %s, version %s (%s)" % ( + condition, service_id, version, response.payload['detail'])) + + def get_gzip_name(self, service_id, version): + response = self._request('/service/%s/version/%s/gzip' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving gzip for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) + def create_gzip(self, service_id, version, gzip): response = self._request('/service/%s/version/%s/gzip' % (service_id, version), 'POST', gzip) @@ -771,6 +897,24 @@ def create_gzip(self, service_id, version, gzip): raise Exception("Error creating gzip for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_gzip(self, service_id, version, gzip): + response = self._request('/service/%s/version/%s/backend/%s' % (service_id, version, gzip), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting gzip %s service %s, version %s (%s)" % ( + gzip, service_id, version, response.payload['detail'])) + + def get_header_name(self, service_id, version): + response = self._request('/service/%s/version/%s/header' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving header for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) + def create_header(self, service_id, version, header): response = self._request('/service/%s/version/%s/header' % (service_id, version), 'POST', header) if response.status == 200: @@ -779,6 +923,24 @@ def create_header(self, service_id, version, header): raise Exception("Error creating header for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_header(self, service_id, version, header): + response = self._request('/service/%s/version/%s/header/%s' % (service_id, version, header), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting header %s service %s, version %s (%s)" % ( + header, service_id, version, response.payload['detail'])) + + def get_request_settings_name(self, service_id, version): + response = self._request('/service/%s/version/%s/request_settings' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving request_settings for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) + def create_request_setting(self, service_id, version, request_setting): response = self._request('/service/%s/version/%s/request_settings' % (service_id, version), 'POST', request_setting) @@ -788,6 +950,24 @@ def create_request_setting(self, service_id, version, request_setting): raise Exception("Error creating request setting for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_request_settings(self, service_id, version, request_setting): + response = self._request('/service/%s/version/%s/request_settings/%s' % (service_id, version, request_setting), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting request_setting %s service %s, version %s (%s)" % ( + request_setting, service_id, version, response.payload['detail'])) + + def get_response_objects_name(self, service_id, version): + response = self._request('/service/%s/version/%s/response_object' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving response_object for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) + def create_response_object(self, service_id, version, response_object): response = self._request('/service/%s/version/%s/response_object' % (service_id, version), 'POST', response_object) @@ -797,6 +977,24 @@ def create_response_object(self, service_id, version, response_object): raise Exception("Error creating response object for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) + def delete_response_object(self, service_id, version, response_object): + response = self._request('/service/%s/version/%s/response_object/%s' % (service_id, version, response_object), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting response_object %s service %s, version %s (%s)" % ( + response_object, service_id, version, response.payload['detail'])) + + def get_vcl_snippet_name(self, service_id, version): + response = self._request('/service/%s/version/%s/snippet' % (service_id, version), 'GET') + if response.status == 200: + return response.payload + else: + raise Exception( + "Error retrieving vcl snippt 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) @@ -805,6 +1003,15 @@ def create_vcl_snippet(self, service_id, version, vcl_snippet): else: raise Exception("Error creating VCL snippet '%s' for service %s, version %s (%s)" % (vcl_snippet['name'], service_id, version, response.payload['detail'])) + def delete_vcl_snippet(self, service_id, version, snippet): + response = self._request('/service/%s/version/%s/snippet/%s' % (service_id, version, snippet), + 'DELETE') + if response.status == 200: + return response.payload + else: + raise Exception("Error deleting vcl snippet %s service %s, version %s (%s)" % ( + snippet, 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: @@ -828,7 +1035,8 @@ def __init__(self, client): def apply_configuration(self, service_name, fastly_configuration, activate_new_version=True): actions = [] - + clone = False + version_number = "" service = self.client.get_service_by_name(service_name) if service is None: @@ -841,19 +1049,82 @@ def apply_configuration(self, service_name, fastly_configuration, activate_new_v current_version = service.latest_version if current_version is None: - self.deploy_version_with_configuration(service.id, fastly_configuration, activate_new_version) + self.deploy_version_with_configuration(service.id, fastly_configuration, + activate_new_version) actions.append("Deployed new version because service has no active version") elif fastly_configuration != current_version.configuration: - self.deploy_version_with_configuration(service.id, fastly_configuration, activate_new_version) + version_number = self.clone_old_version(service.id) + clone = True + self.delete_version_before_apply_config(service.id, version_number, fastly_configuration) + self.deploy_version_with_configuration(service.id, fastly_configuration, + activate_new_version, clone, version_number) actions.append("Deployed new version because settings are not up to date") changed = len(actions) > 0 service = self.client.get_service(service.id) return FastlyStateEnforcerResult(actions=actions, changed=changed, service=service) - def deploy_version_with_configuration(self, service_id, configuration, activate_version): - version = self.client.create_version(service_id) - version_number = version['number'] + def clone_old_version(self, service_id): + version_to_clone = self.client.get_active_version(service_id) + clone = self.client.clone_old_version(service_id, version_to_clone) + clone_version_number = clone['number'] + return clone_version_number + + def delete_version_before_apply_config(self, service_id, version_to_delete, configuration): + + domain = self.client.get_domain_name(service_id, version_to_delete) + healthcheck = self.client.get_healthcheck_name(service_id, version_to_delete) + condition = self.client.get_condition_name(service_id, version_to_delete) + backend = self.client.get_backend_name(service_id, version_to_delete) + director = self.client.get_director_name(service_id, version_to_delete) + cache_settings = self.client.get_cache_settings_name(service_id, version_to_delete) + gzips = self.client.get_gzip_name(service_id, version_to_delete) + headers = self.client.get_header_name(service_id, version_to_delete) + request_settings = self.client.get_request_settings_name(service_id, version_to_delete) + response_objects = self.client.get_response_objects_name(service_id, version_to_delete) + snippets = self.client.get_vcl_snippet_name(service_id, version_to_delete) + + for domain_name in domain: + self.client.delete_domain(service_id, version_to_delete, domain_name['name']) + + for healthcheck_name in healthcheck: + self.client.delete_healthcheck(service_id, version_to_delete, healthcheck_name['name']) + + for condition_name in condition: + self.client.delete_condition(service_id, version_to_delete, condition_name['name']) + + for backend_name in backend: + self.client.delete_backend(service_id, version_to_delete, backend_name['name']) + + for director_name in director: + self.client.delete_backend(service_id, version_to_delete, director_name['name']) + + for cache_settings_name in cache_settings: + self.client.delete_cache_settings(service_id, version_to_delete, cache_settings_name['name']) + + for gzip_name in gzips: + self.client.delete_gzip(service_id, version_to_delete, gzip_name['name']) + + for header_name in headers: + self.client.delete_header(service_id, version_to_delete, header_name['name']) + + for request_setting_name in request_settings: + self.client.delete_request_settings(service_id, version_to_delete, request_setting_name['name']) + + for response_object_name in response_objects: + self.client.delete_response_object(service_id, version_to_delete, response_object_name['name']) + + for vcl_snippet_name in snippets: + self.client.delete_vcl_snippet(service_id, version_to_delete, vcl_snippet_name['name']) + + def deploy_version_with_configuration(self, service_id, configuration, activate_version, + clone=False, cloned_version=""): + + if clone: + version_number = cloned_version + else: + version = self.client.create_version(service_id) + version_number = version['number'] for domain in configuration.domains: self.client.create_domain(service_id, version_number, domain) From 2ee505e6ba23dbe0bc83aa72356ff4868afdb2af Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Fri, 6 Apr 2018 11:42:41 +0200 Subject: [PATCH 02/10] Encode all string URL parameter --- library/fastly_service.py | 82 +++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index 77ef427..a72b29c 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -645,13 +645,13 @@ def _request(self, path, method='GET', payload=None, headers=None): return FastlyResponse(conn.getresponse()) def get_active_version(self, service_id): - response = self._request('/service/%s/version/active' % service_id) + response = self._request('/service/%s/version/active' % urllib.quote(service_id)) if response.status == 200: cloned_from_version = response.payload['number'] return cloned_from_version def clone_old_version(self, service_id, version_to_clone): - response = self._request('/service/%s/version/%s/clone' % (service_id, version_to_clone), 'PUT') + response = self._request('/service/%s/version/%s/clone' % (urllib.quote(service_id), version_to_clone), 'PUT') if response.status == 200: return response.payload else: @@ -668,7 +668,7 @@ def get_service_by_name(self, service_name): raise Exception("Error searching for service '%s'" % service_name) def get_service(self, service_id): - response = self._request('/service/%s/details' % service_id) + response = self._request('/service/%s/details' % urllib.quote(service_id)) if response.status == 200: return FastlyService(response.payload) elif response.status == 404: @@ -698,14 +698,14 @@ def delete_service(self, service_name, deactivate_active_version=True): raise Exception("Error deleting service with name '%s' (%s)" % (service_name, response.payload['detail'])) def create_version(self, service_id): - response = self._request('/service/%s/version' % service_id, 'POST') + response = self._request('/service/%s/version' % urllib.quote(service_id), 'POST') if response.status == 200: return response.payload else: raise Exception("Error creating new version for service %s" % service_id) def activate_version(self, service_id, version): - response = self._request('/service/%s/version/%s/activate' % (service_id, version), 'PUT') + response = self._request('/service/%s/version/%s/activate' % (urllib.quote(service_id), version), 'PUT') if response.status == 200: return response.payload else: @@ -713,7 +713,7 @@ def activate_version(self, service_id, version): "Error activating version %s for service %s (%s)" % (version, service_id, response.payload['detail'])) def deactivate_version(self, service_id, version): - response = self._request('/service/%s/version/%s/deactivate' % (service_id, version), 'PUT') + response = self._request('/service/%s/version/%s/deactivate' % (urllib.quote(service_id), version), 'PUT') if response.status == 200: return response.payload else: @@ -721,7 +721,7 @@ def deactivate_version(self, service_id, version): "Error deactivating version %s for service %s (%s)" % (version, service_id, response.payload['detail'])) def get_domain_name(self, service_id, version): - response = self._request('/service/%s/version/%s/domain' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/domain' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -729,7 +729,7 @@ def get_domain_name(self, service_id, version): "Error retrieving domain for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_domain(self, service_id, version, domain): - response = self._request('/service/%s/version/%s/domain' % (service_id, version), 'POST', domain) + response = self._request('/service/%s/version/%s/domain' % (urllib.quote(service_id), version), 'POST', domain) if response.status == 200: return response.payload else: @@ -737,7 +737,7 @@ def create_domain(self, service_id, version, domain): service_id, version, response.payload['detail'])) def delete_domain(self, service_id, version, domain): - response = self._request('/service/%s/version/%s/domain/%s' % (service_id, version, domain), + response = self._request('/service/%s/version/%s/domain/%s' % (urllib.quote(service_id), version, urllib.quote(domain)), 'DELETE') if response.status == 200: return response.payload @@ -745,7 +745,7 @@ def delete_domain(self, service_id, version, domain): raise Exception("Error deleting domain %s service %s, version %s (%s)" % (domain, service_id, version, response.payload['detail'])) def get_healthcheck_name(self, service_id, version): - response = self._request('/service/%s/version/%s/healthcheck' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/healthcheck' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -753,7 +753,7 @@ def get_healthcheck_name(self, service_id, version): response.payload['detail'])) def create_healthcheck(self, service_id, version, healthcheck): - response = self._request('/service/%s/version/%s/healthcheck' % (service_id, version), 'POST', healthcheck) + response = self._request('/service/%s/version/%s/healthcheck' % (urllib.quote(service_id), version), 'POST', healthcheck) if response.status == 200: return response.payload else: @@ -761,7 +761,7 @@ def create_healthcheck(self, service_id, version, healthcheck): service_id, version, response.payload['detail'])) def delete_healthcheck(self, service_id, version, healthcheck): - response = self._request('/service/%s/version/%s/healthcheck/%s' % (service_id, version, healthcheck), + response = self._request('/service/%s/version/%s/healthcheck/%s' % (urllib.quote(service_id), version, urllib.quote(healthcheck)), 'DELETE') if response.status == 200: return response.payload @@ -770,7 +770,7 @@ def delete_healthcheck(self, service_id, version, healthcheck): healthcheck, service_id, version, response.payload['detail'])) def get_backend_name(self, service_id, version): - response = self._request('/service/%s/version/%s/backend' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/backend' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -779,7 +779,7 @@ def get_backend_name(self, service_id, version): service_id, version, response.payload['detail'])) def create_backend(self, service_id, version, backend): - response = self._request('/service/%s/version/%s/backend' % (service_id, version), 'POST', backend) + response = self._request('/service/%s/version/%s/backend' % (urllib.quote(service_id), version), 'POST', backend) if response.status == 200: return response.payload else: @@ -787,7 +787,7 @@ def create_backend(self, service_id, version, backend): service_id, version, response.payload['detail'])) def delete_backend(self, service_id, version, backend): - response = self._request('/service/%s/version/%s/backend/%s' % (service_id, version, backend), + response = self._request('/service/%s/version/%s/backend/%s' % (urllib.quote(service_id), version, urllib.quote(backend)), 'DELETE') if response.status == 200: return response.payload @@ -796,7 +796,7 @@ def delete_backend(self, service_id, version, backend): backend, service_id, version, response.payload['detail'])) def get_director_name(self, service_id, version): - response = self._request('/service/%s/version/%s/director' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/director' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -805,7 +805,7 @@ def get_director_name(self, service_id, version): service_id, version, response.payload['detail'])) def create_director(self, service_id, version, director): - response = self._request('/service/%s/version/%s/director' % (service_id, version), 'POST', director) + response = self._request('/service/%s/version/%s/director' % (urllib.quote(service_id), version), 'POST', director) if response.status != 200: raise Exception("Error creating director for service %s, version %s (%s)" % ( service_id, version, response.payload['detail'])) @@ -813,14 +813,14 @@ def create_director(self, service_id, version, director): payload = response.payload if director.backends is not None: for backend in director.backends: - response = self._request('/service/%s/version/%s/director/%s/backend/%s' % (service_id, version, director.name, backend), 'POST') + response = self._request('/service/%s/version/%s/director/%s/backend/%s' % (urllib.quote(service_id), version, urllib.quote(director.name), urllib.quote(backend)), 'POST') if response.status != 200: raise Exception("Error establishing a relationship between director %s and backend %s, service %s, version %s (%s)" % ( director.name, backend, service_id, version, response.payload['detail'])) return payload def delete_director(self, service_id, version, director): - response = self._request('/service/%s/version/%s/director/%s' % (service_id, version, director), + response = self._request('/service/%s/version/%s/director/%s' % (urllib.quote(service_id), version, urllib.quote(director)), 'DELETE') if response.status == 200: return response.payload @@ -829,7 +829,7 @@ def delete_director(self, service_id, version, director): director, service_id, version, response.payload['detail'])) def get_cache_settings_name(self, service_id, version): - response = self._request('/service/%s/version/%s/cache_settings' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/cache_settings' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -838,7 +838,7 @@ def get_cache_settings_name(self, service_id, version): service_id, version, response.payload['detail'])) def create_cache_settings(self, service_id, version, cache_settings): - response = self._request('/service/%s/version/%s/cache_settings' % (service_id, version), 'POST', cache_settings) + response = self._request('/service/%s/version/%s/cache_settings' % (urllib.quote(service_id), version), 'POST', cache_settings) if response.status == 200: return response.payload else: @@ -846,7 +846,7 @@ def create_cache_settings(self, service_id, version, cache_settings): service_id, version, response.payload['detail'])) def delete_cache_settings(self, service_id, version, cache_settings): - response = self._request('/service/%s/version/%s/backend/%s' % (service_id, version, cache_settings), + response = self._request('/service/%s/version/%s/backend/%s' % (urllib.quote(service_id), version, urllib.quote(cache_settings)), 'DELETE') if response.status == 200: return response.payload @@ -855,7 +855,7 @@ def delete_cache_settings(self, service_id, version, cache_settings): cache_settings, service_id, version, response.payload['detail'])) def get_condition_name(self, service_id, version): - response = self._request('/service/%s/version/%s/condition' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/condition' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -863,7 +863,7 @@ def get_condition_name(self, service_id, version): "Error retrieving condition for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_condition(self, service_id, version, condition): - response = self._request('/service/%s/version/%s/condition' % (service_id, version), 'POST', condition) + response = self._request('/service/%s/version/%s/condition' % (urllib.quote(service_id), version), 'POST', condition) if response.status == 200: return response.payload else: @@ -871,7 +871,7 @@ def create_condition(self, service_id, version, condition): service_id, version, response.payload['detail'])) def delete_condition(self, service_id, version, condition): - response = self._request('/service/%s/version/%s/condition/%s' % (service_id, version, condition), + response = self._request('/service/%s/version/%s/condition/%s' % (urllib.quote(service_id), version, urllib.quote(condition)), 'DELETE') if response.status == 200: return response.payload @@ -880,7 +880,7 @@ def delete_condition(self, service_id, version, condition): condition, service_id, version, response.payload['detail'])) def get_gzip_name(self, service_id, version): - response = self._request('/service/%s/version/%s/gzip' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/gzip' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -889,7 +889,7 @@ def get_gzip_name(self, service_id, version): service_id, version, response.payload['detail'])) def create_gzip(self, service_id, version, gzip): - response = self._request('/service/%s/version/%s/gzip' % (service_id, version), 'POST', + response = self._request('/service/%s/version/%s/gzip' % (urllib.quote(service_id), version), 'POST', gzip) if response.status == 200: return response.payload @@ -898,7 +898,7 @@ def create_gzip(self, service_id, version, gzip): service_id, version, response.payload['detail'])) def delete_gzip(self, service_id, version, gzip): - response = self._request('/service/%s/version/%s/backend/%s' % (service_id, version, gzip), + response = self._request('/service/%s/version/%s/backend/%s' % (urllib.quote(service_id), version, urllib.quote(gzip)), 'DELETE') if response.status == 200: return response.payload @@ -907,7 +907,7 @@ def delete_gzip(self, service_id, version, gzip): gzip, service_id, version, response.payload['detail'])) def get_header_name(self, service_id, version): - response = self._request('/service/%s/version/%s/header' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/header' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -916,7 +916,7 @@ def get_header_name(self, service_id, version): service_id, version, response.payload['detail'])) def create_header(self, service_id, version, header): - response = self._request('/service/%s/version/%s/header' % (service_id, version), 'POST', header) + response = self._request('/service/%s/version/%s/header' % (urllib.quote(service_id), version), 'POST', header) if response.status == 200: return response.payload else: @@ -924,7 +924,7 @@ def create_header(self, service_id, version, header): service_id, version, response.payload['detail'])) def delete_header(self, service_id, version, header): - response = self._request('/service/%s/version/%s/header/%s' % (service_id, version, header), + response = self._request('/service/%s/version/%s/header/%s' % (urllib.quote(service_id), version, urllib.quote(header)), 'DELETE') if response.status == 200: return response.payload @@ -933,7 +933,7 @@ def delete_header(self, service_id, version, header): header, service_id, version, response.payload['detail'])) def get_request_settings_name(self, service_id, version): - response = self._request('/service/%s/version/%s/request_settings' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/request_settings' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -942,7 +942,7 @@ def get_request_settings_name(self, service_id, version): service_id, version, response.payload['detail'])) def create_request_setting(self, service_id, version, request_setting): - response = self._request('/service/%s/version/%s/request_settings' % (service_id, version), 'POST', + response = self._request('/service/%s/version/%s/request_settings' % (urllib.quote(service_id), version), 'POST', request_setting) if response.status == 200: return response.payload @@ -951,7 +951,7 @@ def create_request_setting(self, service_id, version, request_setting): service_id, version, response.payload['detail'])) def delete_request_settings(self, service_id, version, request_setting): - response = self._request('/service/%s/version/%s/request_settings/%s' % (service_id, version, request_setting), + response = self._request('/service/%s/version/%s/request_settings/%s' % (urllib.quote(service_id), version, urllib.quote(request_setting)), 'DELETE') if response.status == 200: return response.payload @@ -960,7 +960,7 @@ def delete_request_settings(self, service_id, version, request_setting): request_setting, service_id, version, response.payload['detail'])) def get_response_objects_name(self, service_id, version): - response = self._request('/service/%s/version/%s/response_object' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/response_object' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -969,7 +969,7 @@ def get_response_objects_name(self, service_id, version): service_id, version, response.payload['detail'])) def create_response_object(self, service_id, version, response_object): - response = self._request('/service/%s/version/%s/response_object' % (service_id, version), 'POST', + response = self._request('/service/%s/version/%s/response_object' % (urllib.quote(service_id), version), 'POST', response_object) if response.status == 200: return response.payload @@ -978,7 +978,7 @@ def create_response_object(self, service_id, version, response_object): service_id, version, response.payload['detail'])) def delete_response_object(self, service_id, version, response_object): - response = self._request('/service/%s/version/%s/response_object/%s' % (service_id, version, response_object), + response = self._request('/service/%s/version/%s/response_object/%s' % (urllib.quote(service_id), version, urllib.quote(response_object)), 'DELETE') if response.status == 200: return response.payload @@ -987,7 +987,7 @@ def delete_response_object(self, service_id, version, response_object): response_object, service_id, version, response.payload['detail'])) def get_vcl_snippet_name(self, service_id, version): - response = self._request('/service/%s/version/%s/snippet' % (service_id, version), 'GET') + response = self._request('/service/%s/version/%s/snippet' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: @@ -996,7 +996,7 @@ def get_vcl_snippet_name(self, service_id, version): 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) + response = self._request('/service/%s/version/%s/snippet' % (urllib.quote(service_id), version), 'POST', vcl_snippet) if response.status == 200: return response.payload @@ -1004,7 +1004,7 @@ def create_vcl_snippet(self, service_id, version, vcl_snippet): raise Exception("Error creating VCL snippet '%s' for service %s, version %s (%s)" % (vcl_snippet['name'], service_id, version, response.payload['detail'])) def delete_vcl_snippet(self, service_id, version, snippet): - response = self._request('/service/%s/version/%s/snippet/%s' % (service_id, version, snippet), + response = self._request('/service/%s/version/%s/snippet/%s' % (urllib.quote(service_id), version, snippet), 'DELETE') if response.status == 200: return response.payload @@ -1013,7 +1013,7 @@ def delete_vcl_snippet(self, service_id, version, snippet): snippet, 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) + response = self._request('/service/%s/version/%s/settings' % (urllib.quote(service_id), version), 'PUT', settings) if response.status == 200: return response.payload else: From 10cede636e968dc3ea2ce1b698d6e6c33364be05 Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Fri, 6 Apr 2018 11:51:34 +0200 Subject: [PATCH 03/10] Fix URLs in delete methods --- library/fastly_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index a72b29c..2400b7f 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -846,7 +846,7 @@ def create_cache_settings(self, service_id, version, cache_settings): service_id, version, response.payload['detail'])) def delete_cache_settings(self, service_id, version, cache_settings): - response = self._request('/service/%s/version/%s/backend/%s' % (urllib.quote(service_id), version, urllib.quote(cache_settings)), + response = self._request('/service/%s/version/%s/cache_settings/%s' % (urllib.quote(service_id), version, urllib.quote(cache_settings)), 'DELETE') if response.status == 200: return response.payload @@ -898,7 +898,7 @@ def create_gzip(self, service_id, version, gzip): service_id, version, response.payload['detail'])) def delete_gzip(self, service_id, version, gzip): - response = self._request('/service/%s/version/%s/backend/%s' % (urllib.quote(service_id), version, urllib.quote(gzip)), + response = self._request('/service/%s/version/%s/gzip/%s' % (urllib.quote(service_id), version, urllib.quote(gzip)), 'DELETE') if response.status == 200: return response.payload From e23fec9bf69e505ae2119566c405ab5a9b3338bf Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Fri, 6 Apr 2018 12:59:26 +0200 Subject: [PATCH 04/10] Fix updating services with inactive versions --- library/fastly_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index 2400b7f..1517948 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -1048,7 +1048,7 @@ def apply_configuration(self, service_name, fastly_configuration, activate_new_v else: current_version = service.latest_version - if current_version is None: + if current_version is None or service.active_version is None: self.deploy_version_with_configuration(service.id, fastly_configuration, activate_new_version) actions.append("Deployed new version because service has no active version") From 1751377f662145bd84a1726ea5499bd4176ea32f Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Fri, 6 Apr 2018 11:49:17 +0200 Subject: [PATCH 05/10] Update VCR cassettes --- .../TestFastlyCacheSettings_tearDown.yml | 49 +- ...cheSettings_test_fastly_cache_settings.yml | 190 +-- ...test_fastly_cache_settings_with_action.yml | 191 ++- ...astly_cache_settings_without_stale_ttl.yml | 649 +++++++-- .../TestFastlyCondition_tearDown.yml | 48 +- ...yCondition_test_fastly_cache_condition.yml | 613 ++++++++- ...ondition_test_fastly_request_condition.yml | 157 +-- .../TestFastlyDirectors_tearDown.yml | 48 +- ..._test_fastly_director_with_one_backend.yml | 664 +++++++-- .../cassettes/TestFastlyGzip_tearDown.yml | 53 +- .../TestFastlyGzip_test_fastly_gzip.yml | 161 ++- .../TestFastlyHealthchecks_tearDown.yml | 51 +- ...yHealthchecks_test_fastly_healthchecks.yml | 634 +++++++-- .../TestFastlyRequestSetting_tearDown.yml | 49 +- ...g_test_fastly_request_setting_defaults.yml | 192 ++- ...y_response_object_content_content_type.yml | 178 +-- .../TestFastlyResponseObject_tearDown.yml | 48 +- ...y_response_object_content_content_type.yml | 286 +++- ...t_test_fastly_response_object_defaults.yml | 178 +-- .../cassettes/TestFastlySettings_tearDown.yml | 51 +- ...estFastlySettings_test_fastly_settings.yml | 204 +-- .../TestFastlyVclSnippets_tearDown.yml | 53 +- ...tly_vcl_snippets_deliver_stale_content.yml | 638 +++++++-- tests/fixtures/cassettes/tearDown | 48 +- .../test_fastly_backend_empty_ssl_ca_cert | 112 +- .../test_fastly_backend_port_not_required | 142 +- .../cassettes/test_fastly_backend_weight_even | 571 +++++++- .../test_fastly_domain_comment_not_required | 545 +++++++- .../test_fastly_header_action_not_required | 575 +++++++- ...t_fastly_header_ignore_if_set_not_required | 36 +- .../test_fastly_header_priority_not_required | 35 +- .../cassettes/test_service_does_exist | 1215 ++++++++++++++--- ...exist_and_activate_new_version_is_disabled | 1192 +++++++++++++--- ...vice_does_exist_and_configuration_is_equal | 609 +++++++-- ...equal_and_activate_new_version_is_disabled | 72 +- .../cassettes/test_service_does_not_exist | 191 +-- ...exist_and_activate_new_version_is_disabled | 175 +-- 37 files changed, 8411 insertions(+), 2492 deletions(-) diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml index 9a39998..c2bce5e 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml @@ -6,82 +6,81 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":""}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:29 GMT'] + date: ['Fri, 06 Apr 2018 12:12: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-ams4430-AMS'] - x-timer: ['S1507631609.073426,VS0,VE135'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016775.941774,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/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":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4061'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:29 GMT'] + date: ['Fri, 06 Apr 2018 12:12: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-ams4133-AMS'] - x-timer: ['S1507631609.335051,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523016775.144295,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/deactivate + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:30 GMT'] - fastly-ratelimit-remaining: ['984'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:56 GMT'] + fastly-ratelimit-remaining: ['990'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] - x-timer: ['S1507631610.534354,VS0,VE497'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016776.808666,VS0,VE424'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2 + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:30 GMT'] - fastly-ratelimit-remaining: ['983'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:56 GMT'] + fastly-ratelimit-remaining: ['989'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] - x-timer: ['S1507631610.112493,VS0,VE445'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523016776.327893,VS0,VE459'] 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 deb4776..0c6d5c0 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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: ['Tue, 10 Oct 2017 10:33:22 GMT'] + date: ['Fri, 06 Apr 2018 12:12:48 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-ams4136-AMS'] - x-timer: ['S1507631602.698219,VS0,VE420'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523016768.403876,VS0,VE117'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"e4ad93e2ccb3238c7264f41cc00e36447cac4e62","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:33:22Z","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly + Ansible Module Test","publish_key":"5d3e64b05a2508ac3cfc0db9ebaa8da0d2787239","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:12:48Z","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:22 GMT'] - fastly-ratelimit-remaining: ['993'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:49 GMT'] + fastly-ratelimit-remaining: ['999'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] - x-timer: ['S1507631602.201345,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016769.583489,VS0,VE423'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/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":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":1,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:22Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:33:22Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":1,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:48Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:12:48Z","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: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:23 GMT'] + date: ['Fri, 06 Apr 2018 12:12: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-ams4448-AMS'] - x-timer: ['S1507631603.697389,VS0,VE495'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016769.225523,VS0,VE416'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version response: - body: {string: !!python/unicode '{"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","number":2}'} + body: {string: !!python/unicode '{"service_id":"6PD20Uj8RWetLDUZ17jgXd","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:23 GMT'] - fastly-ratelimit-remaining: ['992'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:50 GMT'] + fastly-ratelimit-remaining: ['998'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] - x-timer: ['S1507631603.293114,VS0,VE466'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523016770.853251,VS0,VE424'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/domain + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":2,"deleted_at":null,"created_at":"2017-10-10T10:33:24Z","updated_at":"2017-10-10T10:33:24Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6PD20Uj8RWetLDUZ17jgXd","version":2,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","updated_at":"2018-04-06T12:12:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:24 GMT'] - fastly-ratelimit-remaining: ['991'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:51 GMT'] + fastly-ratelimit-remaining: ['997'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] - x-timer: ['S1507631604.854816,VS0,VE546'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523016770.482096,VS0,VE527'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +133,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/backend + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:24Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:24Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6PD20Uj8RWetLDUZ17jgXd","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:12:51Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:12:51Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:24 GMT'] - fastly-ratelimit-remaining: ['990'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:51 GMT'] + fastly-ratelimit-remaining: ['996'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] - x-timer: ['S1507631605.535777,VS0,VE431'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523016771.109292,VS0,VE425'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 10, "name": "cache-settings-config-name", @@ -159,25 +159,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/cache_settings + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-10-10T10:33:25Z","updated_at":"2017-10-10T10:33:25Z"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"6PD20Uj8RWetLDUZ17jgXd","version":"2","ttl":null,"deleted_at":null,"created_at":"2018-04-06T12:12:51Z","updated_at":"2018-04-06T12:12:51Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['240'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:25 GMT'] - fastly-ratelimit-remaining: ['989'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:51 GMT'] + fastly-ratelimit-remaining: ['995'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] - x-timer: ['S1507631605.076293,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523016772.598115,VS0,VE141'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -187,26 +187,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/header + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/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":"3QhmHI5SRhK6mQ8YK5Gmz2","version":"2","updated_at":"2017-10-10T10:33:26Z","deleted_at":null,"created_at":"2017-10-10T10:33:26Z"}'} + 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":"6PD20Uj8RWetLDUZ17jgXd","version":"2","updated_at":"2018-04-06T12:12:52Z","deleted_at":null,"created_at":"2018-04-06T12:12:52Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:26 GMT'] - fastly-ratelimit-remaining: ['988'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:52 GMT'] + fastly-ratelimit-remaining: ['994'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] - x-timer: ['S1507631606.657269,VS0,VE474'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016772.802508,VS0,VE418'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -214,87 +214,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/response_object + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:26Z","updated_at":"2017-10-10T10:33:26Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6PD20Uj8RWetLDUZ17jgXd","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:12:52Z","updated_at":"2018-04-06T12:12:52Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:26 GMT'] - fastly-ratelimit-remaining: ['987'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:52 GMT'] + fastly-ratelimit-remaining: ['993'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] - x-timer: ['S1507631606.217521,VS0,VE412'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523016772.284411,VS0,VE438'] 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/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/settings + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6PD20Uj8RWetLDUZ17jgXd"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:26 GMT'] - fastly-ratelimit-remaining: ['986'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:52 GMT'] + fastly-ratelimit-remaining: ['992'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] - x-timer: ['S1507631607.710003,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523016773.786750,VS0,VE172'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/version/2/activate + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:26Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:52Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:28 GMT'] - fastly-ratelimit-remaining: ['985'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:53 GMT'] + fastly-ratelimit-remaining: ['991'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631607.971129,VS0,VE1076'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016773.023761,VS0,VE946'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/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":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -304,14 +304,14 @@ interactions: connection: [keep-alive] content-length: ['4061'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:28 GMT'] + date: ['Fri, 06 Apr 2018 12:12:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] - x-timer: ['S1507631608.135743,VS0,VE154'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523016774.136166,VS0,VE140'] status: {code: 200, message: OK} - request: body: null @@ -320,33 +320,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":""}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:28 GMT'] + date: ['Fri, 06 Apr 2018 12:12:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] - x-timer: ['S1507631608.377508,VS0,VE135'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523016774.341523,VS0,VE151'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/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":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -356,25 +356,25 @@ interactions: connection: [keep-alive] content-length: ['4061'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:28 GMT'] + date: ['Fri, 06 Apr 2018 12:12:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] - x-timer: ['S1507631609.628332,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523016775.553676,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3QhmHI5SRhK6mQ8YK5Gmz2/details + uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/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":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:22Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"created_at":"2017-10-10T10:33:23Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:27Z","deployed":false}],"created_at":"2017-10-10T10:33:22Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:22Z","id":"3QhmHI5SRhK6mQ8YK5Gmz2","version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhmHI5SRhK6mQ8YK5Gmz2","staging":false,"updated_at":"2017-10-10T10:33:27Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -384,13 +384,13 @@ interactions: connection: [keep-alive] content-length: ['4061'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:28 GMT'] + date: ['Fri, 06 Apr 2018 12:12:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4123-AMS'] - x-timer: ['S1507631609.840059,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523016775.739143,VS0,VE115'] 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 20f7aa2..18c642e 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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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: ['Tue, 10 Oct 2017 10:33:30 GMT'] + date: ['Fri, 06 Apr 2018 12:12:56 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-ams4140-AMS'] - x-timer: ['S1507631611.650167,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523016777.856259,VS0,VE135'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"981c63738f7aa8c09aa25528004ecad51d517882","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:33:31Z","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly + Ansible Module Test","publish_key":"247c2acf08f4ca029074976f10587c6a71fac3cc","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:31 GMT'] - fastly-ratelimit-remaining: ['982'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:57 GMT'] + fastly-ratelimit-remaining: ['988'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] - x-timer: ['S1507631611.861112,VS0,VE438'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523016777.051734,VS0,VE461'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":1,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:31Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:33:31Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":1,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:12:57Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","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: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:31 GMT'] + date: ['Fri, 06 Apr 2018 12:12: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-ams4151-AMS'] - x-timer: ['S1507631611.378485,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016778.572930,VS0,VE215'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version response: - body: {string: !!python/unicode '{"service_id":"3aTVJbIAPR9U6MuBeKWli2","number":2}'} + body: {string: !!python/unicode '{"service_id":"6YjlkvnS6FxrLkXEB7bx2c","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:32 GMT'] - fastly-ratelimit-remaining: ['981'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:58 GMT'] + fastly-ratelimit-remaining: ['987'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] - x-timer: ['S1507631612.612276,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523016778.853067,VS0,VE217'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/domain + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":2,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","updated_at":"2017-10-10T10:33:32Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":2,"deleted_at":null,"created_at":"2018-04-06T12:12:58Z","updated_at":"2018-04-06T12:12:58Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:32 GMT'] - fastly-ratelimit-remaining: ['980'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:58 GMT'] + fastly-ratelimit-remaining: ['986'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631612.175779,VS0,VE459'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016778.135468,VS0,VE452'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +133,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/backend + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:33Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:33Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:12:58Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:12:58Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:33 GMT'] - fastly-ratelimit-remaining: ['979'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:58 GMT'] + fastly-ratelimit-remaining: ['985'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4127-AMS'] - x-timer: ['S1507631613.718402,VS0,VE423'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016779.652403,VS0,VE156'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": "pass", "stale_ttl": 10, "name": "cache-settings-config-name", @@ -159,25 +159,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/cache_settings + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"2","ttl":null,"deleted_at":null,"created_at":"2017-10-10T10:33:33Z","updated_at":"2017-10-10T10:33:33Z"}'} + body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"2","ttl":null,"deleted_at":null,"created_at":"2018-04-06T12:12:58Z","updated_at":"2018-04-06T12:12:58Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['242'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:33 GMT'] - fastly-ratelimit-remaining: ['978'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:59 GMT'] + fastly-ratelimit-remaining: ['984'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4123-AMS'] - x-timer: ['S1507631613.218748,VS0,VE447'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523016779.872175,VS0,VE150'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -187,26 +187,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/header + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","version":"2","updated_at":"2017-10-10T10:33:34Z","deleted_at":null,"created_at":"2017-10-10T10:33:34Z"}'} + 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":"6YjlkvnS6FxrLkXEB7bx2c","version":"2","updated_at":"2018-04-06T12:12:59Z","deleted_at":null,"created_at":"2018-04-06T12:12:59Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:34 GMT'] - fastly-ratelimit-remaining: ['977'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:59 GMT'] + fastly-ratelimit-remaining: ['983'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] - x-timer: ['S1507631614.741186,VS0,VE401'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523016779.085176,VS0,VE412'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -214,104 +214,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/response_object + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:34Z","updated_at":"2017-10-10T10:33:34Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:12:59Z","updated_at":"2018-04-06T12:12:59Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:34 GMT'] - fastly-ratelimit-remaining: ['976'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:12:59 GMT'] + fastly-ratelimit-remaining: ['982'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] - x-timer: ['S1507631614.216843,VS0,VE434'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523016780.673729,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/3aTVJbIAPR9U6MuBeKWli2/version/2/settings + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:35 GMT'] - fastly-ratelimit-remaining: ['975'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:00 GMT'] + fastly-ratelimit-remaining: ['981'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] - x-timer: ['S1507631615.733485,VS0,VE472'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016780.890750,VS0,VE461'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/2/activate + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:34Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:59Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:36 GMT'] - fastly-ratelimit-remaining: ['974'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:01 GMT'] + fastly-ratelimit-remaining: ['980'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631615.303755,VS0,VE1092'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016781.513360,VS0,VE948'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4065'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:36 GMT'] + date: ['Fri, 06 Apr 2018 12:13: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-ams4444-AMS'] - x-timer: ['S1507631616.485837,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016782.554239,VS0,VE142'] status: {code: 200, message: OK} - request: body: null @@ -320,33 +319,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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:36 GMT'] + date: ['Fri, 06 Apr 2018 12:13: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-ams4129-AMS'] - x-timer: ['S1507631617.719679,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523016782.758937,VS0,VE145'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -356,25 +355,25 @@ interactions: connection: [keep-alive] content-length: ['4065'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:37 GMT'] + date: ['Fri, 06 Apr 2018 12:13:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] - x-timer: ['S1507631617.973581,VS0,VE106'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523016782.969755,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -384,13 +383,13 @@ interactions: connection: [keep-alive] content-length: ['4065'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:37 GMT'] + date: ['Fri, 06 Apr 2018 12:13:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] - x-timer: ['S1507631617.170687,VS0,VE106'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523016782.156977,VS0,VE116'] 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 e85ef64..81f069d 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:37 GMT'] + date: ['Fri, 06 Apr 2018 12:13:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] - x-timer: ['S1507631617.479227,VS0,VE136'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016782.395936,VS0,VE156'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:36Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:32Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -42,64 +42,527 @@ interactions: connection: [keep-alive] content-length: ['4065'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:37 GMT'] + date: ['Fri, 06 Apr 2018 12:13:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] - x-timer: ['S1507631618.690899,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523016783.616091,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/active response: - body: {string: !!python/unicode '{"service_id":"3aTVJbIAPR9U6MuBeKWli2","number":3}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['230'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:38 GMT'] - fastly-ratelimit-remaining: ['973'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:02 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016783.801736,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:03 GMT'] + fastly-ratelimit-remaining: ['979'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016783.984345,VS0,VE211'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/domain + response: + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","created_at":"2018-04-06T12:12:58Z","comment":"","updated_at":"2018-04-06T12:12:58Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['181'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19126-FRA'] + x-timer: ['S1523016783.260876,VS0,VE386'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:04 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523016784.710059,VS0,VE416'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:04 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523016784.280313,VS0,VE128'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:12:58Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:12:58Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:04 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523016785.509093,VS0,VE165'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19143-FRA'] + x-timer: ['S1523016785.813735,VS0,VE387'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/cache_settings + response: + body: {string: !!python/unicode '[{"stale_ttl":"10","version":"3","ttl":null,"name":"cache-settings-config-name","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:12:58Z","action":"pass","updated_at":"2018-04-06T12:12:58Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['246'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19139-FRA'] + x-timer: ['S1523016785.365661,VS0,VE400'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19141-FRA'] + x-timer: ['S1523016786.059492,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/header + response: + body: {string: !!python/unicode '[{"priority":"100","service_id":"6YjlkvnS6FxrLkXEB7bx2c","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:12:59Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:12:59Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['415'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19128-FRA'] + x-timer: ['S1523016787.675970,VS0,VE125'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:07 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523016787.993327,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set + 200 status code","content":"","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:12:59Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:12:59Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:07 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523016787.338700,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] - x-timer: ['S1507631618.890878,VS0,VE471'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016788.884656,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:08 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016788.094522,VS0,VE116'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:08 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523016788.277749,VS0,VE379'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/domain/example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:09 GMT'] + fastly-ratelimit-remaining: ['978'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016789.736389,VS0,VE424'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:09 GMT'] + fastly-ratelimit-remaining: ['977'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523016789.245891,VS0,VE186'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/cache_settings/cache-settings-config-name + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:09 GMT'] + fastly-ratelimit-remaining: ['976'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016790.552041,VS0,VE418'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:10 GMT'] + fastly-ratelimit-remaining: ['975'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523016790.132907,VS0,VE427'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/response_object/Set%20200%20status%20code + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:11 GMT'] + fastly-ratelimit-remaining: ['974'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523016791.831239,VS0,VE444'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/domain + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":3,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","updated_at":"2017-10-10T10:33:38Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":3,"deleted_at":null,"created_at":"2018-04-06T12:13:11Z","updated_at":"2018-04-06T12:13:11Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:38 GMT'] - fastly-ratelimit-remaining: ['972'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:11 GMT'] + fastly-ratelimit-remaining: ['973'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] - x-timer: ['S1507631618.462249,VS0,VE187'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523016791.430438,VS0,VE479'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -110,25 +573,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/backend + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:39Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:39Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:12Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:12Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:39 GMT'] - fastly-ratelimit-remaining: ['971'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:12 GMT'] + fastly-ratelimit-remaining: ['972'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] - x-timer: ['S1507631619.733875,VS0,VE434'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523016792.011488,VS0,VE448'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 0, "name": "cache-settings-config-name", @@ -136,25 +599,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/cache_settings + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"3","ttl":null,"deleted_at":null,"created_at":"2017-10-10T10:33:39Z","updated_at":"2017-10-10T10:33:39Z"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"3","ttl":null,"deleted_at":null,"created_at":"2018-04-06T12:13:12Z","updated_at":"2018-04-06T12:13:12Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['239'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:39 GMT'] - fastly-ratelimit-remaining: ['970'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:13 GMT'] + fastly-ratelimit-remaining: ['971'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] - x-timer: ['S1507631619.253156,VS0,VE445'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016793.644941,VS0,VE406'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -164,26 +627,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/header + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","version":"3","updated_at":"2017-10-10T10:33:40Z","deleted_at":null,"created_at":"2017-10-10T10:33:40Z"}'} + 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":"6YjlkvnS6FxrLkXEB7bx2c","version":"3","updated_at":"2018-04-06T12:13:13Z","deleted_at":null,"created_at":"2018-04-06T12:13:13Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:40 GMT'] - fastly-ratelimit-remaining: ['969'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:13 GMT'] + fastly-ratelimit-remaining: ['970'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4130-AMS'] - x-timer: ['S1507631620.778475,VS0,VE446'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523016793.309416,VS0,VE151'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -191,87 +654,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/response_object + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:40Z","updated_at":"2017-10-10T10:33:40Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:13Z","updated_at":"2018-04-06T12:13:13Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:40 GMT'] - fastly-ratelimit-remaining: ['968'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:14 GMT'] + fastly-ratelimit-remaining: ['969'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4444-AMS'] - x-timer: ['S1507631620.428807,VS0,VE481'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523016794.596391,VS0,VE410'] 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/3aTVJbIAPR9U6MuBeKWli2/version/3/settings + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:41 GMT'] - fastly-ratelimit-remaining: ['967'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:14 GMT'] + fastly-ratelimit-remaining: ['968'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] - x-timer: ['S1507631621.061418,VS0,VE474'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523016794.155740,VS0,VE439'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/3/activate + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:40Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:13Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:42 GMT'] - fastly-ratelimit-remaining: ['966'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:15 GMT'] + fastly-ratelimit-remaining: ['967'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] - x-timer: ['S1507631622.641774,VS0,VE997'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016795.744396,VS0,VE848'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -281,14 +744,14 @@ interactions: connection: [keep-alive] content-length: ['4291'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:42 GMT'] + date: ['Fri, 06 Apr 2018 12:13:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] - x-timer: ['S1507631623.784650,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523016796.656271,VS0,VE409'] status: {code: 200, message: OK} - request: body: null @@ -297,33 +760,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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['828'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:43 GMT'] + date: ['Fri, 06 Apr 2018 12:13:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] - x-timer: ['S1507631623.124485,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016796.176072,VS0,VE134'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -333,41 +795,40 @@ interactions: connection: [keep-alive] content-length: ['4291'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:43 GMT'] + date: ['Fri, 06 Apr 2018 12:13:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] - x-timer: ['S1507631624.541548,VS0,VE146'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016796.373667,VS0,VE109'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4291'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:43 GMT'] + date: ['Fri, 06 Apr 2018 12:13:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] - x-timer: ['S1507631624.845260,VS0,VE103'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016797.548578,VS0,VE385'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml index 90fcaf1..9bc0358 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml @@ -6,34 +6,34 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false},{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false},{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1060'] + content-length: ['1150'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:50 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4146-AMS'] - x-timer: ['S1507631631.591521,VS0,VE135'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017426.969232,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -44,46 +44,46 @@ interactions: connection: [keep-alive] content-length: ['4563'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:51 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4121-AMS'] - x-timer: ['S1507631631.268210,VS0,VE102'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017426.171356,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/deactivate + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:52 GMT'] - fastly-ratelimit-remaining: ['957'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:46 GMT'] + fastly-ratelimit-remaining: ['835'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] - x-timer: ['S1507631631.471618,VS0,VE552'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017426.350886,VS0,VE492'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2 + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -92,15 +92,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:52 GMT'] - fastly-ratelimit-remaining: ['956'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:47 GMT'] + fastly-ratelimit-remaining: ['834'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] - x-timer: ['S1507631632.163975,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017427.976954,VS0,VE180'] 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 cb79871..7e15e08 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['828'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:44 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4125-AMS'] - x-timer: ['S1507631625.626696,VS0,VE137'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017412.774393,VS0,VE146'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:42Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:38Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -42,64 +42,527 @@ interactions: connection: [keep-alive] content-length: ['4291'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:45 GMT'] + date: ['Fri, 06 Apr 2018 12:23:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631625.944751,VS0,VE103'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017412.982417,VS0,VE437'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:32 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017413.565993,VS0,VE117'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":4,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:33 GMT'] + fastly-ratelimit-remaining: ['848'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017413.746755,VS0,VE471'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/domain + response: + body: {string: !!python/unicode '[{"version":4,"name":"example8000.com","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","created_at":"2018-04-06T12:13:11Z","comment":"","updated_at":"2018-04-06T12:13:11Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['181'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19135-FRA'] + x-timer: ['S1523017413.400042,VS0,VE425'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017414.947081,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017414.128795,VS0,VE384'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:12Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:12Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:35 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017415.656720,VS0,VE412'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:35 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017415.283090,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/cache_settings + response: + body: {string: !!python/unicode '[{"stale_ttl":"0","version":"4","ttl":null,"name":"cache-settings-config-name","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:13:12Z","action":null,"updated_at":"2018-04-06T12:13:12Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['243'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:35 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017415.467026,VS0,VE411'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:36 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017416.947605,VS0,VE443'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/header + response: + body: {string: !!python/unicode '[{"priority":"100","service_id":"6YjlkvnS6FxrLkXEB7bx2c","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:13Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"4","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:13Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['415'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:36 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017417.537990,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:37 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017417.721565,VS0,VE408'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"4","status":"200","name":"Set + 200 status code","content":"","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:13:13Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:13Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:37 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017417.370197,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:37 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017418.841434,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:38 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017418.025345,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:38 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017418.488457,VS0,VE402'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/domain/example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:39 GMT'] + fastly-ratelimit-remaining: ['847'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017419.959490,VS0,VE443'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:39 GMT'] + fastly-ratelimit-remaining: ['846'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017420.674158,VS0,VE164'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/cache_settings/cache-settings-config-name + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:40 GMT'] + fastly-ratelimit-remaining: ['845'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017420.903169,VS0,VE443'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:40 GMT'] + fastly-ratelimit-remaining: ['844'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017420.413068,VS0,VE443'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/response_object/Set%20200%20status%20code response: - body: {string: !!python/unicode '{"service_id":"3aTVJbIAPR9U6MuBeKWli2","number":4}'} + body: {string: !!python/unicode '{"status":"ok"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:45 GMT'] - fastly-ratelimit-remaining: ['965'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:41 GMT'] + fastly-ratelimit-remaining: ['843'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4150-AMS'] - x-timer: ['S1507631625.179690,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017421.130182,VS0,VE422'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/domain + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":4,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","updated_at":"2017-10-10T10:33:45Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":4,"deleted_at":null,"created_at":"2018-04-06T12:23:41Z","updated_at":"2018-04-06T12:23:41Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:46 GMT'] - fastly-ratelimit-remaining: ['964'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:41 GMT'] + fastly-ratelimit-remaining: ['842'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] - x-timer: ['S1507631625.458507,VS0,VE561'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017422.669830,VS0,VE287'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "CACHE", "name": @@ -107,26 +570,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/condition + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"CACHE","name":"condition-name","statement":"req.url - ~ \"^/some_asset.js\"","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"4","deleted_at":null,"created_at":"2017-10-10T10:33:46Z","updated_at":"2017-10-10T10:33:46Z"}'} + ~ \"^/some_asset.js\"","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"4","deleted_at":null,"created_at":"2018-04-06T12:23:42Z","updated_at":"2018-04-06T12:23:42Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['254'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:46 GMT'] - fastly-ratelimit-remaining: ['963'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:42 GMT'] + fastly-ratelimit-remaining: ['841'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] - x-timer: ['S1507631626.156507,VS0,VE397'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017422.140939,VS0,VE407'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -137,25 +600,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/backend + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3aTVJbIAPR9U6MuBeKWli2","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:47Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:47Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:42Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:42Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:47 GMT'] - fastly-ratelimit-remaining: ['962'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:42 GMT'] + fastly-ratelimit-remaining: ['840'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] - x-timer: ['S1507631627.658776,VS0,VE467'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017423.659963,VS0,VE325'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -165,26 +628,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/header + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","version":"4","updated_at":"2017-10-10T10:33:47Z","deleted_at":null,"created_at":"2017-10-10T10:33:47Z"}'} + 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":"6YjlkvnS6FxrLkXEB7bx2c","version":"4","updated_at":"2018-04-06T12:23:43Z","deleted_at":null,"created_at":"2018-04-06T12:23:43Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['420'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:47 GMT'] - fastly-ratelimit-remaining: ['961'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:43 GMT'] + fastly-ratelimit-remaining: ['839'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] - x-timer: ['S1507631627.224380,VS0,VE415'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017423.051048,VS0,VE442'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -192,88 +655,88 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/response_object + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3aTVJbIAPR9U6MuBeKWli2","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:48Z","updated_at":"2017-10-10T10:33:48Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"4","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:43Z","updated_at":"2018-04-06T12:23:43Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:48 GMT'] - fastly-ratelimit-remaining: ['960'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:43 GMT'] + fastly-ratelimit-remaining: ['838'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] - x-timer: ['S1507631628.800663,VS0,VE445'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017424.638681,VS0,VE149'] 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/3aTVJbIAPR9U6MuBeKWli2/version/4/settings + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"3aTVJbIAPR9U6MuBeKWli2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"6YjlkvnS6FxrLkXEB7bx2c"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:48 GMT'] - fastly-ratelimit-remaining: ['959'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:44 GMT'] + fastly-ratelimit-remaining: ['837'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] - x-timer: ['S1507631628.413901,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017424.855351,VS0,VE434'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/version/4/activate + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:48Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:43Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:49 GMT'] - fastly-ratelimit-remaining: ['958'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:45 GMT'] + fastly-ratelimit-remaining: ['836'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] - x-timer: ['S1507631629.034097,VS0,VE663'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523017424.356541,VS0,VE865'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3aTVJbIAPR9U6MuBeKWli2/details + uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/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":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:31Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:32Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:42Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:38Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"created_at":"2017-10-10T10:33:45Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:49Z","deployed":false}],"created_at":"2017-10-10T10:33:31Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:31Z","id":"3aTVJbIAPR9U6MuBeKWli2","version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"3aTVJbIAPR9U6MuBeKWli2","staging":false,"updated_at":"2017-10-10T10:33:49Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -283,13 +746,13 @@ interactions: connection: [keep-alive] content-length: ['4563'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:50 GMT'] + date: ['Fri, 06 Apr 2018 12:23:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] - x-timer: ['S1507631630.817681,VS0,VE451'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017425.333608,VS0,VE434'] 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 2e96f98..ba0b152 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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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, 10 Oct 2017 10:33:53 GMT'] + date: ['Fri, 06 Apr 2018 12:23:47 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] - x-timer: ['S1507631633.842488,VS0,VE441'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017427.232138,VS0,VE121'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"8f3fe2556e319bac9e0eab7a622ee813276a21c3","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:33:53Z","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly + Ansible Module Test","publish_key":"e32f47708d573b2eefac03098781286345fd8e14","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:23:47Z","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:53 GMT'] - fastly-ratelimit-remaining: ['955'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:47 GMT'] + fastly-ratelimit-remaining: ['833'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] - x-timer: ['S1507631633.432945,VS0,VE438'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017427.413249,VS0,VE405'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":1,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:53Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:33:53Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":1,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:47Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:47Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] @@ -64,64 +65,64 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:54 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4450-AMS'] - x-timer: ['S1507631634.004296,VS0,VE418'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017428.880737,VS0,VE153'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version response: - body: {string: !!python/unicode '{"service_id":"3zrbQBlV8EKHJTiItIbxr2","number":2}'} + body: {string: !!python/unicode '{"service_id":"2m3lccbth5ClCGg3shAEzO","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:54 GMT'] - fastly-ratelimit-remaining: ['954'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:48 GMT'] + fastly-ratelimit-remaining: ['832'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] - x-timer: ['S1507631635.546822,VS0,VE445'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017428.097885,VS0,VE405'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/domain + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":2,"deleted_at":null,"created_at":"2017-10-10T10:33:55Z","updated_at":"2017-10-10T10:33:55Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2m3lccbth5ClCGg3shAEzO","version":2,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","updated_at":"2018-04-06T12:23:48Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:55 GMT'] - fastly-ratelimit-remaining: ['953'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:49 GMT'] + fastly-ratelimit-remaining: ['831'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] - x-timer: ['S1507631635.096080,VS0,VE520'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017429.568199,VS0,VE479'] 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/3zrbQBlV8EKHJTiItIbxr2/version/2/condition + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"REQUEST","name":"condition-name","statement":"req.url - ~ \"^/robots.txt\"","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"2","deleted_at":null,"created_at":"2017-10-10T10:33:56Z","updated_at":"2017-10-10T10:33:56Z"}'} + ~ \"^/robots.txt\"","service_id":"2m3lccbth5ClCGg3shAEzO","version":"2","deleted_at":null,"created_at":"2018-04-06T12:23:49Z","updated_at":"2018-04-06T12:23:49Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['253'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:56 GMT'] - fastly-ratelimit-remaining: ['952'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:49 GMT'] + fastly-ratelimit-remaining: ['830'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] - x-timer: ['S1507631636.737544,VS0,VE426'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017429.274206,VS0,VE418'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -159,25 +160,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/backend + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:33:56Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:33:56Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2m3lccbth5ClCGg3shAEzO","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:50Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:50Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:56 GMT'] - fastly-ratelimit-remaining: ['951'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:50 GMT'] + fastly-ratelimit-remaining: ['829'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] - x-timer: ['S1507631636.308533,VS0,VE465'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017430.817546,VS0,VE457'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -187,26 +188,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/header + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","version":"2","updated_at":"2017-10-10T10:33:57Z","deleted_at":null,"created_at":"2017-10-10T10:33:57Z"}'} + 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":"2m3lccbth5ClCGg3shAEzO","version":"2","updated_at":"2018-04-06T12:23:50Z","deleted_at":null,"created_at":"2018-04-06T12:23:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:57 GMT'] - fastly-ratelimit-remaining: ['950'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:50 GMT'] + fastly-ratelimit-remaining: ['828'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] - x-timer: ['S1507631637.873940,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523017430.336994,VS0,VE404'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -214,88 +215,88 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/response_object + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:33:57Z","updated_at":"2017-10-10T10:33:57Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"2m3lccbth5ClCGg3shAEzO","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:51Z","updated_at":"2018-04-06T12:23:51Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:57 GMT'] - fastly-ratelimit-remaining: ['949'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:51 GMT'] + fastly-ratelimit-remaining: ['827'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] - x-timer: ['S1507631637.463263,VS0,VE475'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017431.804236,VS0,VE414'] 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/3zrbQBlV8EKHJTiItIbxr2/version/2/settings + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3zrbQBlV8EKHJTiItIbxr2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2m3lccbth5ClCGg3shAEzO"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:58 GMT'] - fastly-ratelimit-remaining: ['948'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:51 GMT'] + fastly-ratelimit-remaining: ['826'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] - x-timer: ['S1507631638.057556,VS0,VE468'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523017431.364253,VS0,VE460'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/2/activate + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:57Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:51Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:59 GMT'] - fastly-ratelimit-remaining: ['947'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:52 GMT'] + fastly-ratelimit-remaining: ['825'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] - x-timer: ['S1507631639.613799,VS0,VE994'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017432.893193,VS0,VE977'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:59Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -306,13 +307,13 @@ interactions: connection: [keep-alive] content-length: ['4083'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:33:59 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4434-AMS'] - x-timer: ['S1507631640.735210,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017433.933075,VS0,VE140'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml b/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml index 1ea424b..abac8c1 100644 --- a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyDirectors_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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":""}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['828'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:07 GMT'] + date: ['Fri, 06 Apr 2018 12:24:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631648.543346,VS0,VE137'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017447.022948,VS0,VE142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -42,46 +42,46 @@ interactions: connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:07 GMT'] + date: ['Fri, 06 Apr 2018 12:24:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] - x-timer: ['S1507631648.766698,VS0,VE110'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523017447.227186,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/deactivate + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:08 GMT'] - fastly-ratelimit-remaining: ['937'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:07 GMT'] + fastly-ratelimit-remaining: ['810'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4130-AMS'] - x-timer: ['S1507631648.973318,VS0,VE485'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017447.426823,VS0,VE201'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2 + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:09 GMT'] - fastly-ratelimit-remaining: ['936'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:07 GMT'] + fastly-ratelimit-remaining: ['809'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] - x-timer: ['S1507631649.539796,VS0,VE495'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017448.692482,VS0,VE133'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml b/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml index ba98cde..5951d22 100644 --- a/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml +++ b/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml @@ -6,101 +6,566 @@ 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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":""}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:00 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4439-AMS'] - x-timer: ['S1507631640.117342,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017433.191545,VS0,VE145'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:59Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:33:59Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:33:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4083'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:00 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4450-AMS'] - x-timer: ['S1507631641.543227,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017433.401424,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19133-FRA'] + x-timer: ['S1523017434.582376,VS0,VE410'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/clone response: - body: {string: !!python/unicode '{"service_id":"3zrbQBlV8EKHJTiItIbxr2","number":3}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:01 GMT'] - fastly-ratelimit-remaining: ['946'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:54 GMT'] + fastly-ratelimit-remaining: ['824'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4426-AMS'] - x-timer: ['S1507631641.784170,VS0,VE415'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017434.076154,VS0,VE477'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/domain + response: + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"2m3lccbth5ClCGg3shAEzO","created_at":"2018-04-06T12:23:48Z","comment":"","updated_at":"2018-04-06T12:23:48Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['181'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:54 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017435.617904,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19137-FRA'] + x-timer: ['S1523017435.794087,VS0,VE409'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/condition + response: + body: {string: !!python/unicode '[{"priority":"0","version":"3","name":"condition-name","deleted_at":null,"service_id":"2m3lccbth5ClCGg3shAEzO","created_at":"2018-04-06T12:23:49Z","comment":"","statement":"req.url + ~ \"^/robots.txt\"","updated_at":"2018-04-06T12:23:49Z","type":"REQUEST"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['255'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19150-FRA'] + x-timer: ['S1523017435.267902,VS0,VE125'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:23:50Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"2m3lccbth5ClCGg3shAEzO","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:23:50Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19130-FRA'] + x-timer: ['S1523017435.458495,VS0,VE125'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19128-FRA'] + x-timer: ['S1523017436.659798,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19137-FRA'] + x-timer: ['S1523017436.849315,VS0,VE116'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523017436.028158,VS0,VE409'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/header + response: + body: {string: !!python/unicode '[{"priority":"100","service_id":"2m3lccbth5ClCGg3shAEzO","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:23:50Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:23:50Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['415'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017437.587887,VS0,VE406'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19142-FRA'] + x-timer: ['S1523017437.214511,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set + 200 status code","content":"","deleted_at":null,"service_id":"2m3lccbth5ClCGg3shAEzO","cache_condition":"","created_at":"2018-04-06T12:23:51Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:23:51Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19147-FRA'] + x-timer: ['S1523017437.397784,VS0,VE128'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19133-FRA'] + x-timer: ['S1523017438.589191,VS0,VE405'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017438.058526,VS0,VE431'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017439.554477,VS0,VE423'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/domain/example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:59 GMT'] + fastly-ratelimit-remaining: ['823'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017439.093964,VS0,VE517'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/condition/condition-name + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:00 GMT'] + fastly-ratelimit-remaining: ['822'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017440.722360,VS0,VE427'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:00 GMT'] + fastly-ratelimit-remaining: ['821'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017440.214759,VS0,VE428'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:01 GMT'] + fastly-ratelimit-remaining: ['820'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017441.708054,VS0,VE466'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/response_object/Set%20200%20status%20code + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:01 GMT'] + fastly-ratelimit-remaining: ['819'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017441.393387,VS0,VE421'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/domain + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","updated_at":"2017-10-10T10:34:01Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"deleted_at":null,"created_at":"2018-04-06T12:24:02Z","updated_at":"2018-04-06T12:24:02Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:01 GMT'] - fastly-ratelimit-remaining: ['945'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:02 GMT'] + fastly-ratelimit-remaining: ['818'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] - x-timer: ['S1507631642.732534,VS0,VE206'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017442.878651,VS0,VE469'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -111,25 +576,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/backend + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:02Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:02Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:02Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:02Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:02 GMT'] - fastly-ratelimit-remaining: ['944'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:02 GMT'] + fastly-ratelimit-remaining: ['817'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] - x-timer: ['S1507631642.044043,VS0,VE175'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523017442.438506,VS0,VE169'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "retries": 5, "capacity": 100, "shield": @@ -137,50 +602,50 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/director + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/director response: - body: {string: !!python/unicode '{"comment":"","retries":5,"capacity":100,"shield":null,"backends":[],"quorum":75,"type":4,"name":"client_director","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"deleted_at":null,"created_at":"2017-10-10T10:34:02Z","updated_at":"2017-10-10T10:34:02Z"}'} + body: {string: !!python/unicode '{"comment":"","retries":5,"capacity":100,"shield":null,"backends":[],"quorum":75,"type":4,"name":"client_director","service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"deleted_at":null,"created_at":"2018-04-06T12:24:03Z","updated_at":"2018-04-06T12:24:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['255'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:02 GMT'] - fastly-ratelimit-remaining: ['943'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:03 GMT'] + fastly-ratelimit-remaining: ['816'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] - x-timer: ['S1507631642.363895,VS0,VE458'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017443.672935,VS0,VE410'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/director/client_director/backend/localhost + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/director/client_director/backend/localhost response: - body: {string: !!python/unicode '{"service_id":"3zrbQBlV8EKHJTiItIbxr2","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2017-10-10T10:34:03Z","deleted_at":null,"updated_at":"2017-10-10T10:34:03Z"}'} + body: {string: !!python/unicode '{"service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2018-04-06T12:24:03Z","deleted_at":null,"updated_at":"2018-04-06T12:24:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['202'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:03 GMT'] - fastly-ratelimit-remaining: ['942'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:03 GMT'] + fastly-ratelimit-remaining: ['815'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] - x-timer: ['S1507631643.966117,VS0,VE454'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017443.149163,VS0,VE434'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -190,26 +655,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/header + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","version":"3","updated_at":"2017-10-10T10:34:03Z","deleted_at":null,"created_at":"2017-10-10T10:34:03Z"}'} + 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":"2m3lccbth5ClCGg3shAEzO","version":"3","updated_at":"2018-04-06T12:24:03Z","deleted_at":null,"created_at":"2018-04-06T12:24:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:03 GMT'] - fastly-ratelimit-remaining: ['941'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:03 GMT'] + fastly-ratelimit-remaining: ['814'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4441-AMS'] - x-timer: ['S1507631644.520510,VS0,VE449'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017444.647262,VS0,VE150'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -217,104 +682,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/response_object + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3zrbQBlV8EKHJTiItIbxr2","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:04Z","updated_at":"2017-10-10T10:34:04Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"2m3lccbth5ClCGg3shAEzO","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:04Z","updated_at":"2018-04-06T12:24:04Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:04 GMT'] - fastly-ratelimit-remaining: ['940'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:04 GMT'] + fastly-ratelimit-remaining: ['813'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] - x-timer: ['S1507631644.083235,VS0,VE440'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017444.866028,VS0,VE413'] 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/3zrbQBlV8EKHJTiItIbxr2/version/3/settings + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3zrbQBlV8EKHJTiItIbxr2"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"2m3lccbth5ClCGg3shAEzO"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:05 GMT'] - fastly-ratelimit-remaining: ['939'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:04 GMT'] + fastly-ratelimit-remaining: ['812'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631645.645230,VS0,VE479'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017444.486252,VS0,VE436'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/version/3/activate + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:04Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:04Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:06 GMT'] - fastly-ratelimit-remaining: ['938'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:05 GMT'] + fastly-ratelimit-remaining: ['811'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] - x-timer: ['S1507631645.227030,VS0,VE1007'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017445.993062,VS0,VE890'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:06 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4428-AMS'] - x-timer: ['S1507631646.335371,VS0,VE449'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017446.947770,VS0,VE412'] status: {code: 200, message: OK} - request: body: null @@ -323,33 +787,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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":""}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['828'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:07 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4142-AMS'] - x-timer: ['S1507631647.870373,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017446.423005,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -359,25 +823,25 @@ interactions: connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:07 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4138-AMS'] - x-timer: ['S1507631647.122923,VS0,VE110'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017447.627006,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3zrbQBlV8EKHJTiItIbxr2/details + uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/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":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:53Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:33:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:33:54Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"created_at":"2017-10-10T10:34:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:06Z","deployed":false}],"created_at":"2017-10-10T10:33:53Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:33:53Z","id":"3zrbQBlV8EKHJTiItIbxr2","version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3zrbQBlV8EKHJTiItIbxr2","staging":false,"updated_at":"2017-10-10T10:34:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2017-10-10T10:34:02Z","backends":["localhost"],"comment":"","updated_at":"2017-10-10T10:34:02Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -387,13 +851,13 @@ interactions: connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:07 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4436-AMS'] - x-timer: ['S1507631647.325270,VS0,VE110'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017447.811984,VS0,VE119'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml index 85f3829..c9654d9 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml @@ -6,86 +6,85 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false},{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false},{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":""}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:14 GMT'] + date: ['Fri, 06 Apr 2018 12:25:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] - x-timer: ['S1507631655.861023,VS0,VE135'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017515.496113,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/details + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/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":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:14Z","deployed":false}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0","version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:14Z","deployed":false}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t","version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4311'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:15 GMT'] + date: ['Fri, 06 Apr 2018 12:25:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] - x-timer: ['S1507631655.183462,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017516.699719,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/deactivate + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:14Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:14Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:16 GMT'] - fastly-ratelimit-remaining: ['926'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:16 GMT'] + fastly-ratelimit-remaining: ['724'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] - x-timer: ['S1507631655.433554,VS0,VE571'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017516.886246,VS0,VE491'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0 + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -94,15 +93,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:16 GMT'] - fastly-ratelimit-remaining: ['925'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:16 GMT'] + fastly-ratelimit-remaining: ['723'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] - x-timer: ['S1507631656.100428,VS0,VE440'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017517.595367,VS0,VE132'] 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 4a0d117..cbcfe8c 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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, 10 Oct 2017 10:34:09 GMT'] + date: ['Fri, 06 Apr 2018 12:25:10 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-ams4132-AMS'] - x-timer: ['S1507631649.133871,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017510.330418,VS0,VE401'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"8383c77596abe975a7f7747582243f576e8aa580","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:09Z","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly + Ansible Module Test","publish_key":"7096121909586a0426b87c292cc69f98dfee7b20","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:09 GMT'] - fastly-ratelimit-remaining: ['935'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:11 GMT'] + fastly-ratelimit-remaining: ['733'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4133-AMS'] - x-timer: ['S1507631649.363695,VS0,VE415'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017511.795760,VS0,VE411'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/details + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/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":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0","version":{"testing":false,"number":1,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:09Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:09Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t","version":{"testing":false,"number":1,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:11Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","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: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:10 GMT'] + date: ['Fri, 06 Apr 2018 12:25:11 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] - x-timer: ['S1507631650.867033,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017511.271285,VS0,VE450'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version response: - body: {string: !!python/unicode '{"service_id":"4HlJytmc1TIv4wK5kD0Af0","number":2}'} + body: {string: !!python/unicode '{"service_id":"4HqdsSuKcvS6sTjHYzXH7t","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:10 GMT'] - fastly-ratelimit-remaining: ['934'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:11 GMT'] + fastly-ratelimit-remaining: ['732'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] - x-timer: ['S1507631650.101653,VS0,VE181'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017512.784937,VS0,VE148'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/domain + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4HlJytmc1TIv4wK5kD0Af0","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","updated_at":"2017-10-10T10:34:10Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":2,"deleted_at":null,"created_at":"2018-04-06T12:25:12Z","updated_at":"2018-04-06T12:25:12Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:10 GMT'] - fastly-ratelimit-remaining: ['933'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:12 GMT'] + fastly-ratelimit-remaining: ['731'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] - x-timer: ['S1507631650.375867,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017512.998345,VS0,VE190'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +132,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/backend + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4HlJytmc1TIv4wK5kD0Af0","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:11Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:11Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:25:12Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:25:12Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:11 GMT'] - fastly-ratelimit-remaining: ['932'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:12 GMT'] + fastly-ratelimit-remaining: ['730'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4426-AMS'] - x-timer: ['S1507631651.666151,VS0,VE486'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017512.252283,VS0,VE449'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content_types": "text/html text/css application/javascript", @@ -160,26 +159,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/gzip + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/gzip response: body: {string: !!python/unicode '{"content_types":"text/html text/css application/javascript","extensions":"html - css js","name":"gzip-config-name","cache_condition":"","service_id":"4HlJytmc1TIv4wK5kD0Af0","version":"2","deleted_at":null,"created_at":"2017-10-10T10:34:11Z","updated_at":"2017-10-10T10:34:11Z"}'} + css js","name":"gzip-config-name","cache_condition":"","service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":"2","deleted_at":null,"created_at":"2018-04-06T12:25:12Z","updated_at":"2018-04-06T12:25:12Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['277'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:11 GMT'] - fastly-ratelimit-remaining: ['931'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:12 GMT'] + fastly-ratelimit-remaining: ['729'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4127-AMS'] - x-timer: ['S1507631651.243089,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017513.835950,VS0,VE150'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -189,26 +188,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/header + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/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":"4HlJytmc1TIv4wK5kD0Af0","version":"2","updated_at":"2017-10-10T10:34:12Z","deleted_at":null,"created_at":"2017-10-10T10:34:12Z"}'} + 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":"4HqdsSuKcvS6sTjHYzXH7t","version":"2","updated_at":"2018-04-06T12:25:13Z","deleted_at":null,"created_at":"2018-04-06T12:25:13Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:12 GMT'] - fastly-ratelimit-remaining: ['930'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:13 GMT'] + fastly-ratelimit-remaining: ['728'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] - x-timer: ['S1507631652.814987,VS0,VE465'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017513.050315,VS0,VE150'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -216,90 +215,90 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/response_object + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"4HlJytmc1TIv4wK5kD0Af0","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:12Z","updated_at":"2017-10-10T10:34:12Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:25:13Z","updated_at":"2018-04-06T12:25:13Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:12 GMT'] - fastly-ratelimit-remaining: ['929'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:13 GMT'] + fastly-ratelimit-remaining: ['727'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] - x-timer: ['S1507631652.379436,VS0,VE437'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017513.266393,VS0,VE145'] 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/4HlJytmc1TIv4wK5kD0Af0/version/2/settings + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4HlJytmc1TIv4wK5kD0Af0"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4HqdsSuKcvS6sTjHYzXH7t"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:13 GMT'] - fastly-ratelimit-remaining: ['928'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:13 GMT'] + fastly-ratelimit-remaining: ['726'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] - x-timer: ['S1507631653.905907,VS0,VE470'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017513.472199,VS0,VE173'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/version/2/activate + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:12Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:13Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:14 GMT'] - fastly-ratelimit-remaining: ['927'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:14 GMT'] + fastly-ratelimit-remaining: ['725'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] - x-timer: ['S1507631653.461469,VS0,VE1011'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017514.709250,VS0,VE1021'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4HlJytmc1TIv4wK5kD0Af0/details + uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/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":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:09Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:09Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"created_at":"2017-10-10T10:34:10Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:14Z","deployed":false}],"created_at":"2017-10-10T10:34:09Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:09Z","id":"4HlJytmc1TIv4wK5kD0Af0","version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:14Z","deployed":false}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t","version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HlJytmc1TIv4wK5kD0Af0","staging":false,"updated_at":"2017-10-10T10:34:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2017-10-10T10:34:11Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2017-10-10T10:34:11Z","content_types":"text/html + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -310,13 +309,13 @@ interactions: connection: [keep-alive] content-length: ['4311'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:14 GMT'] + date: ['Fri, 06 Apr 2018 12:25:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4150-AMS'] - x-timer: ['S1507631655.577478,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017515.924827,VS0,VE444'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml index d5c5e73..76554a5 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml @@ -6,81 +6,80 @@ 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":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:24 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4125-AMS'] - x-timer: ['S1507631664.714776,VS0,VE409'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017473.320995,VS0,VE149'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4333'] + content-length: ['4565'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:24 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4141-AMS'] - x-timer: ['S1507631664.264076,VS0,VE109'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017474.536527,VS0,VE108'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/deactivate + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:24 GMT'] - fastly-ratelimit-remaining: ['915'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:34 GMT'] + fastly-ratelimit-remaining: ['778'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631664.463623,VS0,VE484'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017474.711671,VS0,VE524'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +88,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:25 GMT'] - fastly-ratelimit-remaining: ['914'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:34 GMT'] + fastly-ratelimit-remaining: ['777'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] - x-timer: ['S1507631665.033185,VS0,VE454'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017474.399707,VS0,VE395'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml b/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml index df9ec2b..fe121ac 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml @@ -6,122 +6,538 @@ 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 ''1z3ENiEMpKOrsGqTBLhkF2''-''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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['111'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:16 GMT'] - status: [404 Not Found] + date: ['Fri, 06 Apr 2018 12:24:21 GMT'] + status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] - x-timer: ['S1507631657.645955,VS0,VE151'] - status: {code: 404, message: Not Found} + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017461.086218,VS0,VE143'] + status: {code: 200, message: OK} - request: - body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details response: - body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"9aab099ce74114d38cb39aef6874ee36199d9dcf","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['512'] + content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:17 GMT'] - fastly-ratelimit-remaining: ['924'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:21 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] - x-timer: ['S1507631657.899417,VS0,VE431'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017461.294277,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/active response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":1,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:17Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1041'] + content-length: ['230'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:17 GMT'] + date: ['Fri, 06 Apr 2018 12:24:21 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] - x-timer: ['S1507631657.417345,VS0,VE152'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017461.475039,VS0,VE110'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version + method: PUT + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:22 GMT'] + fastly-ratelimit-remaining: ['790'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523017462.652414,VS0,VE492'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/domain + response: + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","created_at":"2018-04-06T12:24:17Z","comment":"","updated_at":"2018-04-06T12:24:17Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['181'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:22 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017462.284536,VS0,VE405'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:22 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017463.757585,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24: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-fra19147-FRA'] + x-timer: ['S1523017463.942020,VS0,VE124'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:24:17Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:24:17Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24: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-fra19132-FRA'] + x-timer: ['S1523017463.130038,VS0,VE425'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24: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-fra19136-FRA'] + x-timer: ['S1523017464.644175,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24: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-fra19122-FRA'] + x-timer: ['S1523017464.828094,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:24 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523017464.013067,VS0,VE126'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/header + response: + body: {string: !!python/unicode '[{"priority":"100","service_id":"3HIt3z8Zgd8OYOeLP4avj6","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:24:18Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:24:18Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['415'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:24 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017464.203091,VS0,VE389'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:25 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017465.789978,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set + 200 status code","content":"","deleted_at":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","cache_condition":"","created_at":"2018-04-06T12:24:18Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:24:18Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:25 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017465.419171,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:25 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017466.607573,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:25 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017466.792420,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:26 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017466.980024,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/domain/example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:26 GMT'] + fastly-ratelimit-remaining: ['789'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017466.163536,VS0,VE443'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:27 GMT'] + fastly-ratelimit-remaining: ['788'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017467.728687,VS0,VE451'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:27 GMT'] + fastly-ratelimit-remaining: ['787'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017467.303451,VS0,VE464'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/response_object/Set%20200%20status%20code response: - body: {string: !!python/unicode '{"service_id":"4QFxZxf32MisKh2IE0OulQ","number":2}'} + body: {string: !!python/unicode '{"status":"ok"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:18 GMT'] - fastly-ratelimit-remaining: ['923'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:28 GMT'] + fastly-ratelimit-remaining: ['786'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631658.655071,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523017468.831742,VS0,VE452'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/domain + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4QFxZxf32MisKh2IE0OulQ","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:18Z","updated_at":"2017-10-10T10:34:18Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":3,"deleted_at":null,"created_at":"2018-04-06T12:24:28Z","updated_at":"2018-04-06T12:24:28Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:18 GMT'] - fastly-ratelimit-remaining: ['922'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:28 GMT'] + fastly-ratelimit-remaining: ['785'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] - x-timer: ['S1507631658.156446,VS0,VE426'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523017468.348338,VS0,VE195'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "test_healthcheck", "http_version": @@ -131,25 +547,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/healthcheck + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/healthcheck response: - body: {string: !!python/unicode '{"comment":"","name":"test_healthcheck","http_version":"1.1","window":5,"initial":4,"timeout":5000,"host":"example8000.com","expected_response":200,"check_interval":15000,"threshold":3,"path":"/healthcheck","method":"GET","service_id":"4QFxZxf32MisKh2IE0OulQ","version":2,"updated_at":"2017-10-10T10:34:19Z","deleted_at":null,"created_at":"2017-10-10T10:34:19Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"test_healthcheck","http_version":"1.1","window":5,"initial":4,"timeout":5000,"host":"example8000.com","expected_response":200,"check_interval":15000,"threshold":3,"path":"/healthcheck","method":"GET","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":3,"updated_at":"2018-04-06T12:24:28Z","deleted_at":null,"created_at":"2018-04-06T12:24:28Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['362'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:19 GMT'] - fastly-ratelimit-remaining: ['921'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:29 GMT'] + fastly-ratelimit-remaining: ['784'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] - x-timer: ['S1507631659.668112,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523017469.606852,VS0,VE434'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -160,25 +576,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/backend + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":"test_healthcheck","first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4QFxZxf32MisKh2IE0OulQ","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:19Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:19Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":"test_healthcheck","first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:29Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:29Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['730'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:19 GMT'] - fastly-ratelimit-remaining: ['920'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:29 GMT'] + fastly-ratelimit-remaining: ['783'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] - x-timer: ['S1507631659.254287,VS0,VE582'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017469.176811,VS0,VE424'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -188,26 +604,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/header + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4QFxZxf32MisKh2IE0OulQ","version":"2","updated_at":"2017-10-10T10:34:20Z","deleted_at":null,"created_at":"2017-10-10T10:34:20Z"}'} + 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":"3HIt3z8Zgd8OYOeLP4avj6","version":"3","updated_at":"2018-04-06T12:24:30Z","deleted_at":null,"created_at":"2018-04-06T12:24:30Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:20 GMT'] - fastly-ratelimit-remaining: ['919'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:30 GMT'] + fastly-ratelimit-remaining: ['782'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] - x-timer: ['S1507631660.924720,VS0,VE207'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017470.801845,VS0,VE401'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -215,87 +631,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/response_object + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"4QFxZxf32MisKh2IE0OulQ","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:20Z","updated_at":"2017-10-10T10:34:20Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:30Z","updated_at":"2018-04-06T12:24:30Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:20 GMT'] - fastly-ratelimit-remaining: ['918'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:30 GMT'] + fastly-ratelimit-remaining: ['781'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] - x-timer: ['S1507631660.223859,VS0,VE449'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017470.269828,VS0,VE423'] 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/4QFxZxf32MisKh2IE0OulQ/version/2/settings + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4QFxZxf32MisKh2IE0OulQ"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3HIt3z8Zgd8OYOeLP4avj6"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:20 GMT'] - fastly-ratelimit-remaining: ['917'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:31 GMT'] + fastly-ratelimit-remaining: ['780'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] - x-timer: ['S1507631661.763853,VS0,VE171'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017471.758603,VS0,VE458'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/version/2/activate + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:20Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:30Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:22 GMT'] - fastly-ratelimit-remaining: ['916'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:32 GMT'] + fastly-ratelimit-remaining: ['779'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] - x-timer: ['S1507631661.020607,VS0,VE1292'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017471.476299,VS0,VE867'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -303,16 +719,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4333'] + content-length: ['4565'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:22 GMT'] + date: ['Fri, 06 Apr 2018 12:24:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631663.825321,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017473.520315,VS0,VE144'] status: {code: 200, message: OK} - request: body: null @@ -321,33 +737,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":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:23 GMT'] + date: ['Fri, 06 Apr 2018 12:24:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] - x-timer: ['S1507631663.076751,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017473.726836,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -355,27 +771,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4333'] + content-length: ['4565'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:23 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4438-AMS'] - x-timer: ['S1507631663.302423,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017473.936247,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4QFxZxf32MisKh2IE0OulQ/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"created_at":"2017-10-10T10:34:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:22Z","deployed":false}],"created_at":"2017-10-10T10:34:17Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:17Z","id":"4QFxZxf32MisKh2IE0OulQ","version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4QFxZxf32MisKh2IE0OulQ","staging":false,"updated_at":"2017-10-10T10:34:22Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -383,15 +799,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4333'] + content-length: ['4565'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:23 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4138-AMS'] - x-timer: ['S1507631664.505316,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017473.117020,VS0,VE115'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml index c761838..ae849a4 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml @@ -6,82 +6,81 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":""}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:32 GMT'] + date: ['Fri, 06 Apr 2018 12:24:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631673.853931,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017488.671072,VS0,VE142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/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":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:33 GMT'] + date: ['Fri, 06 Apr 2018 12:24:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] - x-timer: ['S1507631673.145449,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017488.875122,VS0,VE108'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/deactivate + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:33 GMT'] - fastly-ratelimit-remaining: ['904'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:48 GMT'] + fastly-ratelimit-remaining: ['757'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] - x-timer: ['S1507631673.414893,VS0,VE516'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017488.047507,VS0,VE464'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:34 GMT'] - fastly-ratelimit-remaining: ['903'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:48 GMT'] + fastly-ratelimit-remaining: ['756'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] - x-timer: ['S1507631674.060451,VS0,VE415'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017489.573846,VS0,VE141'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml index f060eed..784e9ad 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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, 10 Oct 2017 10:34:25 GMT'] + date: ['Fri, 06 Apr 2018 12:24:41 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-ams4443-AMS'] - x-timer: ['S1507631666.597328,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017481.188620,VS0,VE111'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"d50f347752bc265d53b3917b325774b59aa07e26","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:26Z","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly + Ansible Module Test","publish_key":"af281fe7bd3af169893ff0664d20565ece8a8015","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:41Z","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:26 GMT'] - fastly-ratelimit-remaining: ['913'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:41 GMT'] + fastly-ratelimit-remaining: ['766'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] - x-timer: ['S1507631666.825254,VS0,VE434'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017481.363769,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/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":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":1,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:26Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:26Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":1,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:41Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:41Z","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: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:26 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4126-AMS'] - x-timer: ['S1507631666.365046,VS0,VE454'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017482.565722,VS0,VE417'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version response: - body: {string: !!python/unicode '{"service_id":"4aIcRStjbGbmtsrU17Kcno","number":2}'} + body: {string: !!python/unicode '{"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:27 GMT'] - fastly-ratelimit-remaining: ['912'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:42 GMT'] + fastly-ratelimit-remaining: ['765'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] - x-timer: ['S1507631667.924247,VS0,VE440'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017482.127320,VS0,VE428'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/domain + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4aIcRStjbGbmtsrU17Kcno","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","updated_at":"2017-10-10T10:34:27Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:43Z","updated_at":"2018-04-06T12:24:43Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:27 GMT'] - fastly-ratelimit-remaining: ['911'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:43 GMT'] + fastly-ratelimit-remaining: ['764'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] - x-timer: ['S1507631667.453834,VS0,VE453'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017483.619337,VS0,VE583'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +132,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/backend + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4aIcRStjbGbmtsrU17Kcno","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:28Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:28Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:43Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:43Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:28 GMT'] - fastly-ratelimit-remaining: ['910'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:43 GMT'] + fastly-ratelimit-remaining: ['763'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] - x-timer: ['S1507631668.994018,VS0,VE484'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017483.384037,VS0,VE521'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,26 +160,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/header + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/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":"4aIcRStjbGbmtsrU17Kcno","version":"2","updated_at":"2017-10-10T10:34:28Z","deleted_at":null,"created_at":"2017-10-10T10:34:28Z"}'} + 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":"3kRM9hyWNjgT1XQUfnKlOQ","version":"2","updated_at":"2018-04-06T12:24:44Z","deleted_at":null,"created_at":"2018-04-06T12:24:44Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:29 GMT'] - fastly-ratelimit-remaining: ['909'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:44 GMT'] + fastly-ratelimit-remaining: ['762'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] - x-timer: ['S1507631669.577704,VS0,VE490'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017484.005861,VS0,VE436'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"request_condition": "", "name": "request-setting-config-name", @@ -190,25 +189,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/request_settings + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/request_settings response: - body: {string: !!python/unicode '{"request_condition":"","name":"request-setting-config-name","force_miss":"1","xff":"append","bypass_busy_wait":"1","timer_support":"1","force_ssl":"1","action":"pass","geo_headers":"1","default_host":"example.net","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":30,"service_id":"4aIcRStjbGbmtsrU17Kcno","version":"2","updated_at":"2017-10-10T10:34:29Z","deleted_at":null,"created_at":"2017-10-10T10:34:29Z"}'} + body: {string: !!python/unicode '{"request_condition":"","name":"request-setting-config-name","force_miss":"1","xff":"append","bypass_busy_wait":"1","timer_support":"1","force_ssl":"1","action":"pass","geo_headers":"1","default_host":"example.net","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":30,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":"2","updated_at":"2018-04-06T12:24:44Z","deleted_at":null,"created_at":"2018-04-06T12:24:44Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['432'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:29 GMT'] - fastly-ratelimit-remaining: ['908'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:44 GMT'] + fastly-ratelimit-remaining: ['761'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631669.156274,VS0,VE162'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017485.512766,VS0,VE456'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -216,87 +215,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/response_object + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"4aIcRStjbGbmtsrU17Kcno","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:29Z","updated_at":"2017-10-10T10:34:29Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:45Z","updated_at":"2018-04-06T12:24:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:29 GMT'] - fastly-ratelimit-remaining: ['907'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:45 GMT'] + fastly-ratelimit-remaining: ['760'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] - x-timer: ['S1507631669.426467,VS0,VE444'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017485.051931,VS0,VE157'] 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/4aIcRStjbGbmtsrU17Kcno/version/2/settings + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4aIcRStjbGbmtsrU17Kcno"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:30 GMT'] - fastly-ratelimit-remaining: ['906'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:45 GMT'] + fastly-ratelimit-remaining: ['759'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4426-AMS'] - x-timer: ['S1507631670.015236,VS0,VE469'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017485.274476,VS0,VE440'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/version/2/activate + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:29Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:45Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:31 GMT'] - fastly-ratelimit-remaining: ['905'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:46 GMT'] + fastly-ratelimit-remaining: ['758'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] - x-timer: ['S1507631671.590717,VS0,VE773'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523017486.779629,VS0,VE1041'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/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":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -306,14 +305,14 @@ interactions: connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:31 GMT'] + date: ['Fri, 06 Apr 2018 12:24:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] - x-timer: ['S1507631671.445888,VS0,VE158'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017487.885363,VS0,VE140'] status: {code: 200, message: OK} - request: body: null @@ -322,33 +321,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":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":""}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:31 GMT'] + date: ['Fri, 06 Apr 2018 12:24:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] - x-timer: ['S1507631672.731727,VS0,VE136'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017487.089420,VS0,VE136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/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":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -358,25 +356,25 @@ interactions: connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:32 GMT'] + date: ['Fri, 06 Apr 2018 12:24:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631672.998526,VS0,VE111'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017487.290456,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4aIcRStjbGbmtsrU17Kcno/details + uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/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":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:26Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:26Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"created_at":"2017-10-10T10:34:27Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:31Z","deployed":false}],"created_at":"2017-10-10T10:34:26Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:26Z","id":"4aIcRStjbGbmtsrU17Kcno","version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4aIcRStjbGbmtsrU17Kcno","staging":false,"updated_at":"2017-10-10T10:34:31Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -386,13 +384,13 @@ interactions: connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:32 GMT'] + date: ['Fri, 06 Apr 2018 12:24:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] - x-timer: ['S1507631672.280067,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017487.474011,VS0,VE113'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml index f10523e..6cde163 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml @@ -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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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: ['Tue, 10 Oct 2017 10:34:34 GMT'] + date: ['Fri, 06 Apr 2018 12:24:48 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-ams4137-AMS'] - x-timer: ['S1507631675.717836,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017489.790120,VS0,VE119'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"f72a243a9188b35f24e64ecd256d845e832dea70","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:35Z","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly + Ansible Module Test","publish_key":"f49250f392d4d75307db68362f3fc7219648e1e9","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:35 GMT'] - fastly-ratelimit-remaining: ['902'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:49 GMT'] + fastly-ratelimit-remaining: ['755'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] - x-timer: ['S1507631675.942485,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017489.973402,VS0,VE153'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":1,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:35Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:35Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":1,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:49Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","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: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:36 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4151-AMS'] - x-timer: ['S1507631676.540522,VS0,VE482'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017489.190591,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version response: - body: {string: !!python/unicode '{"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","number":2}'} + body: {string: !!python/unicode '{"service_id":"3t09WMjn5bK09UHuIl7q1A","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:36 GMT'] - fastly-ratelimit-remaining: ['901'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:49 GMT'] + fastly-ratelimit-remaining: ['754'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] - x-timer: ['S1507631676.127852,VS0,VE481'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017489.403420,VS0,VE430'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/domain + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4kaOUJ6F9Xes5wfMWUoKa4","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:37Z","updated_at":"2017-10-10T10:34:37Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3t09WMjn5bK09UHuIl7q1A","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:50Z","updated_at":"2018-04-06T12:24:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:38 GMT'] - fastly-ratelimit-remaining: ['900'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:50 GMT'] + fastly-ratelimit-remaining: ['753'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] - x-timer: ['S1507631677.737118,VS0,VE1587'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017490.066010,VS0,VE487'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +133,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/backend + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:38Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:38Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:50Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:50Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:38 GMT'] - fastly-ratelimit-remaining: ['899'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:51 GMT'] + fastly-ratelimit-remaining: ['752'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] - x-timer: ['S1507631678.416655,VS0,VE196'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017491.616511,VS0,VE426'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,26 +161,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/header + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"4kaOUJ6F9Xes5wfMWUoKa4","version":"2","updated_at":"2017-10-10T10:34:39Z","deleted_at":null,"created_at":"2017-10-10T10:34:39Z"}'} + 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":"3t09WMjn5bK09UHuIl7q1A","version":"2","updated_at":"2018-04-06T12:24:51Z","deleted_at":null,"created_at":"2018-04-06T12:24:51Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:39 GMT'] - fastly-ratelimit-remaining: ['898'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:51 GMT'] + fastly-ratelimit-remaining: ['751'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631679.719144,VS0,VE432'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017491.111570,VS0,VE435'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -189,87 +189,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/response_object + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"4kaOUJ6F9Xes5wfMWUoKa4","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:39Z","updated_at":"2017-10-10T10:34:39Z"}'} + 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"3t09WMjn5bK09UHuIl7q1A","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:51Z","updated_at":"2018-04-06T12:24:51Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['305'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:39 GMT'] - fastly-ratelimit-remaining: ['897'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:52 GMT'] + fastly-ratelimit-remaining: ['750'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] - x-timer: ['S1507631679.319848,VS0,VE483'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017492.609620,VS0,VE412'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/settings + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3t09WMjn5bK09UHuIl7q1A"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:40 GMT'] - fastly-ratelimit-remaining: ['896'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:52 GMT'] + fastly-ratelimit-remaining: ['749'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] - x-timer: ['S1507631680.890211,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017492.116367,VS0,VE133'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/activate + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:39Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:51Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:41 GMT'] - fastly-ratelimit-remaining: ['895'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:53 GMT'] + fastly-ratelimit-remaining: ['748'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] - x-timer: ['S1507631680.181279,VS0,VE1058'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017492.360050,VS0,VE948'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -279,14 +279,14 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:41 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4442-AMS'] - x-timer: ['S1507631681.381384,VS0,VE194'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017493.406904,VS0,VE144'] status: {code: 200, message: OK} - request: body: null @@ -295,60 +295,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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:42 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4450-AMS'] - x-timer: ['S1507631682.654963,VS0,VE547'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017494.620708,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:42 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4137-AMS'] - x-timer: ['S1507631682.374132,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017494.824079,VS0,VE109'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -358,13 +358,13 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:42 GMT'] + date: ['Fri, 06 Apr 2018 12:24:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4441-AMS'] - x-timer: ['S1507631683.624630,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017494.002613,VS0,VE123'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml index 2660dbe..c83f5da 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml @@ -6,32 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":""}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:44 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4140-AMS'] - x-timer: ['S1507631684.432080,VS0,VE472'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017454.703191,VS0,VE142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -41,46 +41,46 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:45 GMT'] + date: ['Fri, 06 Apr 2018 12:24:14 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] - x-timer: ['S1507631685.984443,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017454.909883,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/version/2/deactivate + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:45 GMT'] - fastly-ratelimit-remaining: ['894'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:14 GMT'] + fastly-ratelimit-remaining: ['800'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] - x-timer: ['S1507631685.212757,VS0,VE490'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017454.088004,VS0,VE200'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4 + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:46 GMT'] - fastly-ratelimit-remaining: ['893'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:14 GMT'] + fastly-ratelimit-remaining: ['799'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] - x-timer: ['S1507631686.781359,VS0,VE446'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017454.352529,VS0,VE420'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml index c9ff370..345a5bd 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml @@ -6,61 +6,269 @@ 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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} + body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load + service ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['111'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:08 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-fra19120-FRA'] + x-timer: ['S1523017448.907102,VS0,VE112'] + 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":"3de0b5f6fcfbe7df9e0b80da05080c1190b90a89","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:08Z","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:43 GMT'] + date: ['Fri, 06 Apr 2018 12:24:08 GMT'] + fastly-ratelimit-remaining: ['808'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] - x-timer: ['S1507631683.882080,VS0,VE137'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017448.082781,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":1,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:08Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3915'] + content-length: ['1041'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:08 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017449.550408,VS0,VE155'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version + response: + body: {string: !!python/unicode '{"service_id":"39IuHHPEgVvzwZ0uFh7zto","number":2}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['50'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:09 GMT'] + fastly-ratelimit-remaining: ['807'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017449.768998,VS0,VE428'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"comment": "", "name": "example8000.com"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/domain + response: + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"39IuHHPEgVvzwZ0uFh7zto","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","updated_at":"2018-04-06T12:24:09Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['179'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:09 GMT'] + fastly-ratelimit-remaining: ['806'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017449.258947,VS0,VE479'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/backend + response: + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"39IuHHPEgVvzwZ0uFh7zto","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:10Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:10Z","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['716'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:10 GMT'] + fastly-ratelimit-remaining: ['805'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017450.802985,VS0,VE457'] + 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/39IuHHPEgVvzwZ0uFh7zto/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":"39IuHHPEgVvzwZ0uFh7zto","version":"2","updated_at":"2018-04-06T12:24:10Z","deleted_at":null,"created_at":"2018-04-06T12:24:10Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['413'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:10 GMT'] + fastly-ratelimit-remaining: ['804'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017450.325426,VS0,VE143'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set + 200 status code", "content": "Hello from Fastly", "content_type": "text/plain", + "response": "Ok"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/response_object + response: + body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set + 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"39IuHHPEgVvzwZ0uFh7zto","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:10Z","updated_at":"2018-04-06T12:24:10Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['305'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:10 GMT'] + fastly-ratelimit-remaining: ['803'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017451.532601,VS0,VE410'] + 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/39IuHHPEgVvzwZ0uFh7zto/version/2/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"39IuHHPEgVvzwZ0uFh7zto"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:11 GMT'] + fastly-ratelimit-remaining: ['802'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017451.007266,VS0,VE642'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/activate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:10Z","deployed":false,"msg":null}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:43 GMT'] + date: ['Fri, 06 Apr 2018 12:24:12 GMT'] + fastly-ratelimit-remaining: ['801'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] - x-timer: ['S1507631683.171768,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017452.712141,VS0,VE1128'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -70,14 +278,14 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:43 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4424-AMS'] - x-timer: ['S1507631683.423476,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017453.904362,VS0,VE146'] status: {code: 200, message: OK} - request: body: null @@ -86,33 +294,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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":""}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:43 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4134-AMS'] - x-timer: ['S1507631684.687511,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017453.113876,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -122,25 +330,25 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:44 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4129-AMS'] - x-timer: ['S1507631684.954165,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017453.325946,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4kaOUJ6F9Xes5wfMWUoKa4/details + uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/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":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:35Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"created_at":"2017-10-10T10:34:36Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:41Z","deployed":false}],"created_at":"2017-10-10T10:34:35Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:35Z","id":"4kaOUJ6F9Xes5wfMWUoKa4","version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4kaOUJ6F9Xes5wfMWUoKa4","staging":false,"updated_at":"2017-10-10T10:34:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -150,13 +358,13 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:44 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4428-AMS'] - x-timer: ['S1507631684.214427,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523017454.513885,VS0,VE112'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml index 0268500..3d7ebf2 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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, 10 Oct 2017 10:34:46 GMT'] + date: ['Fri, 06 Apr 2018 12:24:15 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-ams4445-AMS'] - x-timer: ['S1507631686.417292,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017455.988261,VS0,VE111'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"c1d2762104b3cd6a9f288cc51729e95b05a3b57c","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:34:47Z","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly + Ansible Module Test","publish_key":"e32cf9226a0314d9449d65fd1eaf3b1677e61427","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:15Z","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:47 GMT'] - fastly-ratelimit-remaining: ['892'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:15 GMT'] + fastly-ratelimit-remaining: ['798'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631687.749738,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017455.162586,VS0,VE473'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":1,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:47Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:34:47Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":1,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:15Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:15Z","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: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:47 GMT'] + date: ['Fri, 06 Apr 2018 12:24:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] - x-timer: ['S1507631687.296902,VS0,VE472'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017456.699933,VS0,VE530'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version response: - body: {string: !!python/unicode '{"service_id":"4xnfA4O8r20X64B725sX14","number":2}'} + body: {string: !!python/unicode '{"service_id":"3HIt3z8Zgd8OYOeLP4avj6","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:48 GMT'] - fastly-ratelimit-remaining: ['891'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:16 GMT'] + fastly-ratelimit-remaining: ['797'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] - x-timer: ['S1507631688.963033,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017456.432357,VS0,VE174'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/domain + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4xnfA4O8r20X64B725sX14","version":2,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","updated_at":"2017-10-10T10:34:48Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:17Z","updated_at":"2018-04-06T12:24:17Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:49 GMT'] - fastly-ratelimit-remaining: ['890'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:17 GMT'] + fastly-ratelimit-remaining: ['796'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] - x-timer: ['S1507631689.564738,VS0,VE502'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017457.672275,VS0,VE514'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +132,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/backend + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4xnfA4O8r20X64B725sX14","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:34:49Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:34:49Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:17Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:17Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:49 GMT'] - fastly-ratelimit-remaining: ['889'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:17 GMT'] + fastly-ratelimit-remaining: ['795'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4425-AMS'] - x-timer: ['S1507631689.307816,VS0,VE397'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017457.264868,VS0,VE444'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,26 +160,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/header + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4xnfA4O8r20X64B725sX14","version":"2","updated_at":"2017-10-10T10:34:50Z","deleted_at":null,"created_at":"2017-10-10T10:34:50Z"}'} + 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":"3HIt3z8Zgd8OYOeLP4avj6","version":"2","updated_at":"2018-04-06T12:24:18Z","deleted_at":null,"created_at":"2018-04-06T12:24:18Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:50 GMT'] - fastly-ratelimit-remaining: ['888'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:18 GMT'] + fastly-ratelimit-remaining: ['794'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] - x-timer: ['S1507631690.826228,VS0,VE476'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017458.846496,VS0,VE433'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -188,87 +187,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/response_object + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"4xnfA4O8r20X64B725sX14","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:34:50Z","updated_at":"2017-10-10T10:34:50Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:18Z","updated_at":"2018-04-06T12:24:18Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:50 GMT'] - fastly-ratelimit-remaining: ['887'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:18 GMT'] + fastly-ratelimit-remaining: ['793'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] - x-timer: ['S1507631690.442226,VS0,VE445'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017459.522884,VS0,VE408'] 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/4xnfA4O8r20X64B725sX14/version/2/settings + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4xnfA4O8r20X64B725sX14"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3HIt3z8Zgd8OYOeLP4avj6"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:51 GMT'] - fastly-ratelimit-remaining: ['886'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:19 GMT'] + fastly-ratelimit-remaining: ['792'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631691.021266,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017459.995439,VS0,VE437'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/2/activate + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:50Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:18Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:52 GMT'] - fastly-ratelimit-remaining: ['885'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:20 GMT'] + fastly-ratelimit-remaining: ['791'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] - x-timer: ['S1507631691.306803,VS0,VE1029'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017459.498169,VS0,VE637'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -278,14 +277,14 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:52 GMT'] + date: ['Fri, 06 Apr 2018 12:24:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4429-AMS'] - x-timer: ['S1507631693.832312,VS0,VE163'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523017460.258422,VS0,VE143'] status: {code: 200, message: OK} - request: body: null @@ -294,32 +293,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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:53 GMT'] + date: ['Fri, 06 Apr 2018 12:24:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] - x-timer: ['S1507631693.140139,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017460.464684,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -329,25 +329,25 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:53 GMT'] + date: ['Fri, 06 Apr 2018 12:24:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] - x-timer: ['S1507631694.789671,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017461.669941,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -357,13 +357,13 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:54 GMT'] + date: ['Fri, 06 Apr 2018 12:24:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] - x-timer: ['S1507631694.138491,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017461.846900,VS0,VE114'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml index b3a2b97..5d5b6ae 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml @@ -6,33 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":""}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['828'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:18 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4422-AMS'] - x-timer: ['S1507631778.083094,VS0,VE173'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017480.780258,VS0,VE132'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,48 +39,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4093'] + content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:18 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4424-AMS'] - x-timer: ['S1507631778.344388,VS0,VE110'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017480.976611,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/deactivate + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:18 GMT'] - fastly-ratelimit-remaining: ['790'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:40 GMT'] + fastly-ratelimit-remaining: ['768'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4444-AMS'] - x-timer: ['S1507631779.531303,VS0,VE202'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017480.164758,VS0,VE479'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14 + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:19 GMT'] - fastly-ratelimit-remaining: ['789'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:41 GMT'] + fastly-ratelimit-remaining: ['767'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4139-AMS'] - x-timer: ['S1507631779.815502,VS0,VE459'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017481.711072,VS0,VE401'] 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 84d3653..fa1b174 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml @@ -6,100 +6,122 @@ 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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} + body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load + service ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['111'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:12 GMT'] + date: ['Fri, 06 Apr 2018 12:24:35 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-fra19140-FRA'] + x-timer: ['S1523017475.039142,VS0,VE401'] + 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":"ea8fb078f10b42b3a7378050602890ede5eac27e","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:35Z","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['512'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:35 GMT'] + fastly-ratelimit-remaining: ['776'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] - x-timer: ['S1507631772.158510,VS0,VE432'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017476.504736,VS0,VE426'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:52Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:34:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":1,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:35Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:35Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3861'] + content-length: ['1041'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:13 GMT'] + date: ['Fri, 06 Apr 2018 12:24:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4140-AMS'] - x-timer: ['S1507631773.666185,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017476.996536,VS0,VE185'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version response: - body: {string: !!python/unicode '{"service_id":"4xnfA4O8r20X64B725sX14","number":3}'} + body: {string: !!python/unicode '{"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:13 GMT'] - fastly-ratelimit-remaining: ['797'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:36 GMT'] + fastly-ratelimit-remaining: ['775'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] - x-timer: ['S1507631773.172492,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017476.247169,VS0,VE472'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/domain + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4xnfA4O8r20X64B725sX14","version":3,"deleted_at":null,"created_at":"2017-10-10T10:36:14Z","updated_at":"2017-10-10T10:36:14Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3eAhSr2iVyJmYQ1rgnhxOS","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","updated_at":"2018-04-06T12:24:36Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:14 GMT'] - fastly-ratelimit-remaining: ['796'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:36 GMT'] + fastly-ratelimit-remaining: ['774'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] - x-timer: ['S1507631774.718902,VS0,VE466'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017477.782831,VS0,VE195'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -110,25 +132,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/backend + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4xnfA4O8r20X64B725sX14","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:14Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:14Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:37Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:37Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:14 GMT'] - fastly-ratelimit-remaining: ['795'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:37 GMT'] + fastly-ratelimit-remaining: ['773'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4447-AMS'] - x-timer: ['S1507631774.267511,VS0,VE162'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017477.042212,VS0,VE169'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -138,26 +160,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/header + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/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":"4xnfA4O8r20X64B725sX14","version":"3","updated_at":"2017-10-10T10:36:14Z","deleted_at":null,"created_at":"2017-10-10T10:36:14Z"}'} + 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":"3eAhSr2iVyJmYQ1rgnhxOS","version":"2","updated_at":"2018-04-06T12:24:37Z","deleted_at":null,"created_at":"2018-04-06T12:24:37Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:15 GMT'] - fastly-ratelimit-remaining: ['794'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:37 GMT'] + fastly-ratelimit-remaining: ['772'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] - x-timer: ['S1507631775.509432,VS0,VE520'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017477.277400,VS0,VE153'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -165,87 +187,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/response_object + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"4xnfA4O8r20X64B725sX14","version":"3","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:15Z","updated_at":"2017-10-10T10:36:15Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3eAhSr2iVyJmYQ1rgnhxOS","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:37Z","updated_at":"2018-04-06T12:24:37Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:15 GMT'] - fastly-ratelimit-remaining: ['793'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:37 GMT'] + fastly-ratelimit-remaining: ['771'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] - x-timer: ['S1507631775.115386,VS0,VE445'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017477.493761,VS0,VE148'] 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/4xnfA4O8r20X64B725sX14/version/3/settings + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":1000,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"4xnfA4O8r20X64B725sX14"}'} + body: {string: !!python/unicode '{"general.default_ttl":1000,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:15 GMT'] - fastly-ratelimit-remaining: ['792'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:37 GMT'] + fastly-ratelimit-remaining: ['770'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] - x-timer: ['S1507631776.666590,VS0,VE205'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017478.705592,VS0,VE179'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/version/3/activate + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:15Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:37Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:16 GMT'] - fastly-ratelimit-remaining: ['791'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:38 GMT'] + fastly-ratelimit-remaining: ['769'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] - x-timer: ['S1507631776.965611,VS0,VE1010'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017478.951224,VS0,VE916'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -253,16 +275,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4093'] + content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:17 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4435-AMS'] - x-timer: ['S1507631777.056761,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017479.992373,VS0,VE147'] status: {code: 200, message: OK} - request: body: null @@ -271,60 +293,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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":""}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['828'] + content-length: ['686'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:17 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4146-AMS'] - x-timer: ['S1507631777.333045,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017479.201994,VS0,VE142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4093'] + content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:17 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4435-AMS'] - x-timer: ['S1507631778.604633,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017479.408368,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4xnfA4O8r20X64B725sX14/details + uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/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":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:34:48Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"created_at":"2017-10-10T10:36:13Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:16Z","deployed":false}],"created_at":"2017-10-10T10:34:47Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:34:47Z","id":"4xnfA4O8r20X64B725sX14","version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4xnfA4O8r20X64B725sX14","staging":false,"updated_at":"2017-10-10T10:36:16Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -332,15 +354,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4093'] + content-length: ['3861'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:17 GMT'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4132-AMS'] - x-timer: ['S1507631778.846658,VS0,VE147'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523017480.586811,VS0,VE113'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml index fc3216c..a328816 100644 --- a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml @@ -6,86 +6,85 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:28 GMT'] + date: ['Fri, 06 Apr 2018 12:25:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] - x-timer: ['S1507631788.043665,VS0,VE136'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017508.318912,VS0,VE411'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"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: ['4489'] + content-length: ['4721'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:28 GMT'] + date: ['Fri, 06 Apr 2018 12:25:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] - x-timer: ['S1507631788.302610,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017509.887470,VS0,VE109'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/deactivate + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:29 GMT'] - fastly-ratelimit-remaining: ['779'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:09 GMT'] + fastly-ratelimit-remaining: ['735'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] - x-timer: ['S1507631789.538504,VS0,VE532'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523017509.061618,VS0,VE658'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -94,15 +93,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:29 GMT'] - fastly-ratelimit-remaining: ['778'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:10 GMT'] + fastly-ratelimit-remaining: ['734'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] - x-timer: ['S1507631789.197563,VS0,VE450'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017510.808153,VS0,VE447'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml index f9d5de9..0e7eda2 100644 --- a/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml @@ -6,123 +6,536 @@ 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 ''1z3ENiEMpKOrsGqTBLhkF2''-''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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['686'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:54 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017494.253046,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['3915'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24: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-fra19120-FRA'] + x-timer: ['S1523017495.870666,VS0,VE397'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['111'] + content-length: ['230'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:19 GMT'] - status: [404 Not Found] + date: ['Fri, 06 Apr 2018 12:24: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-ams4151-AMS'] - x-timer: ['S1507631779.401390,VS0,VE145'] - status: {code: 404, message: Not Found} + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017495.390602,VS0,VE118'] + status: {code: 200, message: OK} - request: - body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service + method: PUT + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/clone response: - body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Fastly - Ansible Module Test","publish_key":"32e676bd7a5bf4f73064d4fb41fb3a6299d49d40","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:36:20Z","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi"}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['512'] + content-length: ['232'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:20 GMT'] - fastly-ratelimit-remaining: ['788'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24:56 GMT'] + fastly-ratelimit-remaining: ['747'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4137-AMS'] - x-timer: ['S1507631780.669830,VS0,VE527'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017496.571638,VS0,VE491'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/domain response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":1,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:20Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:36:20Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","created_at":"2018-04-06T12:24:50Z","comment":"","updated_at":"2018-04-06T12:24:50Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1041'] + content-length: ['181'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:20 GMT'] + date: ['Fri, 06 Apr 2018 12:24:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] - x-timer: ['S1507631780.296670,VS0,VE258'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017496.129568,VS0,VE411'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24: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-fra19123-FRA'] + x-timer: ['S1523017497.750489,VS0,VE387'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/condition response: - body: {string: !!python/unicode '{"service_id":"6eQmGWXRR0l97Hwz8pZlDi","number":2}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:21 GMT'] - fastly-ratelimit-remaining: ['787'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:24: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-ams4425-AMS'] - x-timer: ['S1507631781.663103,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017497.200312,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:24:50Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:24:50Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017498.799751,VS0,VE410'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017498.420731,VS0,VE408'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:59 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017499.048278,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:24:59 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523017499.226305,VS0,VE389'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/header + response: + body: {string: !!python/unicode '[{"priority":"100","service_id":"3t09WMjn5bK09UHuIl7q1A","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:24:51Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:24:51Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['415'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25: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-fra19129-FRA'] + x-timer: ['S1523017500.883059,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25: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-fra19120-FRA'] + x-timer: ['S1523017500.068533,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set + 200 status code","content":"Hello from Fastly","deleted_at":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","cache_condition":"","created_at":"2018-04-06T12:24:51Z","content_type":"text/plain","request_condition":"","updated_at":"2018-04-06T12:24:51Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['307'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25: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-fra19137-FRA'] + x-timer: ['S1523017500.242880,VS0,VE383'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25: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-fra19126-FRA'] + x-timer: ['S1523017501.693949,VS0,VE124'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25: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-fra19128-FRA'] + x-timer: ['S1523017501.884655,VS0,VE123'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25: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-fra19139-FRA'] + x-timer: ['S1523017501.070601,VS0,VE410'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/domain/example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25:02 GMT'] + fastly-ratelimit-remaining: ['746'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017502.555186,VS0,VE475'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25:02 GMT'] + fastly-ratelimit-remaining: ['745'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017502.184012,VS0,VE177'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25:02 GMT'] + fastly-ratelimit-remaining: ['744'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523017502.425360,VS0,VE455'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/response_object/Set%20200%20status%20code + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:25:03 GMT'] + fastly-ratelimit-remaining: ['743'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017503.945070,VS0,VE428'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/domain + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":2,"deleted_at":null,"created_at":"2017-10-10T10:36:22Z","updated_at":"2017-10-10T10:36:22Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3t09WMjn5bK09UHuIl7q1A","version":3,"deleted_at":null,"created_at":"2018-04-06T12:25:03Z","updated_at":"2018-04-06T12:25:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:22 GMT'] - fastly-ratelimit-remaining: ['786'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:03 GMT'] + fastly-ratelimit-remaining: ['742'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] - x-timer: ['S1507631782.690537,VS0,VE539'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017503.467896,VS0,VE207'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +546,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/backend + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:22Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:22Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:25:03Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:25:03Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:22 GMT'] - fastly-ratelimit-remaining: ['785'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:03 GMT'] + fastly-ratelimit-remaining: ['741'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] - x-timer: ['S1507631782.341254,VS0,VE394'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017504.738072,VS0,VE160'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,26 +574,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/header + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"6eQmGWXRR0l97Hwz8pZlDi","version":"2","updated_at":"2017-10-10T10:36:23Z","deleted_at":null,"created_at":"2017-10-10T10:36:23Z"}'} + 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":"3t09WMjn5bK09UHuIl7q1A","version":"3","updated_at":"2018-04-06T12:25:04Z","deleted_at":null,"created_at":"2018-04-06T12:25:04Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:23 GMT'] - fastly-ratelimit-remaining: ['784'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:04 GMT'] + fastly-ratelimit-remaining: ['740'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] - x-timer: ['S1507631783.852259,VS0,VE427'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017504.962793,VS0,VE403'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -188,26 +601,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/response_object + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6eQmGWXRR0l97Hwz8pZlDi","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:24Z","updated_at":"2017-10-10T10:36:24Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3t09WMjn5bK09UHuIl7q1A","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:25:04Z","updated_at":"2018-04-06T12:25:04Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:24 GMT'] - fastly-ratelimit-remaining: ['783'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:04 GMT'] + fastly-ratelimit-remaining: ['739'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] - x-timer: ['S1507631784.817218,VS0,VE481'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017504.435129,VS0,VE429'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "\n if (resp.status >= 500 && resp.status @@ -217,110 +630,110 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/snippet + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/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":"6eQmGWXRR0l97Hwz8pZlDi","version":"2","deleted_at":null,"created_at":"2017-10-10T10:36:24Z","updated_at":"2017-10-10T10:36:24Z","id":"6jcJohqRcnMWCs1gEwh8ys"}'} + stale content","priority":100,"service_id":"3t09WMjn5bK09UHuIl7q1A","version":"3","deleted_at":null,"created_at":"2018-04-06T12:25:05Z","updated_at":"2018-04-06T12:25:05Z","id":"4BRvTlRHoIhk2aUIcClqVR"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['452'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:24 GMT'] - fastly-ratelimit-remaining: ['782'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:05 GMT'] + fastly-ratelimit-remaining: ['738'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631784.393352,VS0,VE398'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017505.108509,VS0,VE404'] 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/6eQmGWXRR0l97Hwz8pZlDi/version/2/settings + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6eQmGWXRR0l97Hwz8pZlDi"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3t09WMjn5bK09UHuIl7q1A"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:25 GMT'] - fastly-ratelimit-remaining: ['781'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:06 GMT'] + fastly-ratelimit-remaining: ['737'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] - x-timer: ['S1507631785.057819,VS0,VE508'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017506.578606,VS0,VE454'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/version/2/activate + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:24Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:05Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:26 GMT'] - fastly-ratelimit-remaining: ['780'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:25:07 GMT'] + fastly-ratelimit-remaining: ['736'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] - x-timer: ['S1507631786.661520,VS0,VE1012'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017506.153791,VS0,VE906'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"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: ['4489'] + content-length: ['4721'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:26 GMT'] + date: ['Fri, 06 Apr 2018 12:25:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] - x-timer: ['S1507631787.816118,VS0,VE159'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017507.195380,VS0,VE415'] status: {code: 200, message: OK} - request: body: null @@ -329,85 +742,84 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['596'] + content-length: ['918'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:27 GMT'] + date: ['Fri, 06 Apr 2018 12:25:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] - x-timer: ['S1507631787.124190,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017508.736068,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"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: ['4489'] + content-length: ['4721'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:27 GMT'] + date: ['Fri, 06 Apr 2018 12:25:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] - x-timer: ['S1507631787.422478,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017508.941687,VS0,VE111'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6eQmGWXRR0l97Hwz8pZlDi/details + uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/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":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:20Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:20Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"created_at":"2017-10-10T10:36:21Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:26Z","deployed":false}],"created_at":"2017-10-10T10:36:20Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:20Z","id":"6eQmGWXRR0l97Hwz8pZlDi","version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6eQmGWXRR0l97Hwz8pZlDi","staging":false,"updated_at":"2017-10-10T10:36:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"6jcJohqRcnMWCs1gEwh8ys"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"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: ['4489'] + content-length: ['4721'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:27 GMT'] + date: ['Fri, 06 Apr 2018 12:25:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631788.640191,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017508.116548,VS0,VE110'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/tearDown b/tests/fixtures/cassettes/tearDown index 792404f..383ee0c 100644 --- a/tests/fixtures/cassettes/tearDown +++ b/tests/fixtures/cassettes/tearDown @@ -6,78 +6,78 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false},{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false},{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":""}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1067'] + content-length: ['925'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:59 GMT'] + date: ['Fri, 06 Apr 2018 12:13:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4437-AMS'] - x-timer: ['S1507631699.380081,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016801.603235,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:20Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO","version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3644'] + content-length: ['3412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:59 GMT'] + date: ['Fri, 06 Apr 2018 12:13:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] - x-timer: ['S1507631700.667797,VS0,VE106'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016801.804587,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/deactivate + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:20Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:00 GMT'] - fastly-ratelimit-remaining: ['879'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:21 GMT'] + fastly-ratelimit-remaining: ['961'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] - x-timer: ['S1507631700.888287,VS0,VE198'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016801.989756,VS0,VE474'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -86,15 +86,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:00 GMT'] - fastly-ratelimit-remaining: ['878'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:21 GMT'] + fastly-ratelimit-remaining: ['960'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] - x-timer: ['S1507631700.428030,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016802.528578,VS0,VE407'] 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 2b9f0f3..0866eb3 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert +++ b/tests/fixtures/cassettes/test_fastly_backend_empty_ssl_ca_cert @@ -6,96 +6,98 @@ 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":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"number":3,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['835'] + content-length: ['694'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:55 GMT'] + date: ['Fri, 06 Apr 2018 12:13: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-ams4135-AMS'] - x-timer: ['S1507631695.888370,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016797.096444,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:31:38Z","deployed":false}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":3,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:31:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:31:34Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:31:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:31:34Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO","version":{"testing":false,"number":2,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T11:10:02Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T11:04:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4612'] + content-length: ['2310'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:55 GMT'] + date: ['Fri, 06 Apr 2018 12:13: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-ams4436-AMS'] - x-timer: ['S1507631695.209711,VS0,VE391'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523016797.273517,VS0,VE442'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version response: - body: {string: !!python/unicode '{"service_id":"2x7fBSkllFGFz9yN8w28KU","number":4}'} + body: {string: !!python/unicode '{"service_id":"1v8QhOhOeCbUWWyCuPzUKO","number":3}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:56 GMT'] - fastly-ratelimit-remaining: ['884'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:18 GMT'] + fastly-ratelimit-remaining: ['966'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] - x-timer: ['S1507631696.725791,VS0,VE446'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523016798.779468,VS0,VE405'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/domain + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"2x7fBSkllFGFz9yN8w28KU","version":4,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","updated_at":"2017-10-10T10:34:56Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"1v8QhOhOeCbUWWyCuPzUKO","version":3,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","updated_at":"2018-04-06T12:13:18Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['183'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:56 GMT'] - fastly-ratelimit-remaining: ['883'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:18 GMT'] + fastly-ratelimit-remaining: ['965'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4148-AMS'] - x-timer: ['S1507631696.305518,VS0,VE489'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016798.247561,VS0,VE480'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -106,100 +108,100 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/backend + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend.example.net","between_bytes_timeout":10000,"max_conn":200,"port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"2x7fBSkllFGFz9yN8w28KU","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend.example.net","client_cert":null,"updated_at":"2017-10-10T10:34:56Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":true,"created_at":"2017-10-10T10:34:56Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend.example.net","between_bytes_timeout":10000,"max_conn":200,"port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend.example.net","client_cert":null,"updated_at":"2018-04-06T12:13:18Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":true,"created_at":"2018-04-06T12:13:18Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['775'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:57 GMT'] - fastly-ratelimit-remaining: ['882'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:18 GMT'] + fastly-ratelimit-remaining: ['964'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631697.911113,VS0,VE165'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523016799.790726,VS0,VE156'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/settings + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"2x7fBSkllFGFz9yN8w28KU"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"1v8QhOhOeCbUWWyCuPzUKO"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:57 GMT'] - fastly-ratelimit-remaining: ['881'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:19 GMT'] + fastly-ratelimit-remaining: ['963'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4451-AMS'] - x-timer: ['S1507631697.192693,VS0,VE181'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016799.010433,VS0,VE183'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/version/4/activate + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:57Z","deployed":false,"msg":"Warning: - Backend host `\"my-backend.example.net\"` could not be resolved to an IP address: - Name or service not known"}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:18Z","deployed":false,"msg":"Warning: + Backend host `my-backend.example.net` could not be resolved to an IP address: + Name or service not known\nat: (input Line 12 Pos 6)\n .host = \"my-backend.example.net\";\n-----####----------------------------"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['355'] + content-length: ['458'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:58 GMT'] - fastly-ratelimit-remaining: ['880'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:20 GMT'] + fastly-ratelimit-remaining: ['962'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] - x-timer: ['S1507631697.487357,VS0,VE1387'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523016799.255677,VS0,VE1063'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2x7fBSkllFGFz9yN8w28KU/details + uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:54Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:54Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-09-27T00:39:55Z","deleted_at":null,"comment":"","updated_at":"2017-09-27T00:39:57Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:31:34Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"created_at":"2017-10-10T10:34:56Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:34:58Z","deployed":false}],"created_at":"2017-09-27T00:39:54Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-09-27T00:39:54Z","id":"2x7fBSkllFGFz9yN8w28KU","version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"2x7fBSkllFGFz9yN8w28KU","staging":false,"updated_at":"2017-10-10T10:34:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:34:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:20Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO","version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3644'] + content-length: ['3412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:34:59 GMT'] + date: ['Fri, 06 Apr 2018 12:13:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4446-AMS'] - x-timer: ['S1507631699.994428,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016800.382044,VS0,VE150'] 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 8f5443b..d8da2a1 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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Jimdo Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''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: ['Tue, 10 Oct 2017 10:35:01 GMT'] + date: ['Fri, 06 Apr 2018 12:13:22 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631701.134968,VS0,VE198'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016802.034374,VS0,VE115'] 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":"1z3ENiEMpKOrsGqTBLhkF2","name":"Jimdo - Fastly Ansible Module Test","publish_key":"78d309655e6c3f639e93e9206287432f98d68e8b","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:35:01Z","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo + Fastly Ansible Module Test","publish_key":"7f12107dd95606193b90ac6b70fd7b0f966a7695","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:13:22Z","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['518'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:01 GMT'] - fastly-ratelimit-remaining: ['877'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:22 GMT'] + fastly-ratelimit-remaining: ['959'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] - x-timer: ['S1507631701.448127,VS0,VE432'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016802.215369,VS0,VE423'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":1,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:01Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:01Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":1,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:22Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:13:22Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +65,64 @@ interactions: connection: [keep-alive] content-length: ['1047'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:02 GMT'] + date: ['Fri, 06 Apr 2018 12:13: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-ams4441-AMS'] - x-timer: ['S1507631702.999988,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016803.702153,VS0,VE486'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":2}'} + body: {string: !!python/unicode '{"service_id":"712MupNjgxT6OzQImAlLw8","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:03 GMT'] - fastly-ratelimit-remaining: ['876'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:23 GMT'] + fastly-ratelimit-remaining: ['958'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631703.596737,VS0,VE462'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016803.253080,VS0,VE141'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/domain + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":2,"deleted_at":null,"created_at":"2017-10-10T10:35:03Z","updated_at":"2017-10-10T10:35:03Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":2,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","updated_at":"2018-04-06T12:13:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['183'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:06 GMT'] - fastly-ratelimit-remaining: ['875'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:23 GMT'] + fastly-ratelimit-remaining: ['957'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631703.247335,VS0,VE3579'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016803.457896,VS0,VE200'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +133,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:07Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:07Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:23Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:23Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:07 GMT'] - fastly-ratelimit-remaining: ['874'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:23 GMT'] + fastly-ratelimit-remaining: ['956'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4133-AMS'] - x-timer: ['S1507631707.970481,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523016804.721821,VS0,VE161'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,26 +161,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/header + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"5EM5Gtj0aWVLOVk3xshHJM","version":"2","updated_at":"2017-10-10T10:35:07Z","deleted_at":null,"created_at":"2017-10-10T10:35:07Z"}'} + 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":"712MupNjgxT6OzQImAlLw8","version":"2","updated_at":"2018-04-06T12:13:24Z","deleted_at":null,"created_at":"2018-04-06T12:13:24Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:08 GMT'] - fastly-ratelimit-remaining: ['873'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:24 GMT'] + fastly-ratelimit-remaining: ['955'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] - x-timer: ['S1507631708.584062,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016804.945614,VS0,VE145'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -188,87 +188,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/response_object + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:08Z","updated_at":"2017-10-10T10:35:08Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:24Z","updated_at":"2018-04-06T12:13:24Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:08 GMT'] - fastly-ratelimit-remaining: ['872'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:24 GMT'] + fastly-ratelimit-remaining: ['954'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631708.208283,VS0,VE161'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523016804.157311,VS0,VE431'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/settings + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:08 GMT'] - fastly-ratelimit-remaining: ['871'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:24 GMT'] + fastly-ratelimit-remaining: ['953'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] - x-timer: ['S1507631708.471192,VS0,VE435'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016805.653062,VS0,VE172'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/2/activate + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:08Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:24Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:10 GMT'] - fastly-ratelimit-remaining: ['870'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:25 GMT'] + fastly-ratelimit-remaining: ['952'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] - x-timer: ['S1507631709.081330,VS0,VE1031'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523016805.888033,VS0,VE930'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:10Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -278,13 +278,13 @@ interactions: connection: [keep-alive] content-length: ['3873'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:10 GMT'] + date: ['Fri, 06 Apr 2018 12:13:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4422-AMS'] - x-timer: ['S1507631710.248587,VS0,VE225'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016806.889468,VS0,VE146'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_backend_weight_even b/tests/fixtures/cassettes/test_fastly_backend_weight_even index 1ec546a..a59fd51 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_weight_even +++ b/tests/fixtures/cassettes/test_fastly_backend_weight_even @@ -6,32 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['602'] + content-length: ['692'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:11 GMT'] + date: ['Fri, 06 Apr 2018 12:13:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631711.847150,VS0,VE458'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523016806.161012,VS0,VE179'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:10Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:10Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:02Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -41,64 +42,502 @@ interactions: connection: [keep-alive] content-length: ['3873'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:11 GMT'] + date: ['Fri, 06 Apr 2018 12:13:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] - x-timer: ['S1507631711.471447,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016806.403735,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:26 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523016807.620878,VS0,VE127'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:27 GMT'] + fastly-ratelimit-remaining: ['951'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523016807.811545,VS0,VE202'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/domain + response: + body: {string: !!python/unicode '[{"version":3,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:23Z","comment":"","updated_at":"2018-04-06T12:13:23Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['185'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19145-FRA'] + x-timer: ['S1523016807.077671,VS0,VE412'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19133-FRA'] + x-timer: ['S1523016808.554870,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:28 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523016808.741452,VS0,VE408'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:23Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:23Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:28 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523016808.292838,VS0,VE162'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:28 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523016809.519123,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:29 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016809.696972,VS0,VE446'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:29 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016809.230666,VS0,VE405'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/header + response: + body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:24Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:24Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['414'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:30 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523016810.860976,VS0,VE391'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:30 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016810.316654,VS0,VE388'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:13:24Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:24Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19134-FRA'] + x-timer: ['S1523016811.768266,VS0,VE388'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19135-FRA'] + x-timer: ['S1523016811.220979,VS0,VE166'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19141-FRA'] + x-timer: ['S1523016811.454920,VS0,VE117'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19139-FRA'] + x-timer: ['S1523016812.636970,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:32 GMT'] + fastly-ratelimit-remaining: ['950'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523016812.824711,VS0,VE442'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:32 GMT'] + fastly-ratelimit-remaining: ['949'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523016812.368857,VS0,VE160'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:32 GMT'] + fastly-ratelimit-remaining: ['948'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016813.590519,VS0,VE159'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/response_object/Set%20302%20status%20code response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":3}'} + body: {string: !!python/unicode '{"status":"ok"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:11 GMT'] - fastly-ratelimit-remaining: ['869'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:32 GMT'] + fastly-ratelimit-remaining: ['947'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631712.722541,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523016813.812924,VS0,VE158'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/domain + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":3,"deleted_at":null,"created_at":"2017-10-10T10:35:12Z","updated_at":"2017-10-10T10:35:12Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":3,"deleted_at":null,"created_at":"2018-04-06T12:13:33Z","updated_at":"2018-04-06T12:13:33Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['183'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:12 GMT'] - fastly-ratelimit-remaining: ['868'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:33 GMT'] + fastly-ratelimit-remaining: ['946'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] - x-timer: ['S1507631712.007058,VS0,VE530'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016813.035884,VS0,VE458'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -109,25 +548,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend1.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend1.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","client_cert":null,"updated_at":"2017-10-10T10:35:13Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:13Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend1.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend1.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","client_cert":null,"updated_at":"2018-04-06T12:13:33Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:33Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['757'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:13 GMT'] - fastly-ratelimit-remaining: ['867'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:34 GMT'] + fastly-ratelimit-remaining: ['945'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4445-AMS'] - x-timer: ['S1507631713.678652,VS0,VE530'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523016814.560233,VS0,VE446'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -138,88 +577,90 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend2.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend2.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","client_cert":null,"updated_at":"2017-10-10T10:35:13Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:13Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend2.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend2.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","client_cert":null,"updated_at":"2018-04-06T12:13:34Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:34Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['757'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:13 GMT'] - fastly-ratelimit-remaining: ['866'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:34 GMT'] + fastly-ratelimit-remaining: ['944'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] - x-timer: ['S1507631713.354614,VS0,VE507'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523016814.246165,VS0,VE193'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/settings + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:14 GMT'] - fastly-ratelimit-remaining: ['865'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:35 GMT'] + fastly-ratelimit-remaining: ['943'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] - x-timer: ['S1507631714.038281,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523016815.505703,VS0,VE662'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/3/activate + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:13Z","deployed":false,"msg":"Warning: - Backend host `\"my-backend1.example.net\"` could not be resolved to an IP - address: Name or service not known\nWarning: Backend host `\"my-backend2.example.net\"` - could not be resolved to an IP address: Name or service not known\nWarning: - Unused backend `F_my_backend2_example_net`"}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:34Z","deployed":false,"msg":"Warning: + Backend host `my-backend1.example.net` could not be resolved to an IP address: + Name or service not known\nat: (input Line 12 Pos 6)\n .host = \"my-backend1.example.net\";\n-----####-----------------------------\nWarning: + Backend host `my-backend2.example.net` could not be resolved to an IP address: + Name or service not known\nat: (input Line 32 Pos 6)\n .host = \"my-backend2.example.net\";\n-----####-----------------------------\nWarning: + Unused backend `F_my_backend2_example_net`\nat: (input Line 28 Pos 9)\nbackend + F_my_backend2_example_net {\n--------#########################--"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['528'] + content-length: ['839'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:15 GMT'] - fastly-ratelimit-remaining: ['864'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:36 GMT'] + fastly-ratelimit-remaining: ['942'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4428-AMS'] - x-timer: ['S1507631714.343348,VS0,VE1239'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523016815.232883,VS0,VE1106'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -227,13 +668,13 @@ interactions: connection: [keep-alive] content-length: ['4611'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:15 GMT'] + date: ['Fri, 06 Apr 2018 12:13:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] - x-timer: ['S1507631716.710819,VS0,VE193'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523016817.544435,VS0,VE472'] 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 c5b2746..b87c9d3 100644 --- a/tests/fixtures/cassettes/test_fastly_domain_comment_not_required +++ b/tests/fixtures/cassettes/test_fastly_domain_comment_not_required @@ -6,31 +6,31 @@ 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":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['834'] + content-length: ['924'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:16 GMT'] + date: ['Fri, 06 Apr 2018 12:13:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4129-AMS'] - x-timer: ['S1507631716.326453,VS0,VE438'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523016817.329450,VS0,VE516'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -38,64 +38,475 @@ interactions: connection: [keep-alive] content-length: ['4611'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:16 GMT'] + date: ['Fri, 06 Apr 2018 12:13:38 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] - x-timer: ['S1507631717.862903,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523016818.909104,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:38 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016818.088393,VS0,VE378'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:39 GMT'] + fastly-ratelimit-remaining: ['941'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523016819.630216,VS0,VE470'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/domain + response: + body: {string: !!python/unicode '[{"version":4,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:33Z","comment":"","updated_at":"2018-04-06T12:13:33Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['185'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19123-FRA'] + x-timer: ['S1523016819.160377,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19142-FRA'] + x-timer: ['S1523016820.627551,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19130-FRA'] + x-timer: ['S1523016820.806668,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":50,"address":"my-backend1.example.net","updated_at":"2018-04-06T12:13:33Z","connect_timeout":1000,"ipv4":null,"ssl_ciphers":null,"name":"my-backend1.example.net","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:33Z","comment":""},{"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":50,"address":"my-backend2.example.net","updated_at":"2018-04-06T12:13:34Z","connect_timeout":1000,"ipv4":null,"ssl_ciphers":null,"name":"my-backend2.example.net","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:34Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['1517'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19149-FRA'] + x-timer: ['S1523016820.992365,VS0,VE395'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19126-FRA'] + x-timer: ['S1523016821.511190,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19150-FRA'] + x-timer: ['S1523016821.955894,VS0,VE407'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19128-FRA'] + x-timer: ['S1523016821.428056,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19125-FRA'] + x-timer: ['S1523016822.610660,VS0,VE405'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19137-FRA'] + x-timer: ['S1523016822.103271,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19150-FRA'] + x-timer: ['S1523016822.306293,VS0,VE114'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19145-FRA'] + x-timer: ['S1523016822.483613,VS0,VE378'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:43 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016823.927034,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:43 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523016823.111383,VS0,VE400'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:44 GMT'] + fastly-ratelimit-remaining: ['940'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016824.616622,VS0,VE442'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend/my-backend1.example.net + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:44 GMT'] + fastly-ratelimit-remaining: ['939'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016824.169211,VS0,VE157'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend/my-backend2.example.net response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":4}'} + body: {string: !!python/unicode '{"status":"ok"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:17 GMT'] - fastly-ratelimit-remaining: ['863'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:44 GMT'] + fastly-ratelimit-remaining: ['938'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4144-AMS'] - x-timer: ['S1507631717.119894,VS0,VE466'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016824.390782,VS0,VE433'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/domain + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":4,"deleted_at":null,"created_at":"2017-10-10T10:35:18Z","updated_at":"2017-10-10T10:35:18Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":4,"deleted_at":null,"created_at":"2018-04-06T12:13:45Z","updated_at":"2018-04-06T12:13:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['183'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:18 GMT'] - fastly-ratelimit-remaining: ['862'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:45 GMT'] + fastly-ratelimit-remaining: ['937'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631718.708501,VS0,VE517'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016825.888202,VS0,VE191'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -106,25 +517,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:18Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:18Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:45Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:45Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:18 GMT'] - fastly-ratelimit-remaining: ['861'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:45 GMT'] + fastly-ratelimit-remaining: ['936'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] - x-timer: ['S1507631718.324331,VS0,VE449'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523016825.143074,VS0,VE447'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -134,26 +545,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/header + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"4","updated_at":"2017-10-10T10:35:19Z","deleted_at":null,"created_at":"2017-10-10T10:35:19Z"}'} + 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":"712MupNjgxT6OzQImAlLw8","version":"4","updated_at":"2018-04-06T12:13:45Z","deleted_at":null,"created_at":"2018-04-06T12:13:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:19 GMT'] - fastly-ratelimit-remaining: ['860'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:45 GMT'] + fastly-ratelimit-remaining: ['935'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4133-AMS'] - x-timer: ['S1507631719.899975,VS0,VE506'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016826.690413,VS0,VE144'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -161,87 +572,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/response_object + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"4","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:20Z","updated_at":"2017-10-10T10:35:20Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"4","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:45Z","updated_at":"2018-04-06T12:13:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:20 GMT'] - fastly-ratelimit-remaining: ['859'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:46 GMT'] + fastly-ratelimit-remaining: ['934'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631720.559581,VS0,VE562'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016826.899686,VS0,VE141'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/settings + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:20 GMT'] - fastly-ratelimit-remaining: ['858'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:46 GMT'] + fastly-ratelimit-remaining: ['933'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631720.244048,VS0,VE509'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523016826.106107,VS0,VE174'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/4/activate + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:20Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:45Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:22 GMT'] - fastly-ratelimit-remaining: ['857'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:46 GMT'] + fastly-ratelimit-remaining: ['932'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4123-AMS'] - x-timer: ['S1507631721.861061,VS0,VE1181'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016826.345406,VS0,VE604'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -251,13 +662,13 @@ interactions: connection: [keep-alive] content-length: ['4337'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:22 GMT'] + date: ['Fri, 06 Apr 2018 12:13:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4425-AMS'] - x-timer: ['S1507631723.536041,VS0,VE154'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016827.197225,VS0,VE143'] 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 4ff2496..a5ee2a0 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":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1066'] + content-length: ['1156'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:23 GMT'] + date: ['Fri, 06 Apr 2018 12:13:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4148-AMS'] - x-timer: ['S1507631723.358637,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523016827.479360,VS0,VE398'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:21Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -42,64 +41,502 @@ interactions: connection: [keep-alive] content-length: ['4337'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:23 GMT'] + date: ['Fri, 06 Apr 2018 12:13: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-ams4140-AMS'] - x-timer: ['S1507631724.614181,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016828.941979,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19120-FRA'] + x-timer: ['S1523016828.122111,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:48 GMT'] + fastly-ratelimit-remaining: ['931'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016828.311747,VS0,VE203'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/domain + response: + body: {string: !!python/unicode '[{"version":5,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:45Z","comment":"","updated_at":"2018-04-06T12:13:45Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['185'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19128-FRA'] + x-timer: ['S1523016829.576075,VS0,VE397'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19150-FRA'] + x-timer: ['S1523016829.076661,VS0,VE409'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19137-FRA'] + x-timer: ['S1523016830.550146,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:45Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":5,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:45Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:50 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523016830.735811,VS0,VE411'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:50 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523016830.217015,VS0,VE378'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523016831.855011,VS0,VE390'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523016831.482519,VS0,VE111'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/header + response: + body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:45Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"5","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:45Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['414'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523016832.656372,VS0,VE127'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016832.847710,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"5","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:13:45Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:45Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19142-FRA'] + x-timer: ['S1523016832.031873,VS0,VE116'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19123-FRA'] + x-timer: ['S1523016832.212975,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19133-FRA'] + x-timer: ['S1523016832.397846,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13: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-fra19151-FRA'] + x-timer: ['S1523016833.842574,VS0,VE420'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:53 GMT'] + fastly-ratelimit-remaining: ['930'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523016833.371267,VS0,VE157'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:54 GMT'] + fastly-ratelimit-remaining: ['929'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523016834.611000,VS0,VE452'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:13:54 GMT'] + fastly-ratelimit-remaining: ['928'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523016834.195463,VS0,VE155'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/response_object/Set%20302%20status%20code response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":5}'} + body: {string: !!python/unicode '{"status":"ok"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:24 GMT'] - fastly-ratelimit-remaining: ['856'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:54 GMT'] + fastly-ratelimit-remaining: ['927'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] - x-timer: ['S1507631724.848658,VS0,VE422'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523016834.415702,VS0,VE427'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/domain + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":5,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","updated_at":"2017-10-10T10:35:24Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":5,"deleted_at":null,"created_at":"2018-04-06T12:13:55Z","updated_at":"2018-04-06T12:13:55Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['183'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:24 GMT'] - fastly-ratelimit-remaining: ['855'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:55 GMT'] + fastly-ratelimit-remaining: ['926'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4124-AMS'] - x-timer: ['S1507631724.388231,VS0,VE522'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523016835.910572,VS0,VE248'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -110,25 +547,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":5,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:25Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:25Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":5,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:55Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:55Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:25 GMT'] - fastly-ratelimit-remaining: ['854'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:55 GMT'] + fastly-ratelimit-remaining: ['925'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] - x-timer: ['S1507631725.034142,VS0,VE464'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016835.223669,VS0,VE435'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -138,26 +575,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/header + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"5EM5Gtj0aWVLOVk3xshHJM","version":"5","updated_at":"2017-10-10T10:35:25Z","deleted_at":null,"created_at":"2017-10-10T10:35:25Z"}'} + 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":"712MupNjgxT6OzQImAlLw8","version":"5","updated_at":"2018-04-06T12:13:56Z","deleted_at":null,"created_at":"2018-04-06T12:13:56Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:26 GMT'] - fastly-ratelimit-remaining: ['853'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:56 GMT'] + fastly-ratelimit-remaining: ['924'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] - x-timer: ['S1507631726.602155,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016836.867771,VS0,VE440'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -165,87 +602,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/response_object + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"5","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:26Z","updated_at":"2017-10-10T10:35:26Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"5","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:56Z","updated_at":"2018-04-06T12:13:56Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:26 GMT'] - fastly-ratelimit-remaining: ['852'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:56 GMT'] + fastly-ratelimit-remaining: ['923'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] - x-timer: ['S1507631726.141682,VS0,VE446'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016836.493885,VS0,VE411'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/settings + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:27 GMT'] - fastly-ratelimit-remaining: ['851'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:57 GMT'] + fastly-ratelimit-remaining: ['922'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4151-AMS'] - x-timer: ['S1507631727.699314,VS0,VE448'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523016837.119165,VS0,VE513'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/5/activate + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:26Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:56Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:28 GMT'] - fastly-ratelimit-remaining: ['850'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:13:58 GMT'] + fastly-ratelimit-remaining: ['921'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4439-AMS'] - x-timer: ['S1507631727.244601,VS0,VE986'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016838.699109,VS0,VE1142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -254,13 +691,13 @@ interactions: connection: [keep-alive] content-length: ['4571'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:28 GMT'] + date: ['Fri, 06 Apr 2018 12:13:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] - x-timer: ['S1507631728.361799,VS0,VE465'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016839.906117,VS0,VE151'] 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 88dc0a0..93b18ab 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,61 +6,59 @@ 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":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1298'] + content-length: ['1388'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:29 GMT'] + date: ['Fri, 06 Apr 2018 12:13:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4149-AMS'] - x-timer: ['S1507631729.987285,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016839.178214,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4571'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:29 GMT'] + date: ['Fri, 06 Apr 2018 12:13:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] - x-timer: ['S1507631729.232353,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016839.391866,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -70,13 +68,13 @@ interactions: connection: [keep-alive] content-length: ['4571'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:29 GMT'] + date: ['Fri, 06 Apr 2018 12:13:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] - x-timer: ['S1507631729.441718,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016840.568381,VS0,VE408'] 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 12c0bb1..e31da2f 100644 --- a/tests/fixtures/cassettes/test_fastly_header_priority_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_priority_not_required @@ -6,32 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1298'] + content-length: ['1388'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:30 GMT'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4136-AMS'] - x-timer: ['S1507631730.695199,VS0,VE450'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523016840.083729,VS0,VE145'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -41,25 +42,25 @@ interactions: connection: [keep-alive] content-length: ['4571'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:30 GMT'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4126-AMS'] - x-timer: ['S1507631730.221864,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523016840.292884,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -69,13 +70,13 @@ interactions: connection: [keep-alive] content-length: ['4571'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:30 GMT'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4139-AMS'] - x-timer: ['S1507631730.442569,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523016840.477484,VS0,VE115'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_service_does_exist b/tests/fixtures/cassettes/test_service_does_exist index fe317f5..f50ad72 100644 --- a/tests/fixtures/cassettes/test_service_does_exist +++ b/tests/fixtures/cassettes/test_service_does_exist @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1298'] + content-length: ['1388'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:30 GMT'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4436-AMS'] - x-timer: ['S1507631731.707621,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523016841.749766,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:28Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:24Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -41,329 +41,1202 @@ interactions: connection: [keep-alive] content-length: ['4571'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:31 GMT'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4449-AMS'] - x-timer: ['S1507631731.925514,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016841.949121,VS0,VE107'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":6}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['230'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:31 GMT'] - fastly-ratelimit-remaining: ['849'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4144-AMS'] - x-timer: ['S1507631731.420475,VS0,VE486'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016841.119350,VS0,VE124'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/domain + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/clone response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":6,"deleted_at":null,"created_at":"2017-10-10T10:35:32Z","updated_at":"2017-10-10T10:35:32Z"}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['232'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:32 GMT'] - fastly-ratelimit-remaining: ['848'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:01 GMT'] + fastly-ratelimit-remaining: ['920'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] - x-timer: ['S1507631732.995401,VS0,VE495'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016841.308108,VS0,VE440'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, - "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": - "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": - null, "shield": null}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/backend + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/domain response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":6,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:32Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:32Z","comment":""}'} + body: {string: !!python/unicode '[{"version":6,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:55Z","comment":"","updated_at":"2018-04-06T12:13:55Z"}]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['185'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:33 GMT'] - fastly-ratelimit-remaining: ['847'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] - x-timer: ['S1507631733.585987,VS0,VE427'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016842.924031,VS0,VE386'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": - null, "name": "Set Location header", "src": "\"https://u.jimcdn.com\" req.url.path", - "dst": "http.Location", "substitution": "", "priority": "10", "cache_condition": - null, "action": "set", "type": "response", "response_condition": null}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/header + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/healthcheck response: - body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"6","updated_at":"2017-10-10T10:35:33Z","deleted_at":null,"created_at":"2017-10-10T10:35:33Z"}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['412'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:33 GMT'] - fastly-ratelimit-remaining: ['846'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4120-AMS'] - x-timer: ['S1507631733.157780,VS0,VE449'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016842.377083,VS0,VE407'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "content": "", "content_type": "", "response": "Ok"}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/response_object + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/condition response: - body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"6","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:34Z","updated_at":"2017-10-10T10:35:34Z"}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:34 GMT'] - fastly-ratelimit-remaining: ['845'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4134-AMS'] - x-timer: ['S1507631734.701300,VS0,VE454'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523016843.848889,VS0,VE120'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"general.default_ttl": 3600}' + body: null headers: Content-Type: [application/json] - method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/settings + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/backend response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:55Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":6,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:55Z","comment":""}]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['718'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:34 GMT'] - fastly-ratelimit-remaining: ['844'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4445-AMS'] - x-timer: ['S1507631734.248092,VS0,VE462'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016843.033059,VS0,VE127'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/6/activate + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/director response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:34Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:36 GMT'] - fastly-ratelimit-remaining: ['843'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4437-AMS'] - x-timer: ['S1507631735.808321,VS0,VE1355'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523016843.223060,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/cache_settings response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4811'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:36 GMT'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4146-AMS'] - x-timer: ['S1507631736.239507,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016843.404840,VS0,VE410'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/gzip response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1530'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:36 GMT'] + date: ['Fri, 06 Apr 2018 12:14:04 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4438-AMS'] - x-timer: ['S1507631737.529767,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016844.012736,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/header response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '[{"priority":"100","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:56Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"6","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:56Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4811'] + content-length: ['415'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:04 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523016844.194718,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19145-FRA'] + x-timer: ['S1523016845.744502,VS0,VE388'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"6","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:13:56Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:56Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19122-FRA'] + x-timer: ['S1523016845.293197,VS0,VE505'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19140-FRA'] + x-timer: ['S1523016846.893056,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19127-FRA'] + x-timer: ['S1523016846.418108,VS0,VE386'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:07 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523016847.867521,VS0,VE372'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:07 GMT'] + fastly-ratelimit-remaining: ['919'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523016847.306704,VS0,VE160'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:07 GMT'] + fastly-ratelimit-remaining: ['918'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016848.531191,VS0,VE438'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/header/Set%20Location%20header + 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, 10 Oct 2017 10:35:36 GMT'] + date: ['Fri, 06 Apr 2018 12:14:08 GMT'] + fastly-ratelimit-remaining: ['917'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4442-AMS'] - x-timer: ['S1507631737.745627,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016848.035833,VS0,VE422'] status: {code: 200, message: OK} - request: body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/response_object/Set%20302%20status%20code + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:08 GMT'] + fastly-ratelimit-remaining: ['916'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523016849.607881,VS0,VE159'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/domain + response: + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":6,"deleted_at":null,"created_at":"2018-04-06T12:14:09Z","updated_at":"2018-04-06T12:14:09Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['188'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:09 GMT'] + fastly-ratelimit-remaining: ['915'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016849.832484,VS0,VE487'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/backend + response: + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":6,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:14:09Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:14:09Z","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['716'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:09 GMT'] + fastly-ratelimit-remaining: ['914'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016849.449520,VS0,VE432'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": + null, "name": "Set Location header", "src": "\"https://u.jimcdn.com\" req.url.path", + "dst": "http.Location", "substitution": "", "priority": "10", "cache_condition": + null, "action": "set", "type": "response", "response_condition": null}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"712MupNjgxT6OzQImAlLw8","version":"6","updated_at":"2018-04-06T12:14:10Z","deleted_at":null,"created_at":"2018-04-06T12:14:10Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['412'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:10 GMT'] + fastly-ratelimit-remaining: ['913'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016850.971965,VS0,VE144'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set + 302 status code", "content": "", "content_type": "", "response": "Ok"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/response_object + response: + body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set + 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"6","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:14:10Z","updated_at":"2018-04-06T12:14:10Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['278'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:10 GMT'] + fastly-ratelimit-remaining: ['912'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523016850.182732,VS0,VE452'] + 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/712MupNjgxT6OzQImAlLw8/version/6/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:10 GMT'] + fastly-ratelimit-remaining: ['911'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016851.703096,VS0,VE169'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/activate + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:10Z","deployed":false,"msg":null}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['241'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:11 GMT'] + fastly-ratelimit-remaining: ['910'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016851.940558,VS0,VE863'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['4811'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19128-FRA'] + x-timer: ['S1523016852.949843,VS0,VE139'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test + response: + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['1620'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19135-FRA'] + x-timer: ['S1523016852.155312,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['4811'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19128-FRA'] + x-timer: ['S1523016853.676905,VS0,VE109'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19130-FRA'] + x-timer: ['S1523016853.850272,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:13 GMT'] + fastly-ratelimit-remaining: ['909'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016853.035246,VS0,VE484'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/domain + response: + body: {string: !!python/unicode '[{"version":7,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:09Z","comment":"test1","updated_at":"2018-04-06T12:14:09Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['190'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19138-FRA'] + x-timer: ['S1523016854.624864,VS0,VE123'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19142-FRA'] + x-timer: ['S1523016854.819769,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523016854.001184,VS0,VE123'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:09Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":7,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:09Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523016854.190335,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523016854.378003,VS0,VE123'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523016855.567538,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:15 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523016855.085989,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/header + response: + body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:10Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"7","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:10Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['414'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:15 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016855.281056,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:16 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523016856.805918,VS0,VE386'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"7","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:10Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:10Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:16 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523016856.448778,VS0,VE125'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19136-FRA'] + x-timer: ['S1523016857.641078,VS0,VE1847'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19145-FRA'] + x-timer: ['S1523016859.558331,VS0,VE408'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14: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-fra19132-FRA'] + x-timer: ['S1523016873.773536,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:33 GMT'] + fastly-ratelimit-remaining: ['908'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523016873.251930,VS0,VE447'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:35 GMT'] + fastly-ratelimit-remaining: ['907'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016875.756491,VS0,VE534'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:14:39 GMT'] + fastly-ratelimit-remaining: ['906'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523016879.218299,VS0,VE444'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/response_object/Set%20302%20status%20code response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":7}'} + body: {string: !!python/unicode '{"status":"ok"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:37 GMT'] - fastly-ratelimit-remaining: ['842'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:40 GMT'] + fastly-ratelimit-remaining: ['905'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] - x-timer: ['S1507631737.957563,VS0,VE445'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523016880.791121,VS0,VE454'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/domain + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":7,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","updated_at":"2017-10-10T10:35:37Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":7,"deleted_at":null,"created_at":"2018-04-06T12:14:41Z","updated_at":"2018-04-06T12:14:41Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['188'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:37 GMT'] - fastly-ratelimit-remaining: ['841'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:41 GMT'] + fastly-ratelimit-remaining: ['904'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4436-AMS'] - x-timer: ['S1507631738.503128,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523016881.639459,VS0,VE480'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -374,25 +1247,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":7,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:38Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:38Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":7,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:14:41Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:38 GMT'] - fastly-ratelimit-remaining: ['840'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:41 GMT'] + fastly-ratelimit-remaining: ['903'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4135-AMS'] - x-timer: ['S1507631738.086316,VS0,VE465'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523016881.258356,VS0,VE422'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -402,26 +1275,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/header + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"5EM5Gtj0aWVLOVk3xshHJM","version":"7","updated_at":"2017-10-10T10:35:39Z","deleted_at":null,"created_at":"2017-10-10T10:35:39Z"}'} + 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":"712MupNjgxT6OzQImAlLw8","version":"7","updated_at":"2018-04-06T12:14:42Z","deleted_at":null,"created_at":"2018-04-06T12:14:42Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:39 GMT'] - fastly-ratelimit-remaining: ['839'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:42 GMT'] + fastly-ratelimit-remaining: ['902'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631739.642104,VS0,VE497'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523016882.067807,VS0,VE429'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -429,87 +1302,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/response_object + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"7","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:39Z","updated_at":"2017-10-10T10:35:39Z"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"7","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:14:43Z","updated_at":"2018-04-06T12:14:43Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:39 GMT'] - fastly-ratelimit-remaining: ['838'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:43 GMT'] + fastly-ratelimit-remaining: ['901'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4427-AMS'] - x-timer: ['S1507631739.254493,VS0,VE485'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523016883.125218,VS0,VE433'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/settings + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:40 GMT'] - fastly-ratelimit-remaining: ['837'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:44 GMT'] + fastly-ratelimit-remaining: ['900'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4122-AMS'] - x-timer: ['S1507631740.841337,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523016884.220920,VS0,VE432'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/7/activate + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:39Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:43Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:41 GMT'] - fastly-ratelimit-remaining: ['836'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:14:45 GMT'] + fastly-ratelimit-remaining: ['899'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4424-AMS'] - x-timer: ['S1507631740.135988,VS0,VE1086'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523016885.780368,VS0,VE857'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -519,13 +1392,13 @@ interactions: connection: [keep-alive] content-length: ['5043'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:41 GMT'] + date: ['Fri, 06 Apr 2018 12:14: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-ams4429-AMS'] - x-timer: ['S1507631741.325283,VS0,VE159'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523016886.103972,VS0,VE415'] 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 2188990..b3d29ba 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,339 +6,1216 @@ 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":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1762'] + content-length: ['1852'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:42 GMT'] + date: ['Fri, 06 Apr 2018 12:16: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-ams4126-AMS'] - x-timer: ['S1507631742.097608,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523017015.406909,VS0,VE402'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['5043'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:16:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523017016.996895,VS0,VE410'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:16:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017017.572998,VS0,VE383'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:16:57 GMT'] + fastly-ratelimit-remaining: ['898'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017017.078438,VS0,VE477'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/domain + response: + body: {string: !!python/unicode '[{"version":8,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:41Z","comment":"test1","updated_at":"2018-04-06T12:14:41Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['190'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:16:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017018.672101,VS0,VE388'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:16:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017018.177775,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:16:59 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523017019.676123,VS0,VE410'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:41Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":8,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:16:59 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017019.202150,VS0,VE399'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19126-FRA'] + x-timer: ['S1523017020.720223,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19142-FRA'] + x-timer: ['S1523017020.221497,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19134-FRA'] + x-timer: ['S1523017021.789543,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/header + response: + body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:42Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"8","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:42Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['414'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19141-FRA'] + x-timer: ['S1523017021.318779,VS0,VE169'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19139-FRA'] + x-timer: ['S1523017022.621297,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"8","status":"301","name":"Set + 301 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:43Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:43Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:02 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017022.855196,VS0,VE388'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:02 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017022.405907,VS0,VE386'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19145-FRA'] + x-timer: ['S1523017023.909755,VS0,VE384'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19132-FRA'] + x-timer: ['S1523017023.412287,VS0,VE451'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:04 GMT'] + fastly-ratelimit-remaining: ['897'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017024.174619,VS0,VE455'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:05 GMT'] + fastly-ratelimit-remaining: ['896'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017025.779994,VS0,VE432'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:05 GMT'] + fastly-ratelimit-remaining: ['895'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017025.330874,VS0,VE418'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/response_object/Set%20301%20status%20code + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:06 GMT'] + fastly-ratelimit-remaining: ['894'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523017026.853354,VS0,VE451'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/domain + response: + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":8,"deleted_at":null,"created_at":"2018-04-06T12:17:06Z","updated_at":"2018-04-06T12:17:06Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['188'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:06 GMT'] + fastly-ratelimit-remaining: ['893'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523017026.368523,VS0,VE482'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": + "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, + "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": + "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": + null, "shield": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/backend + response: + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":8,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:17:07Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:17:07Z","comment":""}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['716'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:07 GMT'] + fastly-ratelimit-remaining: ['892'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017027.045545,VS0,VE254'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": + null, "name": "Set Location header", "src": "\"https://u.jimcdn.com\" req.url.path", + "dst": "http.Location", "substitution": "", "priority": "10", "cache_condition": + null, "action": "set", "type": "response", "response_condition": null}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"712MupNjgxT6OzQImAlLw8","version":"8","updated_at":"2018-04-06T12:17:07Z","deleted_at":null,"created_at":"2018-04-06T12:17:07Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['412'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:07 GMT'] + fastly-ratelimit-remaining: ['891'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017027.363729,VS0,VE443'] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set + 302 status code", "content": "", "content_type": "", "response": "Ok"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/response_object + response: + body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set + 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"8","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:17:08Z","updated_at":"2018-04-06T12:17:08Z"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['278'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:08 GMT'] + fastly-ratelimit-remaining: ['890'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017028.879094,VS0,VE433'] + 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/712MupNjgxT6OzQImAlLw8/version/8/settings + response: + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['128'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:08 GMT'] + fastly-ratelimit-remaining: ['889'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017028.379974,VS0,VE433'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":8,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:16:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + headers: + accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5043'] + content-length: ['5278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:42 GMT'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4421-AMS'] - x-timer: ['S1507631742.325599,VS0,VE106'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017029.920642,VS0,VE447'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + method: GET + uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":8}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['2085'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:42 GMT'] - fastly-ratelimit-remaining: ['835'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4438-AMS'] - x-timer: ['S1507631743.519767,VS0,VE444'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017029.433001,VS0,VE418'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/domain + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":8,"deleted_at":null,"created_at":"2017-10-10T10:35:43Z","updated_at":"2017-10-10T10:35:43Z"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":8,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:16:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['5278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:43 GMT'] - fastly-ratelimit-remaining: ['834'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4129-AMS'] - x-timer: ['S1507631743.071026,VS0,VE494'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017030.963329,VS0,VE113'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": - "localhost", "weight": 100, "healthcheck": null, "first_byte_timeout": 15000, - "connect_timeout": 1000, "error_threshold": 0, "ssl_cert_hostname": null, "address": - "127.0.0.1", "between_bytes_timeout": 10000, "max_conn": 200, "port": 80, "ssl_hostname": - null, "shield": null}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/backend + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":8,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:44Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:44Z","comment":""}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['230'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:44 GMT'] - fastly-ratelimit-remaining: ['833'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4151-AMS'] - x-timer: ['S1507631744.685932,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017030.139503,VS0,VE382'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": - null, "name": "Set Location header", "src": "\"https://u.jimcdn.com\" req.url.path", - "dst": "http.Location", "substitution": "", "priority": "10", "cache_condition": - null, "action": "set", "type": "response", "response_condition": null}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/header + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/clone response: - body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"8","updated_at":"2017-10-10T10:35:44Z","deleted_at":null,"created_at":"2017-10-10T10:35:44Z"}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['412'] + content-length: ['232'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:44 GMT'] - fastly-ratelimit-remaining: ['832'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:10 GMT'] + fastly-ratelimit-remaining: ['888'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4433-AMS'] - x-timer: ['S1507631744.262179,VS0,VE447'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017031.589401,VS0,VE197'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set - 302 status code", "content": "", "content_type": "", "response": "Ok"}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/response_object + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/domain response: - body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"8","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:45Z","updated_at":"2017-10-10T10:35:45Z"}'} + body: {string: !!python/unicode '[{"version":9,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:41Z","comment":"test1","updated_at":"2018-04-06T12:14:41Z"}]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['190'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:45 GMT'] - fastly-ratelimit-remaining: ['831'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4434-AMS'] - x-timer: ['S1507631745.786065,VS0,VE446'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017031.852873,VS0,VE118'] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"general.default_ttl": 3600}' + body: null headers: Content-Type: [application/json] - method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/8/settings + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/healthcheck response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:45 GMT'] - fastly-ratelimit-remaining: ['830'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:11 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631745.315966,VS0,VE472'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017031.036947,VS0,VE413'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/condition response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":8,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:45Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5278'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:46 GMT'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4426-AMS'] - x-timer: ['S1507631746.889247,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017032.154686,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/backend response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:41Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":9,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1995'] + content-length: ['718'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:46 GMT'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4421-AMS'] - x-timer: ['S1507631746.142462,VS0,VE137'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017032.472363,VS0,VE125'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/director response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":8,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:45Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5278'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:46 GMT'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4120-AMS'] - x-timer: ['S1507631746.377344,VS0,VE152'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017033.837649,VS0,VE410'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19121-FRA'] + x-timer: ['S1523017034.520149,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017034.978590,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/header + response: + body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:42Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"9","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:42Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['414'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017034.343154,VS0,VE392'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:15 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017035.167863,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"9","status":"301","name":"Set + 301 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:43Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:43Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:16 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017036.897034,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:16 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017036.113944,VS0,VE402'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:16 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017037.755285,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19122-FRA'] + x-timer: ['S1523017037.119130,VS0,VE381'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:17 GMT'] + fastly-ratelimit-remaining: ['887'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017038.694508,VS0,VE170'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:18 GMT'] + fastly-ratelimit-remaining: ['886'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017038.057843,VS0,VE455'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17:19 GMT'] + fastly-ratelimit-remaining: ['885'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017039.745739,VS0,VE438'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/response_object/Set%20301%20status%20code response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":9}'} + body: {string: !!python/unicode '{"status":"ok"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:47 GMT'] - fastly-ratelimit-remaining: ['829'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:19 GMT'] + fastly-ratelimit-remaining: ['884'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4448-AMS'] - x-timer: ['S1507631747.610666,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017040.688809,VS0,VE179'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/domain + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":9,"deleted_at":null,"created_at":"2017-10-10T10:35:47Z","updated_at":"2017-10-10T10:35:47Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":9,"deleted_at":null,"created_at":"2018-04-06T12:17:20Z","updated_at":"2018-04-06T12:17:20Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['188'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:47 GMT'] - fastly-ratelimit-remaining: ['828'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:20 GMT'] + fastly-ratelimit-remaining: ['883'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4141-AMS'] - x-timer: ['S1507631747.179266,VS0,VE231'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523017040.938546,VS0,VE205'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -349,25 +1226,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":9,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:47Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:47Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":9,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:17:20Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:17:20Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:47 GMT'] - fastly-ratelimit-remaining: ['827'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:20 GMT'] + fastly-ratelimit-remaining: ['882'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] - x-timer: ['S1507631747.486408,VS0,VE154'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017040.214546,VS0,VE425'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -377,26 +1254,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/header + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"5EM5Gtj0aWVLOVk3xshHJM","version":"9","updated_at":"2017-10-10T10:35:48Z","deleted_at":null,"created_at":"2017-10-10T10:35:48Z"}'} + 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":"712MupNjgxT6OzQImAlLw8","version":"9","updated_at":"2018-04-06T12:17:21Z","deleted_at":null,"created_at":"2018-04-06T12:17:21Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:48 GMT'] - fastly-ratelimit-remaining: ['826'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:21 GMT'] + fastly-ratelimit-remaining: ['881'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4443-AMS'] - x-timer: ['S1507631748.726748,VS0,VE448'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017041.706804,VS0,VE449'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -404,77 +1281,78 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/response_object + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"9","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:48Z","updated_at":"2017-10-10T10:35:48Z"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"9","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:17:21Z","updated_at":"2018-04-06T12:17:21Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:48 GMT'] - fastly-ratelimit-remaining: ['825'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:21 GMT'] + fastly-ratelimit-remaining: ['880'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] - x-timer: ['S1507631748.269210,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017041.245134,VS0,VE147'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/9/settings + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:48 GMT'] - fastly-ratelimit-remaining: ['824'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:17:21 GMT'] + fastly-ratelimit-remaining: ['879'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] - x-timer: ['S1507631749.815864,VS0,VE171'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523017041.458149,VS0,VE448'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":9,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:48Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:47Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":9,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:21Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:17:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5511'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:49 GMT'] + date: ['Fri, 06 Apr 2018 12:17:22 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4421-AMS'] - x-timer: ['S1507631749.064164,VS0,VE172'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017042.081426,VS0,VE475'] 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 2fa25a8..3b8e79e 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,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2228'] + content-length: ['2318'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:49 GMT'] + date: ['Fri, 06 Apr 2018 12:17:22 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] - x-timer: ['S1507631749.368263,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017043.703016,VS0,VE142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":9,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:48Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:47Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":9,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:21Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:17:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:41Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:37Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -41,64 +41,502 @@ interactions: connection: [keep-alive] content-length: ['5511'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:50 GMT'] + date: ['Fri, 06 Apr 2018 12:17: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-ams4120-AMS'] - x-timer: ['S1507631750.609536,VS0,VE451'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017043.909284,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active + response: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['230'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:17: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-fra19142-FRA'] + x-timer: ['S1523017043.091824,VS0,VE383'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":10,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['233'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:06 GMT'] + fastly-ratelimit-remaining: ['878'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017386.197588,VS0,VE512'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/domain + response: + body: {string: !!python/unicode '[{"version":10,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:41Z","comment":"test1","updated_at":"2018-04-06T12:14:41Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['191'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:07 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017387.775064,VS0,VE390'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:07 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017387.229509,VS0,VE125'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:07 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017387.418794,VS0,VE412'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:41Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":10,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['719'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:08 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017388.893391,VS0,VE396'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:08 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017388.354606,VS0,VE379'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19150-FRA'] + x-timer: ['S1523017389.960011,VS0,VE384'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/gzip response: - body: {string: !!python/unicode '{"service_id":"5EM5Gtj0aWVLOVk3xshHJM","number":10}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['51'] + content-length: ['2'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:50 GMT'] - fastly-ratelimit-remaining: ['823'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4429-AMS'] - x-timer: ['S1507631750.153634,VS0,VE405'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017389.409407,VS0,VE388'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/header + response: + body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:42Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"10","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:42Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['415'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19149-FRA'] + x-timer: ['S1523017390.857634,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19121-FRA'] + x-timer: ['S1523017390.304136,VS0,VE401'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"10","status":"301","name":"Set + 301 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:43Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:43Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['281'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:11 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523017391.840327,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/vcl + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:11 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017391.286830,VS0,VE381'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19126-FRA'] + x-timer: ['S1523017392.737441,VS0,VE454'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/syslog + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23: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-fra19120-FRA'] + x-timer: ['S1523017392.302787,VS0,VE436'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/domain/cdn.example8000.com + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:13 GMT'] + fastly-ratelimit-remaining: ['877'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523017393.802776,VS0,VE438'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/backend/localhost + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:13 GMT'] + fastly-ratelimit-remaining: ['876'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017393.345691,VS0,VE472'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/header/Set%20Location%20header + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:14 GMT'] + fastly-ratelimit-remaining: ['875'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017394.971514,VS0,VE437'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/response_object/Set%20301%20status%20code + response: + body: {string: !!python/unicode '{"status":"ok"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['15'] + content-type: [application/json] + date: ['Fri, 06 Apr 2018 12:23:14 GMT'] + fastly-ratelimit-remaining: ['874'] + fastly-ratelimit-reset: ['1523019600'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523017394.474053,VS0,VE428'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/domain + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":10,"deleted_at":null,"created_at":"2017-10-10T10:35:51Z","updated_at":"2017-10-10T10:35:51Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":10,"deleted_at":null,"created_at":"2018-04-06T12:23:15Z","updated_at":"2018-04-06T12:23:15Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['189'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:51 GMT'] - fastly-ratelimit-remaining: ['822'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:15 GMT'] + fastly-ratelimit-remaining: ['873'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4125-AMS'] - x-timer: ['S1507631751.639506,VS0,VE484'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017395.976870,VS0,VE463'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -109,25 +547,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/backend + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":10,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:35:51Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:35:51Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":10,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:15Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:15Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['717'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:51 GMT'] - fastly-ratelimit-remaining: ['821'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:15 GMT'] + fastly-ratelimit-remaining: ['872'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] - x-timer: ['S1507631751.210325,VS0,VE450'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523017396.544664,VS0,VE162'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -137,26 +575,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/header + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"10","updated_at":"2017-10-10T10:35:52Z","deleted_at":null,"created_at":"2017-10-10T10:35:52Z"}'} + 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":"712MupNjgxT6OzQImAlLw8","version":"10","updated_at":"2018-04-06T12:23:16Z","deleted_at":null,"created_at":"2018-04-06T12:23:16Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:52 GMT'] - fastly-ratelimit-remaining: ['820'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:16 GMT'] + fastly-ratelimit-remaining: ['871'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4447-AMS'] - x-timer: ['S1507631752.164170,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017396.782157,VS0,VE412'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -164,103 +602,104 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/response_object + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"5EM5Gtj0aWVLOVk3xshHJM","version":"10","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:35:53Z","updated_at":"2017-10-10T10:35:53Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"10","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:16Z","updated_at":"2018-04-06T12:23:16Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['279'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:53 GMT'] - fastly-ratelimit-remaining: ['819'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:16 GMT'] + fastly-ratelimit-remaining: ['870'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631753.705645,VS0,VE472'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017396.259330,VS0,VE148'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/settings + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":10,"general.default_host":"","general.default_pci":0,"service_id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":10,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['129'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:53 GMT'] - fastly-ratelimit-remaining: ['818'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:16 GMT'] + fastly-ratelimit-remaining: ['869'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] - x-timer: ['S1507631753.266181,VS0,VE469'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017396.470857,VS0,VE463'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/activate + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:53Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:16Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['242'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:54 GMT'] - fastly-ratelimit-remaining: ['817'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:17 GMT'] + fastly-ratelimit-remaining: ['868'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] - x-timer: ['S1507631754.823537,VS0,VE980'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017397.007540,VS0,VE594'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:55 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4425-AMS'] - x-timer: ['S1507631755.884945,VS0,VE497'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017398.673420,VS0,VE144'] status: {code: 200, message: OK} - request: body: null @@ -269,33 +708,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":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2461'] + content-length: ['2551'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:55 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4122-AMS'] - x-timer: ['S1507631755.457091,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523017398.880908,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -305,25 +744,25 @@ interactions: connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:55 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4451-AMS'] - x-timer: ['S1507631756.678175,VS0,VE116'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017398.089948,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -333,13 +772,13 @@ interactions: connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:56 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4450-AMS'] - x-timer: ['S1507631756.887906,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017398.269363,VS0,VE119'] 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 02a5355..f8bff08 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,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":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2461'] + content-length: ['2551'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:56 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4130-AMS'] - x-timer: ['S1507631756.159355,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017399.528455,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -42,41 +42,42 @@ interactions: connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:56 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4440-AMS'] - x-timer: ['S1507631756.494300,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017399.731159,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:56 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4440-AMS'] - x-timer: ['S1507631757.691612,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017399.915843,VS0,VE118'] status: {code: 200, message: OK} - request: body: null @@ -85,76 +86,75 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2461'] + content-length: ['2551'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:57 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4439-AMS'] - x-timer: ['S1507631757.880233,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523017399.101400,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:57 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4122-AMS'] - x-timer: ['S1507631757.096125,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523017399.307253,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:57 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4141-AMS'] - x-timer: ['S1507631757.294958,VS0,VE110'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017399.486600,VS0,VE115'] 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 2852b77..ab669d9 100644 --- a/tests/fixtures/cassettes/test_service_does_not_exist +++ b/tests/fixtures/cassettes/test_service_does_not_exist @@ -6,81 +6,82 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2461'] + content-length: ['2551'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:57 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4441-AMS'] - x-timer: ['S1507631758.555389,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523017400.720068,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/details + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:01Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:01Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:02Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:11Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:21Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:17Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:28Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:24Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:36Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:31Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:41Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:37Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:42Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:45Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:47Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:48Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}],"created_at":"2017-10-10T10:35:01Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:01Z","id":"5EM5Gtj0aWVLOVk3xshHJM","version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"updated_at":"2017-10-10T10:35:54Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:35:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['5744'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:58 GMT'] + date: ['Fri, 06 Apr 2018 12:23:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4450-AMS'] - x-timer: ['S1507631758.777435,VS0,VE485'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523017400.922834,VS0,VE127'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM/version/10/deactivate + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":false,"service_id":"5EM5Gtj0aWVLOVk3xshHJM","staging":false,"created_at":"2017-10-10T10:35:50Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:54Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['232'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:58 GMT'] - fastly-ratelimit-remaining: ['816'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:20 GMT'] + fastly-ratelimit-remaining: ['867'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4145-AMS'] - x-timer: ['S1507631758.349409,VS0,VE542'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017400.116642,VS0,VE491'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/5EM5Gtj0aWVLOVk3xshHJM + uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,16 +90,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:59 GMT'] - fastly-ratelimit-remaining: ['815'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:21 GMT'] + fastly-ratelimit-remaining: ['866'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4449-AMS'] - x-timer: ['S1507631759.977096,VS0,VE424'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523017401.677930,VS0,VE429'] status: {code: 200, message: OK} - request: body: null @@ -108,7 +109,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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Jimdo Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -116,14 +117,14 @@ interactions: connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:59 GMT'] + date: ['Fri, 06 Apr 2018 12:23:21 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-ams4134-AMS'] - x-timer: ['S1507631760.501276,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017401.170820,VS0,VE112'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -132,33 +133,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Jimdo - Fastly Ansible Module Test","publish_key":"a96943e455233af6a0fb064d089f897de1deacda","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:35:59Z","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo + Fastly Ansible Module Test","publish_key":"4d00e3f7dd2b13ae605b25c768e067b9f39a28e5","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:23:21Z","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['518'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:35:59 GMT'] - fastly-ratelimit-remaining: ['814'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:21 GMT'] + fastly-ratelimit-remaining: ['865'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4444-AMS'] - x-timer: ['S1507631760.819928,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017401.363198,VS0,VE420'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/details + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/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":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo","version":{"testing":false,"number":1,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:35:59Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:35:59Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u","version":{"testing":false,"number":1,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:21Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:21Z","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 +167,64 @@ interactions: connection: [keep-alive] content-length: ['1047'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:00 GMT'] + date: ['Fri, 06 Apr 2018 12:23:22 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4435-AMS'] - x-timer: ['S1507631760.061774,VS0,VE467'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017402.853150,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version response: - body: {string: !!python/unicode '{"service_id":"6Hg9tcdvWWA00d26tuuhHo","number":2}'} + body: {string: !!python/unicode '{"service_id":"2ImL8nMGcYKsEGpmceMp2u","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:01 GMT'] - fastly-ratelimit-remaining: ['813'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:22 GMT'] + fastly-ratelimit-remaining: ['864'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4136-AMS'] - x-timer: ['S1507631761.615880,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523017402.065298,VS0,VE435'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/domain + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"6Hg9tcdvWWA00d26tuuhHo","version":2,"deleted_at":null,"created_at":"2017-10-10T10:36:01Z","updated_at":"2017-10-10T10:36:01Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2ImL8nMGcYKsEGpmceMp2u","version":2,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","updated_at":"2018-04-06T12:23:22Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['188'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:01 GMT'] - fastly-ratelimit-remaining: ['812'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:23 GMT'] + fastly-ratelimit-remaining: ['863'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4432-AMS'] - x-timer: ['S1507631761.142874,VS0,VE508'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523017403.615857,VS0,VE457'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -234,25 +235,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/backend + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6Hg9tcdvWWA00d26tuuhHo","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:02Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:02Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2ImL8nMGcYKsEGpmceMp2u","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:23Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:23Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:02 GMT'] - fastly-ratelimit-remaining: ['811'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:23 GMT'] + fastly-ratelimit-remaining: ['862'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4138-AMS'] - x-timer: ['S1507631762.749948,VS0,VE502'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523017403.162220,VS0,VE169'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -262,26 +263,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/header + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/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":"6Hg9tcdvWWA00d26tuuhHo","version":"2","updated_at":"2017-10-10T10:36:02Z","deleted_at":null,"created_at":"2017-10-10T10:36:02Z"}'} + 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":"2ImL8nMGcYKsEGpmceMp2u","version":"2","updated_at":"2018-04-06T12:23:23Z","deleted_at":null,"created_at":"2018-04-06T12:23:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:02 GMT'] - fastly-ratelimit-remaining: ['810'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:23 GMT'] + fastly-ratelimit-remaining: ['861'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] - x-timer: ['S1507631762.359632,VS0,VE502'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523017403.395755,VS0,VE150'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -289,87 +290,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/response_object + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"6Hg9tcdvWWA00d26tuuhHo","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:03Z","updated_at":"2017-10-10T10:36:03Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"2ImL8nMGcYKsEGpmceMp2u","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:23Z","updated_at":"2018-04-06T12:23:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:03 GMT'] - fastly-ratelimit-remaining: ['809'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:23 GMT'] + fastly-ratelimit-remaining: ['860'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4125-AMS'] - x-timer: ['S1507631763.966126,VS0,VE474'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017404.609492,VS0,VE149'] 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/6Hg9tcdvWWA00d26tuuhHo/version/2/settings + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6Hg9tcdvWWA00d26tuuhHo"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2ImL8nMGcYKsEGpmceMp2u"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:04 GMT'] - fastly-ratelimit-remaining: ['808'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:23 GMT'] + fastly-ratelimit-remaining: ['859'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4423-AMS'] - x-timer: ['S1507631764.536449,VS0,VE476'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017404.823764,VS0,VE164'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/activate + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:03Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:23Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:04 GMT'] - fastly-ratelimit-remaining: ['807'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:24 GMT'] + fastly-ratelimit-remaining: ['858'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4143-AMS'] - x-timer: ['S1507631764.106353,VS0,VE770'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523017404.052818,VS0,VE642'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/details + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/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":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:04Z","deployed":false}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo","version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:24Z","deployed":false}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u","version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -379,13 +380,13 @@ interactions: connection: [keep-alive] content-length: ['3883'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:05 GMT'] + date: ['Fri, 06 Apr 2018 12:23:24 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4420-AMS'] - x-timer: ['S1507631765.996931,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523017405.836041,VS0,VE145'] 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 c38f09d..73c9871 100644 --- a/tests/fixtures/cassettes/test_service_does_not_exist_and_activate_new_version_is_disabled +++ b/tests/fixtures/cassettes/test_service_does_not_exist_and_activate_new_version_is_disabled @@ -6,32 +6,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":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false},{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"deployed":false,"locked":true,"active":true,"comment":""}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false},{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":""}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['602'] + content-length: ['692'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:06 GMT'] + date: ['Fri, 06 Apr 2018 12:23:25 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4126-AMS'] - x-timer: ['S1507631766.679255,VS0,VE433'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017405.103223,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/details + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/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":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:35:59Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:35:59Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:04Z","deployed":false}],"created_at":"2017-10-10T10:35:59Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:35:59Z","id":"6Hg9tcdvWWA00d26tuuhHo","version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:24Z","deployed":false}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u","version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"updated_at":"2017-10-10T10:36:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2017-10-10T10:36:00Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -41,46 +42,46 @@ interactions: connection: [keep-alive] content-length: ['3883'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:06 GMT'] + date: ['Fri, 06 Apr 2018 12:23:25 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4440-AMS'] - x-timer: ['S1507631766.195371,VS0,VE104'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523017405.305562,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo/version/2/deactivate + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6Hg9tcdvWWA00d26tuuhHo","staging":false,"created_at":"2017-10-10T10:36:00Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:04Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:24Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:06 GMT'] - fastly-ratelimit-remaining: ['806'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:26 GMT'] + fastly-ratelimit-remaining: ['857'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4121-AMS'] - x-timer: ['S1507631766.399037,VS0,VE498'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523017406.541625,VS0,VE488'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6Hg9tcdvWWA00d26tuuhHo + uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,16 +90,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:07 GMT'] - fastly-ratelimit-remaining: ['805'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:26 GMT'] + fastly-ratelimit-remaining: ['856'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4142-AMS'] - x-timer: ['S1507631767.981830,VS0,VE440'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523017406.095660,VS0,VE404'] status: {code: 200, message: OK} - request: body: null @@ -108,7 +109,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 ''1z3ENiEMpKOrsGqTBLhkF2''-''Jimdo Fastly Ansible Module Test''"}'} + service ''31RPDMBpiruA1yfGA2djLm''-''Jimdo Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -116,14 +117,14 @@ interactions: connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:07 GMT'] + date: ['Fri, 06 Apr 2018 12:23:26 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-ams4144-AMS'] - x-timer: ['S1507631768.511498,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523017407.566562,VS0,VE112'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -132,33 +133,33 @@ interactions: method: POST uri: https://api.fastly.com/service response: - body: {string: !!python/unicode '{"customer_id":"1z3ENiEMpKOrsGqTBLhkF2","name":"Jimdo - Fastly Ansible Module Test","publish_key":"b8674ae14ef8f5dfe563eefa0f7468e4f5f839fd","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:08Z","deployed":false}],"deleted_at":null,"created_at":"2017-10-10T10:36:08Z","comment":"","updated_at":"2017-10-10T10:36:08Z","id":"6Qoo35YqIXGAx6yAHEjh3Q"}'} + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo + Fastly Ansible Module Test","publish_key":"72d7fdcf951f90c8cbe5b9174797939dfbd267c0","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:23:27Z","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['518'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:08 GMT'] - fastly-ratelimit-remaining: ['804'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:27 GMT'] + fastly-ratelimit-remaining: ['855'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4132-AMS'] - x-timer: ['S1507631768.706013,VS0,VE383'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523017407.743213,VS0,VE401'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/details + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/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":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:08Z","deployed":false}],"created_at":"2017-10-10T10:36:08Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:08Z","id":"6Qoo35YqIXGAx6yAHEjh3Q","version":{"testing":false,"number":1,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"updated_at":"2017-10-10T10:36:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:36:08Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl","version":{"testing":false,"number":1,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-06T12:23:27Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:27Z","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 +167,64 @@ interactions: connection: [keep-alive] content-length: ['1047'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:08 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4425-AMS'] - x-timer: ['S1507631768.163743,VS0,VE158'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523017407.343062,VS0,VE441'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version response: - body: {string: !!python/unicode '{"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","number":2}'} + body: {string: !!python/unicode '{"service_id":"2OoDoy0MEvFrKvrn2l5VVl","number":2}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['50'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:08 GMT'] - fastly-ratelimit-remaining: ['803'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:27 GMT'] + fastly-ratelimit-remaining: ['854'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4430-AMS'] - x-timer: ['S1507631768.399128,VS0,VE415'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523017408.845961,VS0,VE137'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/domain + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"6Qoo35YqIXGAx6yAHEjh3Q","version":2,"deleted_at":null,"created_at":"2017-10-10T10:36:09Z","updated_at":"2017-10-10T10:36:09Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":2,"deleted_at":null,"created_at":"2018-04-06T12:23:28Z","updated_at":"2018-04-06T12:23:28Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['188'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:09 GMT'] - fastly-ratelimit-remaining: ['802'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:28 GMT'] + fastly-ratelimit-remaining: ['853'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4434-AMS'] - x-timer: ['S1507631769.898381,VS0,VE488'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523017408.046544,VS0,VE466'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -234,25 +235,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/backend + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2017-10-10T10:36:09Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2017-10-10T10:36:09Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:28Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:28Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:09 GMT'] - fastly-ratelimit-remaining: ['801'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:29 GMT'] + fastly-ratelimit-remaining: ['852'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4447-AMS'] - x-timer: ['S1507631769.492848,VS0,VE467'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523017409.595159,VS0,VE429'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -262,26 +263,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/header + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/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":"6Qoo35YqIXGAx6yAHEjh3Q","version":"2","updated_at":"2017-10-10T10:36:10Z","deleted_at":null,"created_at":"2017-10-10T10:36:10Z"}'} + 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":"2OoDoy0MEvFrKvrn2l5VVl","version":"2","updated_at":"2018-04-06T12:23:29Z","deleted_at":null,"created_at":"2018-04-06T12:23:29Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:10 GMT'] - fastly-ratelimit-remaining: ['800'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:29 GMT'] + fastly-ratelimit-remaining: ['851'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4127-AMS'] - x-timer: ['S1507631770.057832,VS0,VE481'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523017409.234540,VS0,VE155'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -289,60 +290,60 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/response_object + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"6Qoo35YqIXGAx6yAHEjh3Q","version":"2","deleted_at":null,"cache_condition":"","created_at":"2017-10-10T10:36:11Z","updated_at":"2017-10-10T10:36:11Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:30Z","updated_at":"2018-04-06T12:23:30Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:11 GMT'] - fastly-ratelimit-remaining: ['799'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:30 GMT'] + fastly-ratelimit-remaining: ['850'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4131-AMS'] - x-timer: ['S1507631771.646036,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523017410.756592,VS0,VE443'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/version/2/settings + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2OoDoy0MEvFrKvrn2l5VVl"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:11 GMT'] - fastly-ratelimit-remaining: ['798'] - fastly-ratelimit-reset: ['1507633200'] + date: ['Fri, 06 Apr 2018 12:23:30 GMT'] + fastly-ratelimit-remaining: ['849'] + fastly-ratelimit-reset: ['1523019600'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-ams4146-AMS'] - x-timer: ['S1507631771.170095,VS0,VE468'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523017410.436388,VS0,VE436'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6Qoo35YqIXGAx6yAHEjh3Q/details + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/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":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:08Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"created_at":"2017-10-10T10:36:08Z","deleted_at":null,"comment":"","updated_at":"2017-10-10T10:36:11Z","deployed":false}],"created_at":"2017-10-10T10:36:08Z","customer_id":"1z3ENiEMpKOrsGqTBLhkF2","comment":"","updated_at":"2017-10-10T10:36:08Z","id":"6Qoo35YqIXGAx6yAHEjh3Q","version":{"testing":false,"number":2,"service_id":"6Qoo35YqIXGAx6yAHEjh3Q","staging":false,"updated_at":"2017-10-10T10:36:11Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2017-10-10T10:36:08Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl","version":{"testing":false,"number":2,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-06T12:23:30Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: @@ -352,13 +353,13 @@ interactions: connection: [keep-alive] content-length: ['2310'] content-type: [application/json] - date: ['Tue, 10 Oct 2017 10:36:11 GMT'] + date: ['Fri, 06 Apr 2018 12:23: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-ams4434-AMS'] - x-timer: ['S1507631772.717987,VS0,VE154'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523017411.249151,VS0,VE152'] status: {code: 200, message: OK} version: 1 From 60096610b2a93b670b00ee66190efaddb7f3fd8d Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Mon, 9 Apr 2018 11:51:51 +0200 Subject: [PATCH 06/10] Fix coding style --- library/fastly_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index 1517948..53f3308 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -744,13 +744,14 @@ def delete_domain(self, service_id, version, domain): else: raise Exception("Error deleting domain %s service %s, version %s (%s)" % (domain, service_id, version, response.payload['detail'])) + def get_healthcheck_name(self, service_id, version): response = self._request('/service/%s/version/%s/healthcheck' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload else: raise Exception("Error getting healthcheck name service %s, version %s (%s)" % (service_id, version, - response.payload['detail'])) + response.payload['detail'])) def create_healthcheck(self, service_id, version, healthcheck): response = self._request('/service/%s/version/%s/healthcheck' % (urllib.quote(service_id), version), 'POST', healthcheck) From c2ff9c9934b472976f2d857cde57b1ff92ecdbcf Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Mon, 9 Apr 2018 12:03:36 +0200 Subject: [PATCH 07/10] Remove superfluous vars --- library/fastly_service.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index 53f3308..6fea91d 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -1036,8 +1036,6 @@ def __init__(self, client): def apply_configuration(self, service_name, fastly_configuration, activate_new_version=True): actions = [] - clone = False - version_number = "" service = self.client.get_service_by_name(service_name) if service is None: @@ -1055,10 +1053,9 @@ def apply_configuration(self, service_name, fastly_configuration, activate_new_v actions.append("Deployed new version because service has no active version") elif fastly_configuration != current_version.configuration: version_number = self.clone_old_version(service.id) - clone = True self.delete_version_before_apply_config(service.id, version_number, fastly_configuration) self.deploy_version_with_configuration(service.id, fastly_configuration, - activate_new_version, clone, version_number) + activate_new_version, True, version_number) actions.append("Deployed new version because settings are not up to date") changed = len(actions) > 0 @@ -1119,11 +1116,9 @@ def delete_version_before_apply_config(self, service_id, version_to_delete, conf self.client.delete_vcl_snippet(service_id, version_to_delete, vcl_snippet_name['name']) def deploy_version_with_configuration(self, service_id, configuration, activate_version, - clone=False, cloned_version=""): + clone=False, version_number=""): - if clone: - version_number = cloned_version - else: + if not clone: version = self.client.create_version(service_id) version_number = version['number'] From 9358cd11ed6cb99f944b6bcf9065608827e79e7f Mon Sep 17 00:00:00 2001 From: Paul Seiffert Date: Mon, 9 Apr 2018 12:57:05 +0200 Subject: [PATCH 08/10] Simplify version cloning --- library/fastly_service.py | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index 6fea91d..38f9cae 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -1034,7 +1034,6 @@ def __init__(self, client): self.client = client def apply_configuration(self, service_name, fastly_configuration, activate_new_version=True): - actions = [] service = self.client.get_service_by_name(service_name) @@ -1048,28 +1047,30 @@ def apply_configuration(self, service_name, fastly_configuration, activate_new_v current_version = service.latest_version if current_version is None or service.active_version is None: - self.deploy_version_with_configuration(service.id, fastly_configuration, - activate_new_version) - actions.append("Deployed new version because service has no active version") + version_number = self.create_new_version(service.id) + self.configure_version(service.id, fastly_configuration, activate_new_version, version_number) + actions.append("Created a new version because service has no active version") elif fastly_configuration != current_version.configuration: version_number = self.clone_old_version(service.id) - self.delete_version_before_apply_config(service.id, version_number, fastly_configuration) - self.deploy_version_with_configuration(service.id, fastly_configuration, - activate_new_version, True, version_number) - actions.append("Deployed new version because settings are not up to date") + self.reset_version(service.id, version_number) + self.configure_version(service.id, fastly_configuration, activate_new_version, version_number) + actions.append("Cloned an old version because service configuration was not up to date") changed = len(actions) > 0 service = self.client.get_service(service.id) return FastlyStateEnforcerResult(actions=actions, changed=changed, service=service) + def create_new_version(self, service_id): + version = self.client.create_version(service_id) + return version['number'] + def clone_old_version(self, service_id): version_to_clone = self.client.get_active_version(service_id) clone = self.client.clone_old_version(service_id, version_to_clone) clone_version_number = clone['number'] return clone_version_number - def delete_version_before_apply_config(self, service_id, version_to_delete, configuration): - + def reset_version(self, service_id, version_to_delete): domain = self.client.get_domain_name(service_id, version_to_delete) healthcheck = self.client.get_healthcheck_name(service_id, version_to_delete) condition = self.client.get_condition_name(service_id, version_to_delete) @@ -1115,13 +1116,7 @@ def delete_version_before_apply_config(self, service_id, version_to_delete, conf for vcl_snippet_name in snippets: self.client.delete_vcl_snippet(service_id, version_to_delete, vcl_snippet_name['name']) - def deploy_version_with_configuration(self, service_id, configuration, activate_version, - clone=False, version_number=""): - - if not clone: - version = self.client.create_version(service_id) - version_number = version['number'] - + def configure_version(self, service_id, configuration, activate_version, version_number): for domain in configuration.domains: self.client.create_domain(service_id, version_number, domain) From aa3bb6c9564f5c1a4d77a5e51ebe73b10b007532 Mon Sep 17 00:00:00 2001 From: Simon Hartmann Date: Tue, 10 Apr 2018 11:53:18 +0200 Subject: [PATCH 09/10] add venv to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0bf4786..b102717 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ *.pyc .*.sw? +venv/ From 5d231b6344745223246cc17d8f3248ff95e5e2b2 Mon Sep 17 00:00:00 2001 From: Simon Hartmann Date: Tue, 10 Apr 2018 11:53:25 +0200 Subject: [PATCH 10/10] Refactoring --- library/fastly_service.py | 246 +++--- .../TestFastlyCacheSettings_tearDown.yml | 49 +- ...cheSettings_test_fastly_cache_settings.yml | 458 ++++++++--- ...test_fastly_cache_settings_with_action.yml | 459 ++++++++--- ...astly_cache_settings_without_stale_ttl.yml | 415 ++++------ .../TestFastlyCondition_tearDown.yml | 52 +- ...yCondition_test_fastly_cache_condition.yml | 409 ++++------ ...ondition_test_fastly_request_condition.yml | 419 ++++++++-- .../TestFastlyDirectors_tearDown.yml | 47 +- ..._test_fastly_director_with_one_backend.yml | 423 +++++----- .../cassettes/TestFastlyGzip_tearDown.yml | 52 +- .../TestFastlyGzip_test_fastly_gzip.yml | 425 ++++++++-- .../TestFastlyHealthchecks_tearDown.yml | 46 +- ...yHealthchecks_test_fastly_healthchecks.yml | 394 ++++----- .../TestFastlyRequestSetting_tearDown.yml | 48 +- ...g_test_fastly_request_setting_defaults.yml | 451 ++++++++--- ...y_response_object_content_content_type.yml | 438 ++++++++-- .../TestFastlyResponseObject_tearDown.yml | 47 +- ...y_response_object_content_content_type.yml | 432 ++++++++-- ...t_test_fastly_response_object_defaults.yml | 438 ++++++++-- .../cassettes/TestFastlySettings_tearDown.yml | 47 +- ...estFastlySettings_test_fastly_settings.yml | 436 ++++++++-- .../TestFastlyVclSnippets_tearDown.yml | 48 +- ...tly_vcl_snippets_deliver_stale_content.yml | 399 ++++------ tests/fixtures/cassettes/tearDown | 44 +- .../test_fastly_backend_empty_ssl_ca_cert | 462 +++++++++-- .../test_fastly_backend_port_not_required | 422 ++++++++-- .../cassettes/test_fastly_backend_weight_even | 357 ++++----- .../test_fastly_domain_comment_not_required | 350 ++++---- .../test_fastly_header_action_not_required | 378 ++++----- ...t_fastly_header_ignore_if_set_not_required | 39 +- .../test_fastly_header_priority_not_required | 39 +- .../cassettes/test_service_does_exist | 745 +++++++----------- ...exist_and_activate_new_version_is_disabled | 688 +++++++--------- ...vice_does_exist_and_configuration_is_equal | 415 ++++------ ...equal_and_activate_new_version_is_disabled | 80 +- .../cassettes/test_service_does_not_exist | 459 ++++++++--- ...exist_and_activate_new_version_is_disabled | 455 ++++++++--- tests/test_fastly_service.py | 3 +- 39 files changed, 7065 insertions(+), 4549 deletions(-) diff --git a/library/fastly_service.py b/library/fastly_service.py index 38f9cae..49e66e3 100644 --- a/library/fastly_service.py +++ b/library/fastly_service.py @@ -650,160 +650,138 @@ def get_active_version(self, service_id): cloned_from_version = response.payload['number'] return cloned_from_version - def clone_old_version(self, service_id, version_to_clone): + def clone_version(self, service_id, version_to_clone): response = self._request('/service/%s/version/%s/clone' % (urllib.quote(service_id), version_to_clone), 'PUT') if response.status == 200: return response.payload - else: - raise Exception("Could not clone version '%s' for service '%s': %s" % (version_to_clone, service_id, response.payload['detail'])) + raise Exception("Could not clone version '%s' for service '%s': %s" % (version_to_clone, service_id, response.payload['detail'])) def get_service_by_name(self, service_name): response = self._request('/service/search?name=%s' % urllib.quote(service_name)) if response.status == 200: service_id = response.payload['id'] return self.get_service(service_id) - elif response.status == 404: + if response.status == 404: return None - else: - raise Exception("Error searching for service '%s'" % service_name) + raise Exception("Error searching for service '%s'" % service_name) def get_service(self, service_id): response = self._request('/service/%s/details' % urllib.quote(service_id)) if response.status == 200: return FastlyService(response.payload) - elif response.status == 404: + if response.status == 404: return None - else: - raise Exception("Error fetching service details for service '%s'" % service_id) + raise Exception("Error fetching service details for service '%s'" % service_id) def create_service(self, service_name): response = self._request('/service', 'POST', {'name': service_name}) if response.status == 200: return self.get_service(response.payload['id']) - else: - raise Exception("Error creating service with name '%s': %s" % (service_name, response.payload['detail'])) + raise Exception("Error creating service with name '%s': %s" % (service_name, response.payload['detail'])) def delete_service(self, service_name, deactivate_active_version=True): service = self.get_service_by_name(service_name) if service is None: return False - if service.active_version is not None and deactivate_active_version: self.deactivate_version(service.id, service.active_version.number) - response = self._request('/service/%s' % urllib.quote(service.id), 'DELETE') if response.status == 200: return True - else: - raise Exception("Error deleting service with name '%s' (%s)" % (service_name, response.payload['detail'])) + raise Exception("Error deleting service with name '%s' (%s)" % (service_name, response.payload['detail'])) def create_version(self, service_id): response = self._request('/service/%s/version' % urllib.quote(service_id), 'POST') if response.status == 200: return response.payload - else: - raise Exception("Error creating new version for service %s" % service_id) + raise Exception("Error creating new version for service %s" % service_id) def activate_version(self, service_id, version): response = self._request('/service/%s/version/%s/activate' % (urllib.quote(service_id), version), 'PUT') if response.status == 200: return response.payload - else: - raise Exception( - "Error activating version %s for service %s (%s)" % (version, service_id, response.payload['detail'])) + raise Exception( + "Error activating version %s for service %s (%s)" % (version, service_id, response.payload['detail'])) def deactivate_version(self, service_id, version): response = self._request('/service/%s/version/%s/deactivate' % (urllib.quote(service_id), version), 'PUT') if response.status == 200: return response.payload - else: - raise Exception( - "Error deactivating version %s for service %s (%s)" % (version, service_id, response.payload['detail'])) + raise Exception( + "Error deactivating version %s for service %s (%s)" % (version, service_id, response.payload['detail'])) def get_domain_name(self, service_id, version): response = self._request('/service/%s/version/%s/domain' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving domain for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving domain for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_domain(self, service_id, version, domain): response = self._request('/service/%s/version/%s/domain' % (urllib.quote(service_id), version), 'POST', domain) if response.status == 200: return response.payload - else: - raise Exception("Error creating domain for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating domain for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_domain(self, service_id, version, domain): response = self._request('/service/%s/version/%s/domain/%s' % (urllib.quote(service_id), version, urllib.quote(domain)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting domain %s service %s, version %s (%s)" % (domain, service_id, version, - response.payload['detail'])) + raise Exception("Error deleting domain %s service %s, version %s (%s)" % (domain, service_id, version, + response.payload['detail'])) def get_healthcheck_name(self, service_id, version): response = self._request('/service/%s/version/%s/healthcheck' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception("Error getting healthcheck name service %s, version %s (%s)" % (service_id, version, - response.payload['detail'])) + raise Exception("Error getting healthcheck name service %s, version %s (%s)" % (service_id, version, + response.payload['detail'])) def create_healthcheck(self, service_id, version, healthcheck): response = self._request('/service/%s/version/%s/healthcheck' % (urllib.quote(service_id), version), 'POST', healthcheck) if response.status == 200: return response.payload - else: - raise Exception("Error creating healthcheck for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating healthcheck for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_healthcheck(self, service_id, version, healthcheck): response = self._request('/service/%s/version/%s/healthcheck/%s' % (urllib.quote(service_id), version, urllib.quote(healthcheck)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting healthcheck %s service %s, version %s (%s)" % ( - healthcheck, service_id, version, response.payload['detail'])) + raise Exception("Error deleting healthcheck %s service %s, version %s (%s)" % ( + healthcheck, service_id, version, response.payload['detail'])) def get_backend_name(self, service_id, version): response = self._request('/service/%s/version/%s/backend' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving backend for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving backend for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_backend(self, service_id, version, backend): response = self._request('/service/%s/version/%s/backend' % (urllib.quote(service_id), version), 'POST', backend) if response.status == 200: return response.payload - else: - raise Exception("Error creating backend for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating backend for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_backend(self, service_id, version, backend): response = self._request('/service/%s/version/%s/backend/%s' % (urllib.quote(service_id), version, urllib.quote(backend)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting backend %s service %s, version %s (%s)" % ( - backend, service_id, version, response.payload['detail'])) + raise Exception("Error deleting backend %s service %s, version %s (%s)" % ( + backend, service_id, version, response.payload['detail'])) def get_director_name(self, service_id, version): response = self._request('/service/%s/version/%s/director' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving director for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving director for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_director(self, service_id, version, director): response = self._request('/service/%s/version/%s/director' % (urllib.quote(service_id), version), 'POST', director) @@ -825,201 +803,170 @@ def delete_director(self, service_id, version, director): 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting director %s service %s, version %s (%s)" % ( - director, service_id, version, response.payload['detail'])) + raise Exception("Error deleting director %s service %s, version %s (%s)" % ( + director, service_id, version, response.payload['detail'])) def get_cache_settings_name(self, service_id, version): response = self._request('/service/%s/version/%s/cache_settings' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving cache_settings for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving cache_settings for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_cache_settings(self, service_id, version, cache_settings): response = self._request('/service/%s/version/%s/cache_settings' % (urllib.quote(service_id), version), 'POST', cache_settings) if response.status == 200: return response.payload - else: - raise Exception("Error creating cache_settings for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating cache_settings for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_cache_settings(self, service_id, version, cache_settings): response = self._request('/service/%s/version/%s/cache_settings/%s' % (urllib.quote(service_id), version, urllib.quote(cache_settings)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting cache_settings %s service %s, version %s (%s)" % ( - cache_settings, service_id, version, response.payload['detail'])) + raise Exception("Error deleting cache_settings %s service %s, version %s (%s)" % ( + cache_settings, service_id, version, response.payload['detail'])) def get_condition_name(self, service_id, version): response = self._request('/service/%s/version/%s/condition' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving condition for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving condition for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_condition(self, service_id, version, condition): response = self._request('/service/%s/version/%s/condition' % (urllib.quote(service_id), version), 'POST', condition) if response.status == 200: return response.payload - else: - raise Exception("Error creating condition for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating condition for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_condition(self, service_id, version, condition): response = self._request('/service/%s/version/%s/condition/%s' % (urllib.quote(service_id), version, urllib.quote(condition)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting condition %s service %s, version %s (%s)" % ( - condition, service_id, version, response.payload['detail'])) + raise Exception("Error deleting condition %s service %s, version %s (%s)" % ( + condition, service_id, version, response.payload['detail'])) def get_gzip_name(self, service_id, version): response = self._request('/service/%s/version/%s/gzip' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving gzip for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving gzip for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_gzip(self, service_id, version, gzip): - response = self._request('/service/%s/version/%s/gzip' % (urllib.quote(service_id), version), 'POST', - gzip) + response = self._request('/service/%s/version/%s/gzip' % (urllib.quote(service_id), version), 'POST', gzip) if response.status == 200: return response.payload - else: - raise Exception("Error creating gzip for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating gzip for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_gzip(self, service_id, version, gzip): response = self._request('/service/%s/version/%s/gzip/%s' % (urllib.quote(service_id), version, urllib.quote(gzip)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting gzip %s service %s, version %s (%s)" % ( - gzip, service_id, version, response.payload['detail'])) + raise Exception("Error deleting gzip %s service %s, version %s (%s)" % ( + gzip, service_id, version, response.payload['detail'])) def get_header_name(self, service_id, version): response = self._request('/service/%s/version/%s/header' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving header for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving header for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_header(self, service_id, version, header): response = self._request('/service/%s/version/%s/header' % (urllib.quote(service_id), version), 'POST', header) if response.status == 200: return response.payload - else: - raise Exception("Error creating header for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating header for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_header(self, service_id, version, header): response = self._request('/service/%s/version/%s/header/%s' % (urllib.quote(service_id), version, urllib.quote(header)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting header %s service %s, version %s (%s)" % ( - header, service_id, version, response.payload['detail'])) + raise Exception("Error deleting header %s service %s, version %s (%s)" % (header, service_id, version, response.payload['detail'])) def get_request_settings_name(self, service_id, version): response = self._request('/service/%s/version/%s/request_settings' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving request_settings for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving request_settings for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_request_setting(self, service_id, version, request_setting): response = self._request('/service/%s/version/%s/request_settings' % (urllib.quote(service_id), version), 'POST', request_setting) if response.status == 200: return response.payload - else: - raise Exception("Error creating request setting for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating request setting for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_request_settings(self, service_id, version, request_setting): response = self._request('/service/%s/version/%s/request_settings/%s' % (urllib.quote(service_id), version, urllib.quote(request_setting)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting request_setting %s service %s, version %s (%s)" % ( - request_setting, service_id, version, response.payload['detail'])) + raise Exception("Error deleting request_setting %s service %s, version %s (%s)" % ( + request_setting, service_id, version, response.payload['detail'])) def get_response_objects_name(self, service_id, version): response = self._request('/service/%s/version/%s/response_object' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving response_object for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving response_object for service %s, version %s (%s)" % (service_id, version, response.payload['detail'])) def create_response_object(self, service_id, version, response_object): response = self._request('/service/%s/version/%s/response_object' % (urllib.quote(service_id), version), 'POST', response_object) if response.status == 200: return response.payload - else: - raise Exception("Error creating response object for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating response object for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) def delete_response_object(self, service_id, version, response_object): response = self._request('/service/%s/version/%s/response_object/%s' % (urllib.quote(service_id), version, urllib.quote(response_object)), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting response_object %s service %s, version %s (%s)" % ( - response_object, service_id, version, response.payload['detail'])) + raise Exception("Error deleting response_object %s service %s, version %s (%s)" % ( + response_object, service_id, version, response.payload['detail'])) def get_vcl_snippet_name(self, service_id, version): response = self._request('/service/%s/version/%s/snippet' % (urllib.quote(service_id), version), 'GET') if response.status == 200: return response.payload - else: - raise Exception( - "Error retrieving vcl snippt for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception( + "Error retrieving vcl snippt 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' % (urllib.quote(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'])) + raise Exception("Error creating VCL snippet '%s' for service %s, version %s (%s)" % (vcl_snippet['name'], service_id, version, response.payload['detail'])) def delete_vcl_snippet(self, service_id, version, snippet): response = self._request('/service/%s/version/%s/snippet/%s' % (urllib.quote(service_id), version, snippet), 'DELETE') if response.status == 200: return response.payload - else: - raise Exception("Error deleting vcl snippet %s service %s, version %s (%s)" % ( - snippet, service_id, version, response.payload['detail'])) + raise Exception("Error deleting vcl snippet %s service %s, version %s (%s)" % ( + snippet, service_id, version, response.payload['detail'])) def create_settings(self, service_id, version, settings): response = self._request('/service/%s/version/%s/settings' % (urllib.quote(service_id), version), 'PUT', settings) if response.status == 200: return response.payload - else: - raise Exception("Error creating settings for service %s, version %s (%s)" % ( - service_id, version, response.payload['detail'])) + raise Exception("Error creating settings for service %s, version %s (%s)" % ( + service_id, version, response.payload['detail'])) class FastlyStateEnforcerResult(object): @@ -1041,20 +988,27 @@ def apply_configuration(self, service_name, fastly_configuration, activate_new_v service = self.client.create_service(service_name) actions.append("Created new service %s" % service_name) - if activate_new_version: + if service.active_version is not None: current_version = service.active_version else: current_version = service.latest_version - if current_version is None or service.active_version is None: - version_number = self.create_new_version(service.id) - self.configure_version(service.id, fastly_configuration, activate_new_version, version_number) - actions.append("Created a new version because service has no active version") - elif fastly_configuration != current_version.configuration: - version_number = self.clone_old_version(service.id) - self.reset_version(service.id, version_number) - self.configure_version(service.id, fastly_configuration, activate_new_version, version_number) - actions.append("Cloned an old version because service configuration was not up to date") + hasNoVersion = current_version is None + hasChanged = not hasNoVersion and fastly_configuration != current_version.configuration + + if hasNoVersion or hasChanged: + if hasNoVersion: + version_number = self.create_new_version(service.id) + actions.append("Created a new version because service has no active version") + elif hasChanged: + version_number = self.clone_version(service.id, current_version.number) + actions.append("Cloned an old version because service configuration was not up to date") + self.reset_version(service.id, version_number) + + self.configure_version(service.id, fastly_configuration, version_number) + + if activate_new_version: + self.client.activate_version(service.id, version_number) changed = len(actions) > 0 service = self.client.get_service(service.id) @@ -1064,9 +1018,8 @@ def create_new_version(self, service_id): version = self.client.create_version(service_id) return version['number'] - def clone_old_version(self, service_id): - version_to_clone = self.client.get_active_version(service_id) - clone = self.client.clone_old_version(service_id, version_to_clone) + def clone_version(self, service_id, version): + clone = self.client.clone_version(service_id, version) clone_version_number = clone['number'] return clone_version_number @@ -1116,7 +1069,7 @@ def reset_version(self, service_id, version_to_delete): for vcl_snippet_name in snippets: self.client.delete_vcl_snippet(service_id, version_to_delete, vcl_snippet_name['name']) - def configure_version(self, service_id, configuration, activate_version, version_number): + def configure_version(self, service_id, configuration, version_number): for domain in configuration.domains: self.client.create_domain(service_id, version_number, domain) @@ -1156,9 +1109,6 @@ def configure_version(self, service_id, configuration, activate_version, version if configuration.settings: self.client.create_settings(service_id, version_number, configuration.settings) - if activate_version: - self.client.activate_version(service_id, version_number) - def delete_service(self, service_name): service = self.client.get_service_by_name(service_name) diff --git a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml index c2bce5e..77e9208 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_tearDown.yml @@ -6,81 +6,82 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":""}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false},{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":""}],"created_at":"2018-04-10T14:39:42Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['686'] + content-length: ['683'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:55 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19146-FRA'] - x-timer: ['S1523016775.941774,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371193.167579,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/details + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/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":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:43Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:51Z","deployed":false}],"created_at":"2018-04-10T14:39:42Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc","version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4061'] + content-length: ['4056'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:55 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19144-FRA'] - x-timer: ['S1523016775.144295,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371193.375692,VS0,VE109'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/deactivate + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:43Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:51Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['231'] + content-length: ['230'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:56 GMT'] + date: ['Tue, 10 Apr 2018 14:39:54 GMT'] fastly-ratelimit-remaining: ['990'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523016776.808666,VS0,VE424'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371194.550275,VS0,VE507'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:56 GMT'] + date: ['Tue, 10 Apr 2018 14:39:54 GMT'] fastly-ratelimit-remaining: ['989'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523016776.327893,VS0,VE459'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371194.307502,VS0,VE140'] 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 0c6d5c0..107d41f 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:48 GMT'] + date: ['Tue, 10 Apr 2018 14:39:41 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-fra19123-FRA'] - x-timer: ['S1523016768.403876,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371181.445569,VS0,VE402'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,97 +32,361 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"5d3e64b05a2508ac3cfc0db9ebaa8da0d2787239","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:12:48Z","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd"}'} + Ansible Module Test","publish_key":"07e63d54c714f425b7ab46fc1e217db4cd46e61c","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:39:42Z","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['512'] + content-length: ['510'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:49 GMT'] + date: ['Tue, 10 Apr 2018 14:39:42 GMT'] fastly-ratelimit-remaining: ['999'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371182.908991,VS0,VE427'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/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":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false}],"created_at":"2018-04-10T14:39:42Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc","version":{"testing":false,"number":1,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:42Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:39:42Z","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: ['1038'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39: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-fra19125-FRA'] + x-timer: ['S1523371183.518086,VS0,VE481'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/1/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['231'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:43 GMT'] + fastly-ratelimit-remaining: ['998'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371183.139547,VS0,VE461'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016769.583489,VS0,VE423'] + x-timer: ['S1523371184.768876,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39: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-fra19129-FRA'] + x-timer: ['S1523371184.943614,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/details + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/condition response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":1,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:48Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:12:48Z","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 '[]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1041'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:49 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19141-FRA'] - x-timer: ['S1523016769.225523,VS0,VE416'] + x-timer: ['S1523371184.129513,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/backend response: - body: {string: !!python/unicode '{"service_id":"6PD20Uj8RWetLDUZ17jgXd","number":2}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:50 GMT'] - fastly-ratelimit-remaining: ['998'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19123-FRA'] - x-timer: ['S1523016770.853251,VS0,VE424'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371185.606774,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39: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-fra19133-FRA'] + x-timer: ['S1523371185.789672,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:45 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371185.973041,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:45 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371185.446791,VS0,VE400'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39: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-fra19135-FRA'] + x-timer: ['S1523371186.064643,VS0,VE407'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:47 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371187.694993,VS0,VE386'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:47 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371187.221053,VS0,VE402'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39: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-fra19138-FRA'] + x-timer: ['S1523371188.739533,VS0,VE383'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/domain + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6PD20Uj8RWetLDUZ17jgXd","version":2,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","updated_at":"2018-04-06T12:12:50Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2T6RaPUWpO8jsWHVVNXvc","version":2,"deleted_at":null,"created_at":"2018-04-10T14:39:48Z","updated_at":"2018-04-10T14:39:48Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['179'] + content-length: ['178'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:51 GMT'] + date: ['Tue, 10 Apr 2018 14:39:48 GMT'] fastly-ratelimit-remaining: ['997'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523016770.482096,VS0,VE527'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371188.184762,VS0,VE291'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +397,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/backend + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6PD20Uj8RWetLDUZ17jgXd","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:12:51Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:12:51Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2T6RaPUWpO8jsWHVVNXvc","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:39:48Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:39:48Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:51 GMT'] + date: ['Tue, 10 Apr 2018 14:39:48 GMT'] fastly-ratelimit-remaining: ['996'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523016771.109292,VS0,VE425'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371189.570244,VS0,VE422'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 10, "name": "cache-settings-config-name", @@ -159,25 +423,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/cache_settings + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"6PD20Uj8RWetLDUZ17jgXd","version":"2","ttl":null,"deleted_at":null,"created_at":"2018-04-06T12:12:51Z","updated_at":"2018-04-06T12:12:51Z"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"2T6RaPUWpO8jsWHVVNXvc","version":"2","ttl":null,"deleted_at":null,"created_at":"2018-04-10T14:39:49Z","updated_at":"2018-04-10T14:39:49Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['240'] + content-length: ['239'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:51 GMT'] + date: ['Tue, 10 Apr 2018 14:39:49 GMT'] fastly-ratelimit-remaining: ['995'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523016772.598115,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371189.202101,VS0,VE412'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -187,26 +451,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/header + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/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":"6PD20Uj8RWetLDUZ17jgXd","version":"2","updated_at":"2018-04-06T12:12:52Z","deleted_at":null,"created_at":"2018-04-06T12:12:52Z"}'} + 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":"2T6RaPUWpO8jsWHVVNXvc","version":"2","updated_at":"2018-04-10T14:39:50Z","deleted_at":null,"created_at":"2018-04-10T14:39:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['413'] + content-length: ['412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:52 GMT'] + date: ['Tue, 10 Apr 2018 14:39:50 GMT'] fastly-ratelimit-remaining: ['994'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523016772.802508,VS0,VE418'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371190.679571,VS0,VE406'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -214,87 +478,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/response_object + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6PD20Uj8RWetLDUZ17jgXd","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:12:52Z","updated_at":"2018-04-06T12:12:52Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"2T6RaPUWpO8jsWHVVNXvc","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:39:50Z","updated_at":"2018-04-10T14:39:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:52 GMT'] + date: ['Tue, 10 Apr 2018 14:39:50 GMT'] fastly-ratelimit-remaining: ['993'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523016772.284411,VS0,VE438'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371190.255120,VS0,VE429'] 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/6PD20Uj8RWetLDUZ17jgXd/version/2/settings + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6PD20Uj8RWetLDUZ17jgXd"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2T6RaPUWpO8jsWHVVNXvc"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:52 GMT'] + date: ['Tue, 10 Apr 2018 14:39:50 GMT'] fastly-ratelimit-remaining: ['992'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523016773.786750,VS0,VE172'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371191.770604,VS0,VE211'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/version/2/activate + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:52Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:43Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:50Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:53 GMT'] + date: ['Tue, 10 Apr 2018 14:39:51 GMT'] fastly-ratelimit-remaining: ['991'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016773.023761,VS0,VE946'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371191.039471,VS0,VE676'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/details + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/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":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:43Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:51Z","deployed":false}],"created_at":"2018-04-10T14:39:42Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc","version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -302,16 +566,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4061'] + content-length: ['4056'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:54 GMT'] + date: ['Tue, 10 Apr 2018 14:39:51 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523016774.136166,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371192.815637,VS0,VE164'] status: {code: 200, message: OK} - request: body: null @@ -320,33 +584,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":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":""}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false},{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":""}],"created_at":"2018-04-10T14:39:42Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['686'] + content-length: ['683'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:54 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19150-FRA'] - x-timer: ['S1523016774.341523,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371192.042927,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/details + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/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":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:43Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:51Z","deployed":false}],"created_at":"2018-04-10T14:39:42Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc","version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -354,27 +618,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4061'] + content-length: ['4056'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:54 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19138-FRA'] - x-timer: ['S1523016775.553676,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371192.248660,VS0,VE315'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6PD20Uj8RWetLDUZ17jgXd/details + uri: https://api.fastly.com/service/2T6RaPUWpO8jsWHVVNXvc/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":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:48Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"created_at":"2018-04-06T12:12:50Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:53Z","deployed":false}],"created_at":"2018-04-06T12:12:48Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:48Z","id":"6PD20Uj8RWetLDUZ17jgXd","version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:42Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"created_at":"2018-04-10T14:39:43Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:51Z","deployed":false}],"created_at":"2018-04-10T14:39:42Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:42Z","id":"2T6RaPUWpO8jsWHVVNXvc","version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6PD20Uj8RWetLDUZ17jgXd","staging":false,"updated_at":"2018-04-06T12:12:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:50Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2T6RaPUWpO8jsWHVVNXvc","staging":false,"updated_at":"2018-04-10T14:39:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:43Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -382,15 +646,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4061'] + content-length: ['4056'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:54 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19149-FRA'] - x-timer: ['S1523016775.739143,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371193.755856,VS0,VE326'] 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 18c642e..11f5f7a 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_with_action.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_with_action.yml @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:56 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19139-FRA'] - x-timer: ['S1523016777.856259,VS0,VE135'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371195.519474,VS0,VE112'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,97 +32,361 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"247c2acf08f4ca029074976f10587c6a71fac3cc","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + Ansible Module Test","publish_key":"a05650fa2e24a3f186fdde87d846677b6179cb8d","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:39:55Z","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['512'] + content-length: ['510'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:57 GMT'] + date: ['Tue, 10 Apr 2018 14:39:55 GMT'] fastly-ratelimit-remaining: ['988'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523016777.051734,VS0,VE461'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371195.693841,VS0,VE433'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":1,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:12:57Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","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":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":1,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:39:55Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:39:55Z","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: ['1041'] + content-length: ['1038'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:57 GMT'] + date: ['Tue, 10 Apr 2018 14:39: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-fra19136-FRA'] - x-timer: ['S1523016778.572930,VS0,VE215'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371195.191618,VS0,VE423'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version + method: PUT + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/1/clone response: - body: {string: !!python/unicode '{"service_id":"6YjlkvnS6FxrLkXEB7bx2c","number":2}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:58 GMT'] + date: ['Tue, 10 Apr 2018 14:39:56 GMT'] fastly-ratelimit-remaining: ['987'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371196.788509,VS0,VE485'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371197.509947,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39: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-fra19145-FRA'] + x-timer: ['S1523371197.686326,VS0,VE391'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39: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-fra19150-FRA'] + x-timer: ['S1523371197.140789,VS0,VE384'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371198.767298,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371198.291375,VS0,VE111'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371198.466986,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:59 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371199.906219,VS0,VE379'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:39:59 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371199.443108,VS0,VE400'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19134-FRA'] + x-timer: ['S1523371200.907743,VS0,VE385'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19141-FRA'] + x-timer: ['S1523371200.487709,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19123-FRA'] - x-timer: ['S1523016778.853067,VS0,VE217'] + x-timer: ['S1523371201.671679,VS0,VE115'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/domain + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":2,"deleted_at":null,"created_at":"2018-04-06T12:12:58Z","updated_at":"2018-04-06T12:12:58Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"GqfF5W0xBGci91Iz0tFpu","version":2,"deleted_at":null,"created_at":"2018-04-10T14:40:01Z","updated_at":"2018-04-10T14:40:01Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['179'] + content-length: ['178'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:58 GMT'] + date: ['Tue, 10 Apr 2018 14:40:01 GMT'] fastly-ratelimit-remaining: ['986'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523016778.135468,VS0,VE452'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371201.851097,VS0,VE455'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +397,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/backend + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:12:58Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:12:58Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:40:01Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:40:01Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:58 GMT'] + date: ['Tue, 10 Apr 2018 14:40:01 GMT'] fastly-ratelimit-remaining: ['985'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523016779.652403,VS0,VE156'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371202.522003,VS0,VE468'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": "pass", "stale_ttl": 10, "name": "cache-settings-config-name", @@ -159,25 +423,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/cache_settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/cache_settings response: - body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"2","ttl":null,"deleted_at":null,"created_at":"2018-04-06T12:12:58Z","updated_at":"2018-04-06T12:12:58Z"}'} + body: {string: !!python/unicode '{"action":"pass","stale_ttl":10,"name":"cache-settings-config-name","cache_condition":"","service_id":"GqfF5W0xBGci91Iz0tFpu","version":"2","ttl":null,"deleted_at":null,"created_at":"2018-04-10T14:40:02Z","updated_at":"2018-04-10T14:40:02Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['242'] + content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:59 GMT'] + date: ['Tue, 10 Apr 2018 14:40:02 GMT'] fastly-ratelimit-remaining: ['984'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523016779.872175,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371202.155599,VS0,VE441'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -187,26 +451,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/header + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","version":"2","updated_at":"2018-04-06T12:12:59Z","deleted_at":null,"created_at":"2018-04-06T12:12:59Z"}'} + 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":"GqfF5W0xBGci91Iz0tFpu","version":"2","updated_at":"2018-04-10T14:40:02Z","deleted_at":null,"created_at":"2018-04-10T14:40:02Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['413'] + content-length: ['412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:59 GMT'] + date: ['Tue, 10 Apr 2018 14:40:02 GMT'] fastly-ratelimit-remaining: ['983'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523016779.085176,VS0,VE412'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371203.659577,VS0,VE159'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -214,103 +478,104 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/response_object + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:12:59Z","updated_at":"2018-04-06T12:12:59Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"GqfF5W0xBGci91Iz0tFpu","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:40:03Z","updated_at":"2018-04-10T14:40:03Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:12:59 GMT'] + date: ['Tue, 10 Apr 2018 14:40:03 GMT'] fastly-ratelimit-remaining: ['982'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523016780.673729,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371203.882636,VS0,VE437'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:00 GMT'] + date: ['Tue, 10 Apr 2018 14:40:03 GMT'] fastly-ratelimit-remaining: ['981'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523016780.890750,VS0,VE461'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371203.409474,VS0,VE445'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/activate + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:59Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:03Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:01 GMT'] + date: ['Tue, 10 Apr 2018 14:40:04 GMT'] fastly-ratelimit-remaining: ['980'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016781.513360,VS0,VE948'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371204.914637,VS0,VE906'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:04Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4065'] + content-length: ['4060'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:01 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19136-FRA'] - x-timer: ['S1523016782.554239,VS0,VE142'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371205.880517,VS0,VE136'] status: {code: 200, message: OK} - request: body: null @@ -319,33 +584,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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":""}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['686'] + content-length: ['683'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:01 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19134-FRA'] - x-timer: ['S1523016782.758937,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371205.084737,VS0,VE187'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:04Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -353,27 +618,27 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4065'] + content-length: ['4060'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:02 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19149-FRA'] - x-timer: ['S1523016782.969755,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371205.337654,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:04Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -381,15 +646,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4065'] + content-length: ['4060'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:02 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19129-FRA'] - x-timer: ['S1523016782.156977,VS0,VE116'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371206.535478,VS0,VE116'] 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 81f069d..97a7db9 100644 --- a/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml +++ b/tests/fixtures/cassettes/TestFastlyCacheSettings_test_fastly_cache_settings_without_stale_ttl.yml @@ -6,33 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":""}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['686'] + content-length: ['683'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:02 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19128-FRA'] - x-timer: ['S1523016782.395936,VS0,VE156'] + x-timer: ['S1523371206.778789,VS0,VE136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:04Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:12:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:04Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:39:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"10","ttl":null,"name":"cache-settings-config-name","action":"pass","cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,96 +40,72 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4065'] + content-length: ['4060'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:02 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19137-FRA'] - x-timer: ['S1523016783.616091,VS0,VE122'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:02 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016783.801736,VS0,VE119'] + x-timer: ['S1523371206.977425,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/2/clone + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/2/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:01Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:04Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['232'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:03 GMT'] + date: ['Tue, 10 Apr 2018 14:40:06 GMT'] fastly-ratelimit-remaining: ['979'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523016783.984345,VS0,VE211'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371206.160293,VS0,VE477'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/domain + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/domain response: - body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","created_at":"2018-04-06T12:12:58Z","comment":"","updated_at":"2018-04-06T12:12:58Z"}]'} + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","created_at":"2018-04-10T14:40:01Z","comment":"","updated_at":"2018-04-10T14:40:01Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['181'] + content-length: ['180'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:03 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19126-FRA'] - x-timer: ['S1523016783.260876,VS0,VE386'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371207.694382,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/healthcheck + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -139,21 +115,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:04 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19147-FRA'] - x-timer: ['S1523016784.710059,VS0,VE416'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371207.880901,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/condition + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/condition response: body: {string: !!python/unicode '[]'} headers: @@ -163,45 +139,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:04 GMT'] + date: ['Tue, 10 Apr 2018 14:40:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] - x-timer: ['S1523016784.280313,VS0,VE128'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371207.058029,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/backend + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:12:58Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:12:58Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:40:01Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:40:01Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['718'] + content-length: ['717'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:04 GMT'] + date: ['Tue, 10 Apr 2018 14:40:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523016785.509093,VS0,VE165'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371208.587804,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/director + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/director response: body: {string: !!python/unicode '[]'} headers: @@ -211,45 +187,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:05 GMT'] + date: ['Tue, 10 Apr 2018 14:40:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523016785.813735,VS0,VE387'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371208.773999,VS0,VE383'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/cache_settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/cache_settings response: - body: {string: !!python/unicode '[{"stale_ttl":"10","version":"3","ttl":null,"name":"cache-settings-config-name","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:12:58Z","action":"pass","updated_at":"2018-04-06T12:12:58Z"}]'} + body: {string: !!python/unicode '[{"stale_ttl":"10","version":"3","ttl":null,"name":"cache-settings-config-name","deleted_at":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","cache_condition":"","created_at":"2018-04-10T14:40:02Z","action":"pass","updated_at":"2018-04-10T14:40:02Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['246'] + content-length: ['245'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:05 GMT'] + date: ['Tue, 10 Apr 2018 14:40:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523016785.365661,VS0,VE400'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371208.422667,VS0,VE406'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/gzip + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -259,46 +235,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:06 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19141-FRA'] - x-timer: ['S1523016786.059492,VS0,VE403'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371209.044324,VS0,VE410'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/header + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/header response: - body: {string: !!python/unicode '[{"priority":"100","service_id":"6YjlkvnS6FxrLkXEB7bx2c","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:12:59Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:12:59Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"100","service_id":"GqfF5W0xBGci91Iz0tFpu","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:40:02Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:40:02Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['415'] + content-length: ['414'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:06 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19128-FRA'] - x-timer: ['S1523016787.675970,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371210.676807,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/request_settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -308,94 +284,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:07 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523016787.993327,VS0,VE113'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/response_object - response: - body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set - 200 status code","content":"","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:12:59Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:12:59Z"}]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['280'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:07 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19126-FRA'] - x-timer: ['S1523016787.338700,VS0,VE403'] + x-timer: ['S1523371210.857753,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/vcl + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/response_object response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:08 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016788.884656,VS0,VE121'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/snippet - response: - body: {string: !!python/unicode '[]'} + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set + 200 status code","content":"","deleted_at":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","cache_condition":"","created_at":"2018-04-10T14:40:03Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:40:03Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['279'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:08 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19127-FRA'] - x-timer: ['S1523016788.094522,VS0,VE116'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371211.511520,VS0,VE409'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/syslog + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -405,21 +333,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:08 GMT'] + date: ['Tue, 10 Apr 2018 14:40:11 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523016788.277749,VS0,VE379'] + x-timer: ['S1523371211.138311,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/domain/example8000.com + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/domain/example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -428,23 +356,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:09 GMT'] + date: ['Tue, 10 Apr 2018 14:40:11 GMT'] fastly-ratelimit-remaining: ['978'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016789.736389,VS0,VE424'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371211.331914,VS0,VE163'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/backend/localhost + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -453,23 +381,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:09 GMT'] + date: ['Tue, 10 Apr 2018 14:40:12 GMT'] fastly-ratelimit-remaining: ['977'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523016789.245891,VS0,VE186'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371212.553858,VS0,VE448'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/cache_settings/cache-settings-config-name + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/cache_settings/cache-settings-config-name response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -478,23 +406,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:09 GMT'] + date: ['Tue, 10 Apr 2018 14:40:12 GMT'] fastly-ratelimit-remaining: ['976'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523016790.552041,VS0,VE418'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371212.066358,VS0,VE424'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/header/Set%20Location%20header + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -503,23 +431,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:10 GMT'] + date: ['Tue, 10 Apr 2018 14:40:12 GMT'] fastly-ratelimit-remaining: ['975'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523016790.132907,VS0,VE427'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371213.599471,VS0,VE163'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/response_object/Set%20200%20status%20code + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/response_object/Set%20200%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -528,41 +456,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:11 GMT'] + date: ['Tue, 10 Apr 2018 14:40:12 GMT'] fastly-ratelimit-remaining: ['974'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523016791.831239,VS0,VE444'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371213.823760,VS0,VE163'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/domain + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":3,"deleted_at":null,"created_at":"2018-04-06T12:13:11Z","updated_at":"2018-04-06T12:13:11Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"GqfF5W0xBGci91Iz0tFpu","version":3,"deleted_at":null,"created_at":"2018-04-10T14:40:13Z","updated_at":"2018-04-10T14:40:13Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['179'] + content-length: ['178'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:11 GMT'] + date: ['Tue, 10 Apr 2018 14:40:13 GMT'] fastly-ratelimit-remaining: ['973'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523016791.430438,VS0,VE479'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371213.050039,VS0,VE193'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -573,25 +501,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/backend + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:12Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:12Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:40:13Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:40:13Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:12 GMT'] + date: ['Tue, 10 Apr 2018 14:40:13 GMT'] fastly-ratelimit-remaining: ['972'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523016792.011488,VS0,VE448'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371213.304968,VS0,VE424'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"action": null, "stale_ttl": 0, "name": "cache-settings-config-name", @@ -599,25 +527,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/cache_settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/cache_settings response: - body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"3","ttl":null,"deleted_at":null,"created_at":"2018-04-06T12:13:12Z","updated_at":"2018-04-06T12:13:12Z"}'} + body: {string: !!python/unicode '{"action":null,"stale_ttl":0,"name":"cache-settings-config-name","cache_condition":"","service_id":"GqfF5W0xBGci91Iz0tFpu","version":"3","ttl":null,"deleted_at":null,"created_at":"2018-04-10T14:40:14Z","updated_at":"2018-04-10T14:40:14Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['239'] + content-length: ['238'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:13 GMT'] + date: ['Tue, 10 Apr 2018 14:40:14 GMT'] fastly-ratelimit-remaining: ['971'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016793.644941,VS0,VE406'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371214.792582,VS0,VE413'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -627,26 +555,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/header + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","version":"3","updated_at":"2018-04-06T12:13:13Z","deleted_at":null,"created_at":"2018-04-06T12:13:13Z"}'} + 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":"GqfF5W0xBGci91Iz0tFpu","version":"3","updated_at":"2018-04-10T14:40:14Z","deleted_at":null,"created_at":"2018-04-10T14:40:14Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['413'] + content-length: ['412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:13 GMT'] + date: ['Tue, 10 Apr 2018 14:40:14 GMT'] fastly-ratelimit-remaining: ['970'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523016793.309416,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371214.269231,VS0,VE407'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -654,104 +582,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/response_object + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:13Z","updated_at":"2018-04-06T12:13:13Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"GqfF5W0xBGci91Iz0tFpu","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:40:14Z","updated_at":"2018-04-10T14:40:14Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:14 GMT'] + date: ['Tue, 10 Apr 2018 14:40:15 GMT'] fastly-ratelimit-remaining: ['969'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523016794.596391,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371215.884927,VS0,VE146'] 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/6YjlkvnS6FxrLkXEB7bx2c/version/3/settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:14 GMT'] + date: ['Tue, 10 Apr 2018 14:40:15 GMT'] fastly-ratelimit-remaining: ['968'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523016794.155740,VS0,VE439'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371215.092473,VS0,VE178'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/activate + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:13Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:14Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:15 GMT'] + date: ['Tue, 10 Apr 2018 14:40:15 GMT'] fastly-ratelimit-remaining: ['967'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016795.744396,VS0,VE848'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371215.332946,VS0,VE618'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4291'] + content-length: ['4285'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:16 GMT'] + date: ['Tue, 10 Apr 2018 14:40:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523016796.656271,VS0,VE409'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371216.017372,VS0,VE137'] status: {code: 200, message: OK} - request: body: null @@ -760,32 +687,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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":""}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['918'] + content-length: ['914'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:16 GMT'] + date: ['Tue, 10 Apr 2018 14:40:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523016796.176072,VS0,VE134'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371216.221077,VS0,VE403'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -793,42 +720,42 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4291'] + content-length: ['4285'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:16 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19122-FRA'] - x-timer: ['S1523016796.373667,VS0,VE109'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371217.790219,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4291'] + content-length: ['4285'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:16 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19136-FRA'] - x-timer: ['S1523016797.548578,VS0,VE385'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371217.280025,VS0,VE114'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml index 9bc0358..42537f3 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_tearDown.yml @@ -6,34 +6,34 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false},{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:14Z","deployed":false},{"testing":false,"number":4,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:42:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:05Z","comment":""}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1150'] + content-length: ['1145'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:46 GMT'] + date: ['Tue, 10 Apr 2018 14:42:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017426.969232,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371335.221469,VS0,VE403'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"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":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:14Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:42:05Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:14Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":4,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:42:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:05Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:42:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:05Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -42,48 +42,48 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4563'] + content-length: ['4556'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:46 GMT'] + date: ['Tue, 10 Apr 2018 14:42:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017426.171356,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371336.851136,VS0,VE186'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/deactivate + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:42:05Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:14Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['231'] + content-length: ['230'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:46 GMT'] - fastly-ratelimit-remaining: ['835'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:16 GMT'] + fastly-ratelimit-remaining: ['841'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017426.350886,VS0,VE492'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371336.099731,VS0,VE159'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -92,15 +92,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:47 GMT'] - fastly-ratelimit-remaining: ['834'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:16 GMT'] + fastly-ratelimit-remaining: ['840'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017427.976954,VS0,VE180'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371336.323331,VS0,VE426'] 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 7e15e08..f9e27f3 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_cache_condition.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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":""}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":""}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['918'] + content-length: ['914'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:31 GMT'] + date: ['Tue, 10 Apr 2018 14:42:04 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523017412.774393,VS0,VE146'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371325.730257,VS0,VE136'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:13:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:03Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:40:15Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[{"stale_ttl":"0","ttl":null,"name":"cache-settings-config-name","action":null,"cache_condition":""}],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -40,120 +40,72 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4291'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:32 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017412.982417,VS0,VE437'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] + content-length: ['4285'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:32 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19133-FRA'] - x-timer: ['S1523017413.565993,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371325.929680,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/3/clone - response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":4,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['232'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:33 GMT'] - fastly-ratelimit-remaining: ['848'] - fastly-ratelimit-reset: ['1523019600'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017413.746755,VS0,VE471'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/domain + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/3/clone response: - body: {string: !!python/unicode '[{"version":4,"name":"example8000.com","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","created_at":"2018-04-06T12:13:11Z","comment":"","updated_at":"2018-04-06T12:13:11Z"}]'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":4,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['181'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:33 GMT'] + date: ['Tue, 10 Apr 2018 14:42:05 GMT'] + fastly-ratelimit-remaining: ['854'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017413.400042,VS0,VE425'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371325.104577,VS0,VE476'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/healthcheck + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/domain response: - body: {string: !!python/unicode '[]'} + body: {string: !!python/unicode '[{"version":4,"name":"example8000.com","deleted_at":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","created_at":"2018-04-10T14:40:13Z","comment":"","updated_at":"2018-04-10T14:40:13Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['180'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:34 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19127-FRA'] - x-timer: ['S1523017414.947081,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371326.821501,VS0,VE379'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/condition + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -163,45 +115,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23: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-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523017414.128795,VS0,VE384'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/backend - response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:12Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:12Z","comment":""}]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['718'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:35 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19132-FRA'] - x-timer: ['S1523017415.656720,VS0,VE412'] + x-timer: ['S1523371326.451282,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/director + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/condition response: body: {string: !!python/unicode '[]'} headers: @@ -211,45 +139,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:35 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19133-FRA'] - x-timer: ['S1523017415.283090,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371327.626130,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/cache_settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/backend response: - body: {string: !!python/unicode '[{"stale_ttl":"0","version":"4","ttl":null,"name":"cache-settings-config-name","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:13:12Z","action":null,"updated_at":"2018-04-06T12:13:12Z"}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:40:13Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:40:13Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['243'] + content-length: ['717'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:35 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19143-FRA'] - x-timer: ['S1523017415.467026,VS0,VE411'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371327.807002,VS0,VE125'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/gzip + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/director response: body: {string: !!python/unicode '[]'} headers: @@ -259,46 +187,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:36 GMT'] + date: ['Tue, 10 Apr 2018 14:42:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523017416.947605,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371327.998989,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/header + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/cache_settings response: - body: {string: !!python/unicode '[{"priority":"100","service_id":"6YjlkvnS6FxrLkXEB7bx2c","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:13Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"4","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:13Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"stale_ttl":"0","version":"4","ttl":null,"name":"cache-settings-config-name","deleted_at":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","cache_condition":"","created_at":"2018-04-10T14:40:14Z","action":null,"updated_at":"2018-04-10T14:40:14Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['415'] + content-length: ['242'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:36 GMT'] + date: ['Tue, 10 Apr 2018 14:42:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017417.537990,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371327.174661,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/request_settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -308,46 +235,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:37 GMT'] + date: ['Tue, 10 Apr 2018 14:42:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017417.721565,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371327.363367,VS0,VE387'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/response_object + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/header response: - body: {string: !!python/unicode '[{"response":"Ok","version":"4","status":"200","name":"Set - 200 status code","content":"","deleted_at":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","cache_condition":"","created_at":"2018-04-06T12:13:13Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:13Z"}]'} + body: {string: !!python/unicode '[{"priority":"100","service_id":"GqfF5W0xBGci91Iz0tFpu","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:40:14Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"4","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:40:14Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['280'] + content-length: ['414'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:37 GMT'] + date: ['Tue, 10 Apr 2018 14:42:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017417.370197,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371328.812906,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/vcl + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -357,45 +284,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:37 GMT'] + date: ['Tue, 10 Apr 2018 14:42:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523017418.841434,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371328.994355,VS0,VE382'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/snippet + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/response_object response: - body: {string: !!python/unicode '[]'} + body: {string: !!python/unicode '[{"response":"Ok","version":"4","status":"200","name":"Set + 200 status code","content":"","deleted_at":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","cache_condition":"","created_at":"2018-04-10T14:40:14Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:40:14Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['279'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:38 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19135-FRA'] - x-timer: ['S1523017418.025345,VS0,VE380'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371329.761948,VS0,VE390'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/syslog + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -405,21 +333,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:38 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19143-FRA'] - x-timer: ['S1523017418.488457,VS0,VE402'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371329.377327,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/domain/example8000.com + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/domain/example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -428,23 +356,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:39 GMT'] - fastly-ratelimit-remaining: ['847'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:09 GMT'] + fastly-ratelimit-remaining: ['853'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523017419.959490,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371330.553433,VS0,VE423'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/backend/localhost + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -453,23 +381,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:39 GMT'] - fastly-ratelimit-remaining: ['846'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:10 GMT'] + fastly-ratelimit-remaining: ['852'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523017420.674158,VS0,VE164'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371330.038058,VS0,VE445'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/cache_settings/cache-settings-config-name + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/cache_settings/cache-settings-config-name response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -478,23 +406,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:40 GMT'] - fastly-ratelimit-remaining: ['845'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:11 GMT'] + fastly-ratelimit-remaining: ['851'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017420.903169,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371331.627766,VS0,VE428'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/header/Set%20Location%20header + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -503,23 +431,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:40 GMT'] - fastly-ratelimit-remaining: ['844'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:11 GMT'] + fastly-ratelimit-remaining: ['850'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017420.413068,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371331.117365,VS0,VE428'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/response_object/Set%20200%20status%20code + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/response_object/Set%20200%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -528,41 +456,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:41 GMT'] - fastly-ratelimit-remaining: ['843'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:11 GMT'] + fastly-ratelimit-remaining: ['849'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017421.130182,VS0,VE422'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371332.605642,VS0,VE158'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/domain + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":4,"deleted_at":null,"created_at":"2018-04-06T12:23:41Z","updated_at":"2018-04-06T12:23:41Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"GqfF5W0xBGci91Iz0tFpu","version":4,"deleted_at":null,"created_at":"2018-04-10T14:42:11Z","updated_at":"2018-04-10T14:42:11Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['179'] + content-length: ['178'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:41 GMT'] - fastly-ratelimit-remaining: ['842'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:12 GMT'] + fastly-ratelimit-remaining: ['848'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017422.669830,VS0,VE287'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371332.828375,VS0,VE192'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "CACHE", "name": @@ -570,26 +498,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/condition + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"CACHE","name":"condition-name","statement":"req.url - ~ \"^/some_asset.js\"","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"4","deleted_at":null,"created_at":"2018-04-06T12:23:42Z","updated_at":"2018-04-06T12:23:42Z"}'} + ~ \"^/some_asset.js\"","service_id":"GqfF5W0xBGci91Iz0tFpu","version":"4","deleted_at":null,"created_at":"2018-04-10T14:42:12Z","updated_at":"2018-04-10T14:42:12Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['254'] + content-length: ['253'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:42 GMT'] - fastly-ratelimit-remaining: ['841'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:12 GMT'] + fastly-ratelimit-remaining: ['847'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017422.140939,VS0,VE407'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371332.082848,VS0,VE392'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -600,25 +528,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/backend + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:42Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:42Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"GqfF5W0xBGci91Iz0tFpu","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:42:12Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:42:12Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:42 GMT'] - fastly-ratelimit-remaining: ['840'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:12 GMT'] + fastly-ratelimit-remaining: ['846'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017423.659963,VS0,VE325'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371333.540975,VS0,VE429'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -628,26 +556,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/header + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","version":"4","updated_at":"2018-04-06T12:23:43Z","deleted_at":null,"created_at":"2018-04-06T12:23:43Z"}'} + 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":"GqfF5W0xBGci91Iz0tFpu","version":"4","updated_at":"2018-04-10T14:42:13Z","deleted_at":null,"created_at":"2018-04-10T14:42:13Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['420'] + content-length: ['419'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:43 GMT'] - fastly-ratelimit-remaining: ['839'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:13 GMT'] + fastly-ratelimit-remaining: ['845'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017423.051048,VS0,VE442'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371333.033066,VS0,VE404'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -655,104 +583,105 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/response_object + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"6YjlkvnS6FxrLkXEB7bx2c","version":"4","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:43Z","updated_at":"2018-04-06T12:23:43Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"GqfF5W0xBGci91Iz0tFpu","version":"4","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:42:13Z","updated_at":"2018-04-10T14:42:13Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:43 GMT'] - fastly-ratelimit-remaining: ['838'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:13 GMT'] + fastly-ratelimit-remaining: ['844'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017424.638681,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371334.566144,VS0,VE144'] 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/6YjlkvnS6FxrLkXEB7bx2c/version/4/settings + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"6YjlkvnS6FxrLkXEB7bx2c"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"GqfF5W0xBGci91Iz0tFpu"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:44 GMT'] - fastly-ratelimit-remaining: ['837'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:13 GMT'] + fastly-ratelimit-remaining: ['843'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017424.855351,VS0,VE434'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371334.767100,VS0,VE178'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/version/4/activate + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:43Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:42:05Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:13Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:45 GMT'] - fastly-ratelimit-remaining: ['836'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:14 GMT'] + fastly-ratelimit-remaining: ['842'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523017424.356541,VS0,VE865'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371334.007837,VS0,VE903'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/6YjlkvnS6FxrLkXEB7bx2c/details + uri: https://api.fastly.com/service/GqfF5W0xBGci91Iz0tFpu/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":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:12:57Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:12:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:13:03Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"created_at":"2018-04-06T12:23:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:45Z","deployed":false}],"created_at":"2018-04-06T12:12:57Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:12:57Z","id":"6YjlkvnS6FxrLkXEB7bx2c","version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"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":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:39:55Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:39:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:15Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:40:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:14Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"created_at":"2018-04-10T14:42:05Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:14Z","deployed":false}],"created_at":"2018-04-10T14:39:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:39:55Z","id":"GqfF5W0xBGci91Iz0tFpu","version":{"testing":false,"number":4,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:42:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:05Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"6YjlkvnS6FxrLkXEB7bx2c","staging":false,"updated_at":"2018-04-06T12:23:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"GqfF5W0xBGci91Iz0tFpu","staging":false,"updated_at":"2018-04-10T14:42:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:05Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/some_asset.js\"","comment":"","name":"condition-name","type":"CACHE"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"public, max-age=86400\"","name":"Set cache control header","substitution":"","ignore_if_set":"0","cache_condition":"condition-name","request_condition":null,"regex":"","response_condition":null,"action":"set","type":"cache","dst":"http.Cache-Control"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4563'] + content-length: ['4556'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:45 GMT'] + date: ['Tue, 10 Apr 2018 14:42:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017425.333608,VS0,VE434'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371335.997997,VS0,VE141'] 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 ba0b152..e594366 100644 --- a/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml +++ b/tests/fixtures/cassettes/TestFastlyCondition_test_fastly_request_condition.yml @@ -10,19 +10,18 @@ interactions: service ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:47 GMT'] + date: ['Tue, 10 Apr 2018 14:42:17 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-fra19140-FRA'] - x-timer: ['S1523017427.232138,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371337.903117,VS0,VE402'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,32 +31,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"e32f47708d573b2eefac03098781286345fd8e14","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:23:47Z","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} + Ansible Module Test","publish_key":"af243ef2a26aae70af378f1b1bd78b12fcd2fa1e","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:42:17Z","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:47 GMT'] - fastly-ratelimit-remaining: ['833'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:17 GMT'] + fastly-ratelimit-remaining: ['839'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523017427.413249,VS0,VE405'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371338.520602,VS0,VE399'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/details + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":1,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:47Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:47Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH","version":{"testing":false,"number":1,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:17Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:42:17Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] @@ -65,64 +64,328 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:48 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19136-FRA'] + x-timer: ['S1523371338.984933,VS0,VE147'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/1/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:18 GMT'] + fastly-ratelimit-remaining: ['838'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371338.196672,VS0,VE480'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19132-FRA'] + x-timer: ['S1523371339.778550,VS0,VE398'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19137-FRA'] + x-timer: ['S1523371339.401103,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19133-FRA'] + x-timer: ['S1523371340.579629,VS0,VE405'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:20 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371340.047276,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523017428.880737,VS0,VE153'] + x-timer: ['S1523371340.230822,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/cache_settings response: - body: {string: !!python/unicode '{"service_id":"2m3lccbth5ClCGg3shAEzO","number":2}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:48 GMT'] - fastly-ratelimit-remaining: ['832'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:20 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371340.415369,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523017428.097885,VS0,VE405'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371341.593561,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:20 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371341.776068,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:21 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371341.959100,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:21 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371341.137151,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:21 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371341.318227,VS0,VE119'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/domain + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2m3lccbth5ClCGg3shAEzO","version":2,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","updated_at":"2018-04-06T12:23:48Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2rSSoWgMNhhruWFXllOZSH","version":2,"deleted_at":null,"created_at":"2018-04-10T14:42:21Z","updated_at":"2018-04-10T14:42:21Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:49 GMT'] - fastly-ratelimit-remaining: ['831'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:22 GMT'] + fastly-ratelimit-remaining: ['837'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017429.568199,VS0,VE479'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371341.497006,VS0,VE512'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "priority": "0", "type": "REQUEST", "name": @@ -130,26 +393,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/condition + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/condition response: body: {string: !!python/unicode '{"comment":"","priority":"0","type":"REQUEST","name":"condition-name","statement":"req.url - ~ \"^/robots.txt\"","service_id":"2m3lccbth5ClCGg3shAEzO","version":"2","deleted_at":null,"created_at":"2018-04-06T12:23:49Z","updated_at":"2018-04-06T12:23:49Z"}'} + ~ \"^/robots.txt\"","service_id":"2rSSoWgMNhhruWFXllOZSH","version":"2","deleted_at":null,"created_at":"2018-04-10T14:42:22Z","updated_at":"2018-04-10T14:42:22Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['253'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:49 GMT'] - fastly-ratelimit-remaining: ['830'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:22 GMT'] + fastly-ratelimit-remaining: ['836'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523017429.274206,VS0,VE418'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371342.120061,VS0,VE125'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -160,25 +423,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/backend + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2m3lccbth5ClCGg3shAEzO","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:50Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:50Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2rSSoWgMNhhruWFXllOZSH","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:42:22Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:42:22Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:50 GMT'] - fastly-ratelimit-remaining: ['829'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:22 GMT'] + fastly-ratelimit-remaining: ['835'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523017430.817546,VS0,VE457'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371342.310288,VS0,VE462'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -188,26 +451,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/header + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","version":"2","updated_at":"2018-04-06T12:23:50Z","deleted_at":null,"created_at":"2018-04-06T12:23:50Z"}'} + 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":"2rSSoWgMNhhruWFXllOZSH","version":"2","updated_at":"2018-04-10T14:42:23Z","deleted_at":null,"created_at":"2018-04-10T14:42:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:50 GMT'] - fastly-ratelimit-remaining: ['828'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:23 GMT'] + fastly-ratelimit-remaining: ['834'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] - x-timer: ['S1523017430.336994,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371343.904303,VS0,VE402'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -215,88 +478,88 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/response_object + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"2m3lccbth5ClCGg3shAEzO","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:51Z","updated_at":"2018-04-06T12:23:51Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"2rSSoWgMNhhruWFXllOZSH","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:42:23Z","updated_at":"2018-04-10T14:42:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:51 GMT'] - fastly-ratelimit-remaining: ['827'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:23 GMT'] + fastly-ratelimit-remaining: ['833'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017431.804236,VS0,VE414'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371343.372891,VS0,VE435'] 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/2m3lccbth5ClCGg3shAEzO/version/2/settings + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2m3lccbth5ClCGg3shAEzO"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2rSSoWgMNhhruWFXllOZSH"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:51 GMT'] - fastly-ratelimit-remaining: ['826'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:24 GMT'] + fastly-ratelimit-remaining: ['832'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523017431.364253,VS0,VE460'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371344.870792,VS0,VE471'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/activate + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:51Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:23Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:52 GMT'] - fastly-ratelimit-remaining: ['825'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:25 GMT'] + fastly-ratelimit-remaining: ['831'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017432.893193,VS0,VE977'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371344.403121,VS0,VE913'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/details + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"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":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:25Z","deployed":false}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH","version":{"testing":false,"number":2,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -307,13 +570,13 @@ interactions: connection: [keep-alive] content-length: ['4083'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:53 GMT'] + date: ['Tue, 10 Apr 2018 14:42:25 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017433.933075,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371345.461312,VS0,VE139'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml b/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml index abac8c1..52ca7e5 100644 --- a/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyDirectors_tearDown.yml @@ -6,7 +6,7 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":""}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false},{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":""}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,74 +14,73 @@ interactions: connection: [keep-alive] content-length: ['918'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:07 GMT'] + date: ['Tue, 10 Apr 2018 14:42:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017447.022948,VS0,VE142'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371357.684971,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/details + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH","version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:07 GMT'] + date: ['Tue, 10 Apr 2018 14:42:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523017447.227186,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371357.901982,VS0,VE399'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/deactivate + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:07 GMT'] - fastly-ratelimit-remaining: ['810'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:37 GMT'] + fastly-ratelimit-remaining: ['816'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017447.426823,VS0,VE201'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371357.367812,VS0,VE463'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:07 GMT'] - fastly-ratelimit-remaining: ['809'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:38 GMT'] + fastly-ratelimit-remaining: ['815'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523017448.692482,VS0,VE133'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371358.992939,VS0,VE424'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml b/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml index 5951d22..65a1eff 100644 --- a/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml +++ b/tests/fixtures/cassettes/TestFastlyDirectors_test_fastly_director_with_one_backend.yml @@ -6,7 +6,7 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":""}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"number":2,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:18Z","comment":""}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,26 +14,26 @@ interactions: connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:53 GMT'] + date: ['Tue, 10 Apr 2018 14:42:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523017433.191545,VS0,VE145'] + x-timer: ['S1523371346.729100,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/details + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"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":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:25Z","deployed":false}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH","version":{"testing":false,"number":2,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:23:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[{"priority":"0","statement":"req.url ~ \"^/robots.txt\"","comment":"","name":"condition-name","type":"REQUEST"}],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} @@ -44,72 +44,48 @@ interactions: connection: [keep-alive] content-length: ['4083'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:53 GMT'] + date: ['Tue, 10 Apr 2018 14:42:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017433.401424,VS0,VE116'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23: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-fra19133-FRA'] - x-timer: ['S1523017434.582376,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371346.295973,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/2/clone + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/2/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:52Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:25Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:54 GMT'] - fastly-ratelimit-remaining: ['824'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:26 GMT'] + fastly-ratelimit-remaining: ['830'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017434.076154,VS0,VE477'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371346.478530,VS0,VE204'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/domain + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/domain response: - body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"2m3lccbth5ClCGg3shAEzO","created_at":"2018-04-06T12:23:48Z","comment":"","updated_at":"2018-04-06T12:23:48Z"}]'} + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"2rSSoWgMNhhruWFXllOZSH","created_at":"2018-04-10T14:42:21Z","comment":"","updated_at":"2018-04-10T14:42:21Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -117,21 +93,21 @@ interactions: connection: [keep-alive] content-length: ['181'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:54 GMT'] + date: ['Tue, 10 Apr 2018 14:42:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017435.617904,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371347.757236,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/healthcheck + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -141,24 +117,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:55 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19137-FRA'] - x-timer: ['S1523017435.794087,VS0,VE409'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371347.949626,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/condition + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/condition response: - body: {string: !!python/unicode '[{"priority":"0","version":"3","name":"condition-name","deleted_at":null,"service_id":"2m3lccbth5ClCGg3shAEzO","created_at":"2018-04-06T12:23:49Z","comment":"","statement":"req.url - ~ \"^/robots.txt\"","updated_at":"2018-04-06T12:23:49Z","type":"REQUEST"}]'} + body: {string: !!python/unicode '[{"priority":"0","version":"3","name":"condition-name","deleted_at":null,"service_id":"2rSSoWgMNhhruWFXllOZSH","created_at":"2018-04-10T14:42:22Z","comment":"","statement":"req.url + ~ \"^/robots.txt\"","updated_at":"2018-04-10T14:42:22Z","type":"REQUEST"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -166,23 +142,23 @@ interactions: connection: [keep-alive] content-length: ['255'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:55 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19150-FRA'] - x-timer: ['S1523017435.267902,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371347.149421,VS0,VE284'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/backend + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:23:50Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"2m3lccbth5ClCGg3shAEzO","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:23:50Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:42:22Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"2rSSoWgMNhhruWFXllOZSH","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:42:22Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -190,21 +166,21 @@ interactions: connection: [keep-alive] content-length: ['718'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:55 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19130-FRA'] - x-timer: ['S1523017435.458495,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371348.562853,VS0,VE254'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/director + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/director response: body: {string: !!python/unicode '[]'} headers: @@ -214,21 +190,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:55 GMT'] + date: ['Tue, 10 Apr 2018 14:42:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017436.659798,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371348.883987,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/cache_settings + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -238,21 +214,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:55 GMT'] + date: ['Tue, 10 Apr 2018 14:42:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017436.849315,VS0,VE116'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371348.086850,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/gzip + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -262,24 +238,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:56 GMT'] + date: ['Tue, 10 Apr 2018 14:42:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] - x-timer: ['S1523017436.028158,VS0,VE409'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371348.271732,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/header + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/header response: - body: {string: !!python/unicode '[{"priority":"100","service_id":"2m3lccbth5ClCGg3shAEzO","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:23:50Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:23:50Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"100","service_id":"2rSSoWgMNhhruWFXllOZSH","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:42:23Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:42:23Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -287,21 +263,21 @@ interactions: connection: [keep-alive] content-length: ['415'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:56 GMT'] + date: ['Tue, 10 Apr 2018 14:42:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017437.587887,VS0,VE406'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371349.805887,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/request_settings + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -311,24 +287,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:57 GMT'] + date: ['Tue, 10 Apr 2018 14:42:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523017437.214511,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371349.996906,VS0,VE409'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/response_object + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/response_object response: body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set - 200 status code","content":"","deleted_at":null,"service_id":"2m3lccbth5ClCGg3shAEzO","cache_condition":"","created_at":"2018-04-06T12:23:51Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:23:51Z"}]'} + 200 status code","content":"","deleted_at":null,"service_id":"2rSSoWgMNhhruWFXllOZSH","cache_condition":"","created_at":"2018-04-10T14:42:23Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:42:23Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -336,69 +312,21 @@ interactions: connection: [keep-alive] content-length: ['280'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23: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-fra19147-FRA'] - x-timer: ['S1523017437.397784,VS0,VE128'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/vcl - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23: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-fra19133-FRA'] - x-timer: ['S1523017438.589191,VS0,VE405'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/snippet - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:58 GMT'] + date: ['Tue, 10 Apr 2018 14:42:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017438.058526,VS0,VE431'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371349.468737,VS0,VE131'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/syslog + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -408,21 +336,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:58 GMT'] + date: ['Tue, 10 Apr 2018 14:42:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017439.554477,VS0,VE423'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371350.664450,VS0,VE380'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/domain/example8000.com + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/domain/example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -431,23 +359,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:59 GMT'] - fastly-ratelimit-remaining: ['823'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:30 GMT'] + fastly-ratelimit-remaining: ['829'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017439.093964,VS0,VE517'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371350.107823,VS0,VE425'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/condition/condition-name + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/condition/condition-name response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -456,23 +384,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:00 GMT'] - fastly-ratelimit-remaining: ['822'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:30 GMT'] + fastly-ratelimit-remaining: ['828'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523017440.722360,VS0,VE427'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371351.595344,VS0,VE403'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/backend/localhost + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -481,23 +409,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:00 GMT'] - fastly-ratelimit-remaining: ['821'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:31 GMT'] + fastly-ratelimit-remaining: ['827'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017440.214759,VS0,VE428'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371351.318141,VS0,VE172'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/header/Set%20Location%20header + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -506,23 +434,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:01 GMT'] - fastly-ratelimit-remaining: ['820'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:31 GMT'] + fastly-ratelimit-remaining: ['826'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017441.708054,VS0,VE466'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371352.550335,VS0,VE431'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/response_object/Set%20200%20status%20code + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/response_object/Set%20200%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -531,41 +459,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:01 GMT'] - fastly-ratelimit-remaining: ['819'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:32 GMT'] + fastly-ratelimit-remaining: ['825'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017441.393387,VS0,VE421'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371352.047037,VS0,VE166'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/domain + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"deleted_at":null,"created_at":"2018-04-06T12:24:02Z","updated_at":"2018-04-06T12:24:02Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"2rSSoWgMNhhruWFXllOZSH","version":3,"deleted_at":null,"created_at":"2018-04-10T14:42:32Z","updated_at":"2018-04-10T14:42:32Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:02 GMT'] - fastly-ratelimit-remaining: ['818'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:32 GMT'] + fastly-ratelimit-remaining: ['824'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017442.878651,VS0,VE469'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371352.271601,VS0,VE489'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -576,25 +504,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/backend + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:02Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:02Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2rSSoWgMNhhruWFXllOZSH","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:42:33Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:42:33Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:02 GMT'] - fastly-ratelimit-remaining: ['817'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:33 GMT'] + fastly-ratelimit-remaining: ['823'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523017442.438506,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371353.818553,VS0,VE450'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "retries": 5, "capacity": 100, "shield": @@ -602,50 +530,50 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/director + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/director response: - body: {string: !!python/unicode '{"comment":"","retries":5,"capacity":100,"shield":null,"backends":[],"quorum":75,"type":4,"name":"client_director","service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"deleted_at":null,"created_at":"2018-04-06T12:24:03Z","updated_at":"2018-04-06T12:24:03Z"}'} + body: {string: !!python/unicode '{"comment":"","retries":5,"capacity":100,"shield":null,"backends":[],"quorum":75,"type":4,"name":"client_director","service_id":"2rSSoWgMNhhruWFXllOZSH","version":3,"deleted_at":null,"created_at":"2018-04-10T14:42:33Z","updated_at":"2018-04-10T14:42:33Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['255'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:03 GMT'] - fastly-ratelimit-remaining: ['816'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:33 GMT'] + fastly-ratelimit-remaining: ['822'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523017443.672935,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371353.333819,VS0,VE145'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/director/client_director/backend/localhost + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/director/client_director/backend/localhost response: - body: {string: !!python/unicode '{"service_id":"2m3lccbth5ClCGg3shAEzO","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2018-04-06T12:24:03Z","deleted_at":null,"updated_at":"2018-04-06T12:24:03Z"}'} + body: {string: !!python/unicode '{"service_id":"2rSSoWgMNhhruWFXllOZSH","version":3,"director_name":"client_director","backend_name":"localhost","created_at":"2018-04-10T14:42:33Z","deleted_at":null,"updated_at":"2018-04-10T14:42:33Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['202'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:03 GMT'] - fastly-ratelimit-remaining: ['815'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:33 GMT'] + fastly-ratelimit-remaining: ['821'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523017443.149163,VS0,VE434'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371354.547605,VS0,VE146'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -655,26 +583,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/header + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","version":"3","updated_at":"2018-04-06T12:24:03Z","deleted_at":null,"created_at":"2018-04-06T12:24:03Z"}'} + 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":"2rSSoWgMNhhruWFXllOZSH","version":"3","updated_at":"2018-04-10T14:42:34Z","deleted_at":null,"created_at":"2018-04-10T14:42:34Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:03 GMT'] - fastly-ratelimit-remaining: ['814'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:34 GMT'] + fastly-ratelimit-remaining: ['820'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017444.647262,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371354.754257,VS0,VE436'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -682,103 +610,104 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/response_object + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"2m3lccbth5ClCGg3shAEzO","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:04Z","updated_at":"2018-04-06T12:24:04Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"2rSSoWgMNhhruWFXllOZSH","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:42:34Z","updated_at":"2018-04-10T14:42:34Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:04 GMT'] - fastly-ratelimit-remaining: ['813'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:34 GMT'] + fastly-ratelimit-remaining: ['819'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017444.866028,VS0,VE413'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371354.311106,VS0,VE430'] 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/2m3lccbth5ClCGg3shAEzO/version/3/settings + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"2m3lccbth5ClCGg3shAEzO"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"2rSSoWgMNhhruWFXllOZSH"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:04 GMT'] - fastly-ratelimit-remaining: ['812'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:35 GMT'] + fastly-ratelimit-remaining: ['818'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017444.486252,VS0,VE436'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371355.859869,VS0,VE174'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/version/3/activate + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:04Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:34Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:05 GMT'] - fastly-ratelimit-remaining: ['811'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:35 GMT'] + fastly-ratelimit-remaining: ['817'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523017445.993062,VS0,VE890'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371355.096056,VS0,VE641'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/details + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH","version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:06 GMT'] + date: ['Tue, 10 Apr 2018 14:42:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017446.947770,VS0,VE412'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371356.905016,VS0,VE143'] status: {code: 200, message: OK} - request: body: null @@ -787,7 +716,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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":""}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false},{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":""}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -795,25 +724,25 @@ interactions: connection: [keep-alive] content-length: ['918'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:06 GMT'] + date: ['Tue, 10 Apr 2018 14:42:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017446.423005,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371356.109978,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/details + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH","version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -823,25 +752,25 @@ interactions: connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:06 GMT'] + date: ['Tue, 10 Apr 2018 14:42:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017447.627006,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371356.312364,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2m3lccbth5ClCGg3shAEzO/details + uri: https://api.fastly.com/service/2rSSoWgMNhhruWFXllOZSH/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":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:47Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"created_at":"2018-04-06T12:23:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:05Z","deployed":false}],"created_at":"2018-04-06T12:23:47Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:47Z","id":"2m3lccbth5ClCGg3shAEzO","version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:17Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"created_at":"2018-04-10T14:42:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:35Z","deployed":false}],"created_at":"2018-04-10T14:42:17Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:17Z","id":"2rSSoWgMNhhruWFXllOZSH","version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2m3lccbth5ClCGg3shAEzO","staging":false,"updated_at":"2018-04-06T12:24:05Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-06T12:24:03Z","backends":["localhost"],"comment":"","updated_at":"2018-04-06T12:24:03Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2rSSoWgMNhhruWFXllOZSH","staging":false,"updated_at":"2018-04-10T14:42:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[{"retries":5,"location":null,"name":"client_director","deleted_at":null,"capacity":100,"created_at":"2018-04-10T14:42:33Z","backends":["localhost"],"comment":"","updated_at":"2018-04-10T14:42:33Z","type":4,"quorum":75}],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -851,13 +780,13 @@ interactions: connection: [keep-alive] content-length: ['4529'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:06 GMT'] + date: ['Tue, 10 Apr 2018 14:42:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523017447.811984,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371356.484987,VS0,VE110'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml index c9654d9..7251fd9 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_tearDown.yml @@ -6,85 +6,85 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false},{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":""}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:53Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:53Z","deployed":false},{"testing":false,"number":2,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"updated_at":"2018-04-10T14:44:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:54Z","comment":""}],"created_at":"2018-04-10T14:43:53Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:53Z","id":"4bFaco6pOwQ1VtudAhjnWf"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:15 GMT'] + date: ['Tue, 10 Apr 2018 14:44:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017515.496113,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371442.958391,VS0,VE169'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/details + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/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":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:14Z","deployed":false}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t","version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","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":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:53Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:44:01Z","deployed":false}],"created_at":"2018-04-10T14:43:53Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:53Z","id":"4bFaco6pOwQ1VtudAhjnWf","version":{"testing":false,"number":2,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"updated_at":"2018-04-10T14:44:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-10T14:43:59Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-10T14:43:59Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","content_types":"text/html + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"updated_at":"2018-04-10T14:44:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-10T14:43:59Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-10T14:43:59Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4311'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:15 GMT'] + date: ['Tue, 10 Apr 2018 14:44:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017516.699719,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371442.188404,VS0,VE531'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/deactivate + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:14Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:44:01Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:16 GMT'] - fastly-ratelimit-remaining: ['724'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:44:03 GMT'] + fastly-ratelimit-remaining: ['730'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523017516.886246,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371443.782320,VS0,VE407'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -93,15 +93,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:16 GMT'] - fastly-ratelimit-remaining: ['723'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:44:03 GMT'] + fastly-ratelimit-remaining: ['729'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017517.595367,VS0,VE132'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371443.254885,VS0,VE405'] 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 cbcfe8c..d5cf74e 100644 --- a/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml +++ b/tests/fixtures/cassettes/TestFastlyGzip_test_fastly_gzip.yml @@ -14,14 +14,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:10 GMT'] + date: ['Tue, 10 Apr 2018 14:43:53 GMT'] status: [404 Not Found] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523017510.330418,VS0,VE401'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371433.448148,VS0,VE113'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,32 +31,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"7096121909586a0426b87c292cc69f98dfee7b20","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t"}'} + Ansible Module Test","publish_key":"d574ea3ae68be844003cd99c32c755dd4f23a9ae","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:53Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:53Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:43:53Z","comment":"","updated_at":"2018-04-10T14:43:53Z","id":"4bFaco6pOwQ1VtudAhjnWf"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:11 GMT'] - fastly-ratelimit-remaining: ['733'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:53 GMT'] + fastly-ratelimit-remaining: ['739'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017511.795760,VS0,VE411'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371434.625620,VS0,VE135'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/details + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/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":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t","version":{"testing":false,"number":1,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:11Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","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":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:53Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:53Z","deployed":false}],"created_at":"2018-04-10T14:43:53Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:53Z","id":"4bFaco6pOwQ1VtudAhjnWf","version":{"testing":false,"number":1,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"updated_at":"2018-04-10T14:43:53Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:43:53Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] @@ -64,64 +64,328 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:11 GMT'] + date: ['Tue, 10 Apr 2018 14:43:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017511.271285,VS0,VE450'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371434.822945,VS0,VE450'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version + method: PUT + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/1/clone response: - body: {string: !!python/unicode '{"service_id":"4HqdsSuKcvS6sTjHYzXH7t","number":2}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:53Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:53Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:11 GMT'] - fastly-ratelimit-remaining: ['732'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:54 GMT'] + fastly-ratelimit-remaining: ['738'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523017512.784937,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371434.332075,VS0,VE532'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19139-FRA'] + x-timer: ['S1523371435.922202,VS0,VE409'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19142-FRA'] + x-timer: ['S1523371435.397973,VS0,VE386'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19138-FRA'] + x-timer: ['S1523371436.847969,VS0,VE117'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371436.026549,VS0,VE132'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371436.226010,VS0,VE128'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:56 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371436.417054,VS0,VE123'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19135-FRA'] + x-timer: ['S1523371437.596041,VS0,VE406'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19137-FRA'] + x-timer: ['S1523371437.166342,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19134-FRA'] + x-timer: ['S1523371438.795136,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371438.974666,VS0,VE123'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:58 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371438.159905,VS0,VE114'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/domain + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":2,"deleted_at":null,"created_at":"2018-04-06T12:25:12Z","updated_at":"2018-04-06T12:25:12Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4bFaco6pOwQ1VtudAhjnWf","version":2,"deleted_at":null,"created_at":"2018-04-10T14:43:58Z","updated_at":"2018-04-10T14:43:58Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:12 GMT'] - fastly-ratelimit-remaining: ['731'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:58 GMT'] + fastly-ratelimit-remaining: ['737'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017512.998345,VS0,VE190'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371438.334716,VS0,VE496'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -132,25 +396,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/backend + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:25:12Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:25:12Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4bFaco6pOwQ1VtudAhjnWf","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:43:59Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:43:59Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:12 GMT'] - fastly-ratelimit-remaining: ['730'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:59 GMT'] + fastly-ratelimit-remaining: ['736'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017512.252283,VS0,VE449'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371439.920285,VS0,VE154'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content_types": "text/html text/css application/javascript", @@ -159,26 +423,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/gzip + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/gzip response: body: {string: !!python/unicode '{"content_types":"text/html text/css application/javascript","extensions":"html - css js","name":"gzip-config-name","cache_condition":"","service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":"2","deleted_at":null,"created_at":"2018-04-06T12:25:12Z","updated_at":"2018-04-06T12:25:12Z"}'} + css js","name":"gzip-config-name","cache_condition":"","service_id":"4bFaco6pOwQ1VtudAhjnWf","version":"2","deleted_at":null,"created_at":"2018-04-10T14:43:59Z","updated_at":"2018-04-10T14:43:59Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:12 GMT'] - fastly-ratelimit-remaining: ['729'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:59 GMT'] + fastly-ratelimit-remaining: ['735'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017513.835950,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371439.134373,VS0,VE147'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -188,26 +452,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/header + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/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":"4HqdsSuKcvS6sTjHYzXH7t","version":"2","updated_at":"2018-04-06T12:25:13Z","deleted_at":null,"created_at":"2018-04-06T12:25:13Z"}'} + 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":"4bFaco6pOwQ1VtudAhjnWf","version":"2","updated_at":"2018-04-10T14:43:59Z","deleted_at":null,"created_at":"2018-04-10T14:43:59Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:13 GMT'] - fastly-ratelimit-remaining: ['728'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:59 GMT'] + fastly-ratelimit-remaining: ['734'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017513.050315,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371439.343132,VS0,VE409'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -215,107 +479,106 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/response_object + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"4HqdsSuKcvS6sTjHYzXH7t","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:25:13Z","updated_at":"2018-04-06T12:25:13Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4bFaco6pOwQ1VtudAhjnWf","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:44:00Z","updated_at":"2018-04-10T14:44:00Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:13 GMT'] - fastly-ratelimit-remaining: ['727'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:44:00 GMT'] + fastly-ratelimit-remaining: ['733'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017513.266393,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371440.885509,VS0,VE414'] 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/4HqdsSuKcvS6sTjHYzXH7t/version/2/settings + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4HqdsSuKcvS6sTjHYzXH7t"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4bFaco6pOwQ1VtudAhjnWf"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:13 GMT'] - fastly-ratelimit-remaining: ['726'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:44:00 GMT'] + fastly-ratelimit-remaining: ['732'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017513.472199,VS0,VE173'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371440.467729,VS0,VE165'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/version/2/activate + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:13Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:44:00Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:14 GMT'] - fastly-ratelimit-remaining: ['725'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:44:01 GMT'] + fastly-ratelimit-remaining: ['731'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017514.709250,VS0,VE1021'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371441.696986,VS0,VE909'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/4HqdsSuKcvS6sTjHYzXH7t/details + uri: https://api.fastly.com/service/4bFaco6pOwQ1VtudAhjnWf/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":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:11Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"created_at":"2018-04-06T12:25:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:14Z","deployed":false}],"created_at":"2018-04-06T12:25:11Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:25:11Z","id":"4HqdsSuKcvS6sTjHYzXH7t","version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","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":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:53Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:53Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"created_at":"2018-04-10T14:43:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:44:01Z","deployed":false}],"created_at":"2018-04-10T14:43:53Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:53Z","id":"4bFaco6pOwQ1VtudAhjnWf","version":{"testing":false,"number":2,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"updated_at":"2018-04-10T14:44:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-10T14:43:59Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-10T14:43:59Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4HqdsSuKcvS6sTjHYzXH7t","staging":false,"updated_at":"2018-04-06T12:25:14Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:25:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-06T12:25:12Z","extensions":"html - css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-06T12:25:12Z","content_types":"text/html + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4bFaco6pOwQ1VtudAhjnWf","staging":false,"updated_at":"2018-04-10T14:44:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[{"created_at":"2018-04-10T14:43:59Z","extensions":"html + css js","name":"gzip-config-name","deleted_at":null,"updated_at":"2018-04-10T14:43:59Z","content_types":"text/html text/css application/javascript","cache_condition":""}],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4311'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:15 GMT'] + date: ['Tue, 10 Apr 2018 14:44: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-fra19124-FRA'] - x-timer: ['S1523017515.924827,VS0,VE444'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371442.674944,VS0,VE205'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml index 76554a5..7c8f96f 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_tearDown.yml @@ -6,80 +6,82 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false},{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":""}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['918'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:33 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19149-FRA'] - x-timer: ['S1523017473.320995,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371389.124520,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:58Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4565'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:33 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19124-FRA'] - x-timer: ['S1523017474.536527,VS0,VE108'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371389.325386,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/deactivate + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:58Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:34 GMT'] - fastly-ratelimit-remaining: ['778'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:09 GMT'] + fastly-ratelimit-remaining: ['784'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017474.711671,VS0,VE524'] + x-timer: ['S1523371389.499553,VS0,VE424'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6 + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -88,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:34 GMT'] - fastly-ratelimit-remaining: ['777'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:10 GMT'] + fastly-ratelimit-remaining: ['783'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017474.399707,VS0,VE395'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371390.984867,VS0,VE141'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml b/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml index fe121ac..99095f1 100644 --- a/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml +++ b/tests/fixtures/cassettes/TestFastlyHealthchecks_test_fastly_healthchecks.yml @@ -6,33 +6,32 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":""}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:21 GMT'] + date: ['Tue, 10 Apr 2018 14:42:58 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017461.086218,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371378.238626,VS0,VE135'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:57Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -42,72 +41,48 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:21 GMT'] + date: ['Tue, 10 Apr 2018 14:42:58 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017461.294277,VS0,VE116'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:21 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523017461.475039,VS0,VE110'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371378.434648,VS0,VE111'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/clone + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:57Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:22 GMT'] - fastly-ratelimit-remaining: ['790'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:59 GMT'] + fastly-ratelimit-remaining: ['796'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523017462.652414,VS0,VE492'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371379.606789,VS0,VE472'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/domain + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/domain response: - body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","created_at":"2018-04-06T12:24:17Z","comment":"","updated_at":"2018-04-06T12:24:17Z"}]'} + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","created_at":"2018-04-10T14:42:54Z","comment":"","updated_at":"2018-04-10T14:42:54Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -115,21 +90,21 @@ interactions: connection: [keep-alive] content-length: ['181'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:22 GMT'] + date: ['Tue, 10 Apr 2018 14:42:59 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523017462.284536,VS0,VE405'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371379.139705,VS0,VE601'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/healthcheck + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -139,21 +114,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:22 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19128-FRA'] - x-timer: ['S1523017463.757585,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371380.890969,VS0,VE187'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/condition + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/condition response: body: {string: !!python/unicode '[]'} headers: @@ -163,23 +138,23 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:23 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19147-FRA'] - x-timer: ['S1523017463.942020,VS0,VE124'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371380.139265,VS0,VE313'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/backend + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:24:17Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:24:17Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:42:54Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:42:54Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -187,21 +162,21 @@ interactions: connection: [keep-alive] content-length: ['718'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:23 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19132-FRA'] - x-timer: ['S1523017463.130038,VS0,VE425'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371381.518060,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/director + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/director response: body: {string: !!python/unicode '[]'} headers: @@ -211,21 +186,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:23 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19136-FRA'] - x-timer: ['S1523017464.644175,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371381.717390,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/cache_settings + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -235,21 +210,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:23 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19122-FRA'] - x-timer: ['S1523017464.828094,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371381.905255,VS0,VE134'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/gzip + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -259,24 +234,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:24 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19151-FRA'] - x-timer: ['S1523017464.013067,VS0,VE126'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371381.103549,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/header + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/header response: - body: {string: !!python/unicode '[{"priority":"100","service_id":"3HIt3z8Zgd8OYOeLP4avj6","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:24:18Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:24:18Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"100","service_id":"3QhCcK6EtKPwLHQ5FnCSlk","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:42:54Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:42:54Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -284,21 +259,21 @@ interactions: connection: [keep-alive] content-length: ['415'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:24 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19143-FRA'] - x-timer: ['S1523017464.203091,VS0,VE389'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371381.288651,VS0,VE384'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/request_settings + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -308,24 +283,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:25 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19124-FRA'] - x-timer: ['S1523017465.789978,VS0,VE380'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371382.731944,VS0,VE129'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/response_object + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/response_object response: body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set - 200 status code","content":"","deleted_at":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","cache_condition":"","created_at":"2018-04-06T12:24:18Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:24:18Z"}]'} + 200 status code","content":"","deleted_at":null,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","cache_condition":"","created_at":"2018-04-10T14:42:55Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:42:55Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -333,45 +308,21 @@ interactions: connection: [keep-alive] content-length: ['280'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:25 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017465.419171,VS0,VE121'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/vcl - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:25 GMT'] + date: ['Tue, 10 Apr 2018 14:43:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017466.607573,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371382.923238,VS0,VE141'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/snippet + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -381,45 +332,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:25 GMT'] + date: ['Tue, 10 Apr 2018 14:43:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017466.792420,VS0,VE122'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/syslog - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:26 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017466.980024,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371382.129953,VS0,VE230'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/domain/example8000.com + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/domain/example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -428,23 +355,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:26 GMT'] - fastly-ratelimit-remaining: ['789'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:02 GMT'] + fastly-ratelimit-remaining: ['795'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017466.163536,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371382.420142,VS0,VE163'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/backend/localhost + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -453,23 +380,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:27 GMT'] - fastly-ratelimit-remaining: ['788'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:03 GMT'] + fastly-ratelimit-remaining: ['794'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017467.728687,VS0,VE451'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371383.645358,VS0,VE438'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/header/Set%20Location%20header + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -478,23 +405,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:27 GMT'] - fastly-ratelimit-remaining: ['787'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:03 GMT'] + fastly-ratelimit-remaining: ['793'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017467.303451,VS0,VE464'] + x-timer: ['S1523371383.147005,VS0,VE451'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/response_object/Set%20200%20status%20code + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/response_object/Set%20200%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -503,41 +430,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:28 GMT'] - fastly-ratelimit-remaining: ['786'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:04 GMT'] + fastly-ratelimit-remaining: ['792'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523017468.831742,VS0,VE452'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371384.688471,VS0,VE445'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/domain + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":3,"deleted_at":null,"created_at":"2018-04-06T12:24:28Z","updated_at":"2018-04-06T12:24:28Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3QhCcK6EtKPwLHQ5FnCSlk","version":3,"deleted_at":null,"created_at":"2018-04-10T14:43:04Z","updated_at":"2018-04-10T14:43:04Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:28 GMT'] - fastly-ratelimit-remaining: ['785'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:04 GMT'] + fastly-ratelimit-remaining: ['791'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523017468.348338,VS0,VE195'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371384.194919,VS0,VE199'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "test_healthcheck", "http_version": @@ -547,25 +474,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/healthcheck + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/healthcheck response: - body: {string: !!python/unicode '{"comment":"","name":"test_healthcheck","http_version":"1.1","window":5,"initial":4,"timeout":5000,"host":"example8000.com","expected_response":200,"check_interval":15000,"threshold":3,"path":"/healthcheck","method":"GET","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":3,"updated_at":"2018-04-06T12:24:28Z","deleted_at":null,"created_at":"2018-04-06T12:24:28Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"test_healthcheck","http_version":"1.1","window":5,"initial":4,"timeout":5000,"host":"example8000.com","expected_response":200,"check_interval":15000,"threshold":3,"path":"/healthcheck","method":"GET","service_id":"3QhCcK6EtKPwLHQ5FnCSlk","version":3,"updated_at":"2018-04-10T14:43:04Z","deleted_at":null,"created_at":"2018-04-10T14:43:04Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['362'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:29 GMT'] - fastly-ratelimit-remaining: ['784'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:04 GMT'] + fastly-ratelimit-remaining: ['790'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] - x-timer: ['S1523017469.606852,VS0,VE434'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371384.458652,VS0,VE416'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -576,25 +503,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/backend + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":"test_healthcheck","first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:29Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:29Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":"test_healthcheck","first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:43:05Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:43:05Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['730'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:29 GMT'] - fastly-ratelimit-remaining: ['783'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:05 GMT'] + fastly-ratelimit-remaining: ['789'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017469.176811,VS0,VE424'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371385.936390,VS0,VE440'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -604,26 +531,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/header + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","version":"3","updated_at":"2018-04-06T12:24:30Z","deleted_at":null,"created_at":"2018-04-06T12:24:30Z"}'} + 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":"3QhCcK6EtKPwLHQ5FnCSlk","version":"3","updated_at":"2018-04-10T14:43:05Z","deleted_at":null,"created_at":"2018-04-10T14:43:05Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:30 GMT'] - fastly-ratelimit-remaining: ['782'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:05 GMT'] + fastly-ratelimit-remaining: ['788'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017470.801845,VS0,VE401'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371386.568358,VS0,VE415'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -631,87 +558,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/response_object + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:30Z","updated_at":"2018-04-06T12:24:30Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3QhCcK6EtKPwLHQ5FnCSlk","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:43:06Z","updated_at":"2018-04-10T14:43:06Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:30 GMT'] - fastly-ratelimit-remaining: ['781'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:06 GMT'] + fastly-ratelimit-remaining: ['787'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017470.269828,VS0,VE423'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371386.052051,VS0,VE444'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/settings + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3HIt3z8Zgd8OYOeLP4avj6"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:31 GMT'] - fastly-ratelimit-remaining: ['780'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:07 GMT'] + fastly-ratelimit-remaining: ['786'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523017471.758603,VS0,VE458'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371387.605436,VS0,VE460'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/3/activate + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:30Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:58Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:06Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:32 GMT'] - fastly-ratelimit-remaining: ['779'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:07 GMT'] + fastly-ratelimit-remaining: ['785'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523017471.476299,VS0,VE867'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371387.126650,VS0,VE636'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:58Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -721,14 +648,14 @@ interactions: connection: [keep-alive] content-length: ['4565'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:32 GMT'] + date: ['Tue, 10 Apr 2018 14:43:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017473.520315,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371388.864722,VS0,VE151'] status: {code: 200, message: OK} - request: body: null @@ -737,33 +664,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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false},{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":""}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['918'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:32 GMT'] + date: ['Tue, 10 Apr 2018 14:43:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017473.726836,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371388.075761,VS0,VE426'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:58Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -773,25 +699,25 @@ interactions: connection: [keep-alive] content-length: ['4565'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:33 GMT'] + date: ['Tue, 10 Apr 2018 14:43:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017473.936247,VS0,VE116'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371389.703214,VS0,VE110'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:32Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:58Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:07Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:32Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:43:07Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:58Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":"test_healthcheck","port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[{"window":5,"threshold":3,"name":"test_healthcheck","path":"/healthcheck","host":"example8000.com","http_version":"1.1","comment":"","timeout":5000,"check_interval":15000,"method":"GET","initial":4,"expected_response":200}],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -801,13 +727,13 @@ interactions: connection: [keep-alive] content-length: ['4565'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:33 GMT'] + date: ['Tue, 10 Apr 2018 14:43:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017473.117020,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371389.877181,VS0,VE113'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml index ae849a4..c2430f3 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_tearDown.yml @@ -6,81 +6,81 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":""}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false},{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":""}],"created_at":"2018-04-10T14:43:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:47 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19125-FRA'] - x-timer: ['S1523017488.671072,VS0,VE142'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371411.010079,VS0,VE144'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/details + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/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":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:29Z","deployed":false}],"created_at":"2018-04-10T14:43:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1","version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:47 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19123-FRA'] - x-timer: ['S1523017488.875122,VS0,VE108'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371411.217659,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/deactivate + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:29Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:48 GMT'] - fastly-ratelimit-remaining: ['757'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:31 GMT'] + fastly-ratelimit-remaining: ['763'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017488.047507,VS0,VE464'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371411.394628,VS0,VE208'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1 response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +89,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:48 GMT'] - fastly-ratelimit-remaining: ['756'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:32 GMT'] + fastly-ratelimit-remaining: ['762'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017489.573846,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371412.668819,VS0,VE416'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml index 784e9ad..b3d3790 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_request_setting_defaults.yml @@ -10,18 +10,19 @@ interactions: service ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:41 GMT'] + date: ['Tue, 10 Apr 2018 14:43:21 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-fra19121-FRA'] - x-timer: ['S1523017481.188620,VS0,VE111'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371401.932054,VS0,VE118'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,32 +32,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"af281fe7bd3af169893ff0664d20565ece8a8015","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:41Z","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} + Ansible Module Test","publish_key":"e122d117d57a8e4d0a93e0b99c71e9bff08f0510","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:43:21Z","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:41 GMT'] - fastly-ratelimit-remaining: ['766'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:21 GMT'] + fastly-ratelimit-remaining: ['772'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017481.363769,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371401.109690,VS0,VE401'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/details + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/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":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":1,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:41Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:41Z","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":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false}],"created_at":"2018-04-10T14:43:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1","version":{"testing":false,"number":1,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:21Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:43:21Z","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,328 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:41 GMT'] + date: ['Tue, 10 Apr 2018 14:43:21 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017482.565722,VS0,VE417'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371402.572206,VS0,VE227'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version + method: PUT + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/1/clone response: - body: {string: !!python/unicode '{"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","number":2}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:42 GMT'] - fastly-ratelimit-remaining: ['765'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:22 GMT'] + fastly-ratelimit-remaining: ['771'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371402.900039,VS0,VE202'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:22 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371402.166526,VS0,VE407'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19151-FRA'] + x-timer: ['S1523371403.698228,VS0,VE379'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19126-FRA'] + x-timer: ['S1523371403.140805,VS0,VE159'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19125-FRA'] + x-timer: ['S1523371403.360325,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:24 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371404.890761,VS0,VE154'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:24 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371404.107410,VS0,VE384'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:24 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371405.578368,VS0,VE112'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:25 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523017482.127320,VS0,VE428'] + x-timer: ['S1523371405.753287,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:25 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371405.204742,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:25 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371405.382771,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:25 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371406.563678,VS0,VE421'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/domain + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:43Z","updated_at":"2018-04-06T12:24:43Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"40yflvqBy9nR1SLXiMrvq1","version":2,"deleted_at":null,"created_at":"2018-04-10T14:43:26Z","updated_at":"2018-04-10T14:43:26Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:43 GMT'] - fastly-ratelimit-remaining: ['764'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:26 GMT'] + fastly-ratelimit-remaining: ['770'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017483.619337,VS0,VE583'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371406.255726,VS0,VE198'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -132,25 +397,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/backend + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:43Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:43Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"40yflvqBy9nR1SLXiMrvq1","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:43:26Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:43:26Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:43 GMT'] - fastly-ratelimit-remaining: ['763'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:26 GMT'] + fastly-ratelimit-remaining: ['769'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523017483.384037,VS0,VE521'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371407.522112,VS0,VE429'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -160,26 +425,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/header + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/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":"3kRM9hyWNjgT1XQUfnKlOQ","version":"2","updated_at":"2018-04-06T12:24:44Z","deleted_at":null,"created_at":"2018-04-06T12:24:44Z"}'} + 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":"40yflvqBy9nR1SLXiMrvq1","version":"2","updated_at":"2018-04-10T14:43:27Z","deleted_at":null,"created_at":"2018-04-10T14:43:27Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:44 GMT'] - fastly-ratelimit-remaining: ['762'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:27 GMT'] + fastly-ratelimit-remaining: ['768'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523017484.005861,VS0,VE436'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371407.092568,VS0,VE142'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"request_condition": "", "name": "request-setting-config-name", @@ -189,25 +454,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/request_settings + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/request_settings response: - body: {string: !!python/unicode '{"request_condition":"","name":"request-setting-config-name","force_miss":"1","xff":"append","bypass_busy_wait":"1","timer_support":"1","force_ssl":"1","action":"pass","geo_headers":"1","default_host":"example.net","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":30,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":"2","updated_at":"2018-04-06T12:24:44Z","deleted_at":null,"created_at":"2018-04-06T12:24:44Z"}'} + body: {string: !!python/unicode '{"request_condition":"","name":"request-setting-config-name","force_miss":"1","xff":"append","bypass_busy_wait":"1","timer_support":"1","force_ssl":"1","action":"pass","geo_headers":"1","default_host":"example.net","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":30,"service_id":"40yflvqBy9nR1SLXiMrvq1","version":"2","updated_at":"2018-04-10T14:43:27Z","deleted_at":null,"created_at":"2018-04-10T14:43:27Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['432'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:44 GMT'] - fastly-ratelimit-remaining: ['761'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:27 GMT'] + fastly-ratelimit-remaining: ['767'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017485.512766,VS0,VE456'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371407.298668,VS0,VE410'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -215,87 +480,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/response_object + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3kRM9hyWNjgT1XQUfnKlOQ","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:45Z","updated_at":"2018-04-06T12:24:45Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"40yflvqBy9nR1SLXiMrvq1","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:43:27Z","updated_at":"2018-04-10T14:43:27Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:45 GMT'] - fastly-ratelimit-remaining: ['760'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:27 GMT'] + fastly-ratelimit-remaining: ['766'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017485.051931,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371408.768397,VS0,VE146'] 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/3kRM9hyWNjgT1XQUfnKlOQ/version/2/settings + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"40yflvqBy9nR1SLXiMrvq1"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:45 GMT'] - fastly-ratelimit-remaining: ['759'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:28 GMT'] + fastly-ratelimit-remaining: ['765'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017485.274476,VS0,VE440'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371408.971619,VS0,VE433'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/version/2/activate + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:45Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:27Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:46 GMT'] - fastly-ratelimit-remaining: ['758'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:29 GMT'] + fastly-ratelimit-remaining: ['764'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523017486.779629,VS0,VE1041'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371409.507187,VS0,VE990'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/details + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/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":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:29Z","deployed":false}],"created_at":"2018-04-10T14:43:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1","version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -305,14 +570,14 @@ interactions: connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:47 GMT'] + date: ['Tue, 10 Apr 2018 14:43:29 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017487.885363,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371410.562757,VS0,VE420'] status: {code: 200, message: OK} - request: body: null @@ -321,32 +586,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":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":""}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false},{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":""}],"created_at":"2018-04-10T14:43:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:47 GMT'] + date: ['Tue, 10 Apr 2018 14:43:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017487.089420,VS0,VE136'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371410.044192,VS0,VE513'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/details + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/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":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:29Z","deployed":false}],"created_at":"2018-04-10T14:43:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1","version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -356,25 +621,25 @@ interactions: connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:47 GMT'] + date: ['Tue, 10 Apr 2018 14:43:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017487.290456,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371411.632729,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3kRM9hyWNjgT1XQUfnKlOQ/details + uri: https://api.fastly.com/service/40yflvqBy9nR1SLXiMrvq1/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":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:41Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"created_at":"2018-04-06T12:24:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:46Z","deployed":false}],"created_at":"2018-04-06T12:24:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:41Z","id":"3kRM9hyWNjgT1XQUfnKlOQ","version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"created_at":"2018-04-10T14:43:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:29Z","deployed":false}],"created_at":"2018-04-10T14:43:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:21Z","id":"40yflvqBy9nR1SLXiMrvq1","version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3kRM9hyWNjgT1XQUfnKlOQ","staging":false,"updated_at":"2018-04-06T12:24:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"40yflvqBy9nR1SLXiMrvq1","staging":false,"updated_at":"2018-04-10T14:43:29Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[{"force_ssl":"1","geo_headers":"1","name":"request-setting-config-name","default_host":"example.net","xff":"append","hash_keys":"req.url,req.http.host,req.http.Fastly-SSL","max_stale_age":"30","request_condition":"","action":"pass","force_miss":"1","timer_support":"1","bypass_busy_wait":"1"}],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -384,13 +649,13 @@ interactions: connection: [keep-alive] content-length: ['4445'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:47 GMT'] + date: ['Tue, 10 Apr 2018 14:43:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523017487.474011,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371411.807632,VS0,VE117'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml index 6cde163..24e801c 100644 --- a/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml +++ b/tests/fixtures/cassettes/TestFastlyRequestSetting_test_fastly_response_object_content_content_type.yml @@ -10,19 +10,18 @@ interactions: service ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:48 GMT'] + date: ['Tue, 10 Apr 2018 14:43:32 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-fra19147-FRA'] - x-timer: ['S1523017489.790120,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371412.158325,VS0,VE114'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -32,32 +31,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"f49250f392d4d75307db68362f3fc7219648e1e9","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} + Ansible Module Test","publish_key":"76509c4224f8513539b5d7e5442a3de676be432d","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:43:32Z","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:49 GMT'] - fastly-ratelimit-remaining: ['755'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:32 GMT'] + fastly-ratelimit-remaining: ['761'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017489.973402,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371412.334986,VS0,VE424'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":1,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:49Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","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":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":1,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:32Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:43:32Z","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,328 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:49 GMT'] + date: ['Tue, 10 Apr 2018 14:43:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017489.190591,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371413.820828,VS0,VE158'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version + method: PUT + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/1/clone response: - body: {string: !!python/unicode '{"service_id":"3t09WMjn5bK09UHuIl7q1A","number":2}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:49 GMT'] - fastly-ratelimit-remaining: ['754'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:33 GMT'] + fastly-ratelimit-remaining: ['760'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371413.035489,VS0,VE199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19137-FRA'] + x-timer: ['S1523371413.294746,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19143-FRA'] - x-timer: ['S1523017489.403420,VS0,VE430'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371413.476704,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19140-FRA'] + x-timer: ['S1523371414.657393,VS0,VE117'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371414.836424,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371414.280145,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371414.462779,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371415.644604,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:35 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371415.821939,VS0,VE402'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:35 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371415.439753,VS0,VE400'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:36 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371416.067465,VS0,VE378'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:37 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371417.661156,VS0,VE403'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/domain + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3t09WMjn5bK09UHuIl7q1A","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:50Z","updated_at":"2018-04-06T12:24:50Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":2,"deleted_at":null,"created_at":"2018-04-10T14:43:37Z","updated_at":"2018-04-10T14:43:37Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:50 GMT'] - fastly-ratelimit-remaining: ['753'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:37 GMT'] + fastly-ratelimit-remaining: ['759'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017490.066010,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371417.326240,VS0,VE191'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +396,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/backend + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:50Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:50Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:43:37Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:43:37Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:51 GMT'] - fastly-ratelimit-remaining: ['752'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:38 GMT'] + fastly-ratelimit-remaining: ['758'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523017491.616511,VS0,VE426'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371418.583000,VS0,VE450'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,26 +424,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/header + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","version":"2","updated_at":"2018-04-06T12:24:51Z","deleted_at":null,"created_at":"2018-04-06T12:24:51Z"}'} + 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":"4Dd6vJ5n9c4CIvlGGJOwsa","version":"2","updated_at":"2018-04-10T14:43:38Z","deleted_at":null,"created_at":"2018-04-10T14:43:38Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:51 GMT'] - fastly-ratelimit-remaining: ['751'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:38 GMT'] + fastly-ratelimit-remaining: ['757'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017491.111570,VS0,VE435'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371418.094726,VS0,VE434'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -189,87 +452,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/response_object + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"3t09WMjn5bK09UHuIl7q1A","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:51Z","updated_at":"2018-04-06T12:24:51Z"}'} + 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:43:39Z","updated_at":"2018-04-10T14:43:39Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['305'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:52 GMT'] - fastly-ratelimit-remaining: ['750'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:39 GMT'] + fastly-ratelimit-remaining: ['756'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017492.609620,VS0,VE412'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371419.785700,VS0,VE432'] 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/3t09WMjn5bK09UHuIl7q1A/version/2/settings + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3t09WMjn5bK09UHuIl7q1A"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:52 GMT'] - fastly-ratelimit-remaining: ['749'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:39 GMT'] + fastly-ratelimit-remaining: ['755'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017492.116367,VS0,VE133'] + x-timer: ['S1523371419.283319,VS0,VE165'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/activate + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:51Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:39Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:53 GMT'] - fastly-ratelimit-remaining: ['748'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:40 GMT'] + fastly-ratelimit-remaining: ['754'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523017492.360050,VS0,VE948'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371420.512509,VS0,VE696'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:40Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -279,14 +542,14 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:53 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19125-FRA'] - x-timer: ['S1523017493.406904,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371420.455462,VS0,VE147'] status: {code: 200, message: OK} - request: body: null @@ -295,7 +558,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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":""}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -303,52 +566,53 @@ interactions: connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:53 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19144-FRA'] - x-timer: ['S1523017494.620708,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371421.665116,VS0,VE427'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:40Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:53 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19150-FRA'] - x-timer: ['S1523017494.824079,VS0,VE109'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371421.290332,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:40Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -358,13 +622,13 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:54 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19120-FRA'] - x-timer: ['S1523017494.002613,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371421.472791,VS0,VE119'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml index c83f5da..3d97beb 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_tearDown.yml @@ -6,32 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":""}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false},{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":""}],"created_at":"2018-04-10T14:42:38Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:13 GMT'] + date: ['Tue, 10 Apr 2018 14:42:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523017454.703191,VS0,VE142'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371367.236350,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/details + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/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":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:46Z","deployed":false}],"created_at":"2018-04-10T14:42:38Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV","version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -41,46 +42,46 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:14 GMT'] + date: ['Tue, 10 Apr 2018 14:42:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017454.909883,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371367.439443,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/deactivate + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:46Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:14 GMT'] - fastly-ratelimit-remaining: ['800'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:48 GMT'] + fastly-ratelimit-remaining: ['806'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017454.088004,VS0,VE200'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371368.619884,VS0,VE469'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +90,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:14 GMT'] - fastly-ratelimit-remaining: ['799'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:48 GMT'] + fastly-ratelimit-remaining: ['805'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017454.352529,VS0,VE420'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371368.155560,VS0,VE404'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml index 345a5bd..bfc505e 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_content_content_type.yml @@ -10,18 +10,19 @@ interactions: service ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:08 GMT'] + date: ['Tue, 10 Apr 2018 14:42:38 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-fra19120-FRA'] - x-timer: ['S1523017448.907102,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371359.631434,VS0,VE111'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,32 +32,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"3de0b5f6fcfbe7df9e0b80da05080c1190b90a89","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:08Z","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto"}'} + Ansible Module Test","publish_key":"e355c73d91e2331b851e72c5eda1ba0acf8fa17a","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:42:38Z","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:08 GMT'] - fastly-ratelimit-remaining: ['808'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:38 GMT'] + fastly-ratelimit-remaining: ['814'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523017448.082781,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371359.808456,VS0,VE135'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/details + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/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":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":1,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:08Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false}],"created_at":"2018-04-10T14:42:38Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV","version":{"testing":false,"number":1,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:38Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:42:38Z","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,328 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:08 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19140-FRA'] + x-timer: ['S1523371359.998735,VS0,VE155'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: PUT + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/1/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['232'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:39 GMT'] + fastly-ratelimit-remaining: ['813'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371359.215949,VS0,VE480'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19124-FRA'] + x-timer: ['S1523371360.875063,VS0,VE379'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19143-FRA'] + x-timer: ['S1523371361.504372,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19137-FRA'] + x-timer: ['S1523371361.690006,VS0,VE405'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19143-FRA'] + x-timer: ['S1523371361.161366,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19142-FRA'] + x-timer: ['S1523371361.343964,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19121-FRA'] - x-timer: ['S1523017449.550408,VS0,VE155'] + x-timer: ['S1523371362.808617,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/gzip response: - body: {string: !!python/unicode '{"service_id":"39IuHHPEgVvzwZ0uFh7zto","number":2}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:09 GMT'] - fastly-ratelimit-remaining: ['807'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19135-FRA'] + x-timer: ['S1523371362.988607,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19147-FRA'] + x-timer: ['S1523371362.454799,VS0,VE384'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:43 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371363.903115,VS0,VE379'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017449.768998,VS0,VE428'] + x-timer: ['S1523371363.377346,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:43 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371364.558190,VS0,VE383'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/domain + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"39IuHHPEgVvzwZ0uFh7zto","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","updated_at":"2018-04-06T12:24:09Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3F6Otwe05w5SzR2n5slNdV","version":2,"deleted_at":null,"created_at":"2018-04-10T14:42:44Z","updated_at":"2018-04-10T14:42:44Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:09 GMT'] - fastly-ratelimit-remaining: ['806'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:44 GMT'] + fastly-ratelimit-remaining: ['812'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017449.258947,VS0,VE479'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371364.002244,VS0,VE480'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -132,25 +397,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/backend + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"39IuHHPEgVvzwZ0uFh7zto","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:10Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:10Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3F6Otwe05w5SzR2n5slNdV","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:42:44Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:42:44Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:10 GMT'] - fastly-ratelimit-remaining: ['805'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:44 GMT'] + fastly-ratelimit-remaining: ['811'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017450.802985,VS0,VE457'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371365.544306,VS0,VE163'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -160,26 +425,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/header + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/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":"39IuHHPEgVvzwZ0uFh7zto","version":"2","updated_at":"2018-04-06T12:24:10Z","deleted_at":null,"created_at":"2018-04-06T12:24:10Z"}'} + 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":"3F6Otwe05w5SzR2n5slNdV","version":"2","updated_at":"2018-04-10T14:42:45Z","deleted_at":null,"created_at":"2018-04-10T14:42:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:10 GMT'] - fastly-ratelimit-remaining: ['804'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:45 GMT'] + fastly-ratelimit-remaining: ['810'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017450.325426,VS0,VE143'] + x-timer: ['S1523371365.770059,VS0,VE438'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -188,87 +453,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/response_object + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"39IuHHPEgVvzwZ0uFh7zto","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:10Z","updated_at":"2018-04-06T12:24:10Z"}'} + 200 status code","content":"Hello from Fastly","content_type":"text/plain","response":"Ok","service_id":"3F6Otwe05w5SzR2n5slNdV","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:42:45Z","updated_at":"2018-04-10T14:42:45Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['305'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:10 GMT'] - fastly-ratelimit-remaining: ['803'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:45 GMT'] + fastly-ratelimit-remaining: ['809'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017451.532601,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371365.270853,VS0,VE147'] 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/39IuHHPEgVvzwZ0uFh7zto/version/2/settings + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"39IuHHPEgVvzwZ0uFh7zto"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3F6Otwe05w5SzR2n5slNdV"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:11 GMT'] - fastly-ratelimit-remaining: ['802'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:45 GMT'] + fastly-ratelimit-remaining: ['808'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017451.007266,VS0,VE642'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371365.481468,VS0,VE177'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/version/2/activate + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:10Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:45Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:12 GMT'] - fastly-ratelimit-remaining: ['801'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:46 GMT'] + fastly-ratelimit-remaining: ['807'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017452.712141,VS0,VE1128'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371366.720410,VS0,VE653'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/details + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/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":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:46Z","deployed":false}],"created_at":"2018-04-10T14:42:38Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV","version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -278,14 +543,14 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:13 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19144-FRA'] - x-timer: ['S1523017453.904362,VS0,VE146'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371366.435784,VS0,VE148'] status: {code: 200, message: OK} - request: body: null @@ -294,33 +559,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":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":""}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false},{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":""}],"created_at":"2018-04-10T14:42:38Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:13 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19136-FRA'] - x-timer: ['S1523017453.113876,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371367.644707,VS0,VE146'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/details + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/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":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:46Z","deployed":false}],"created_at":"2018-04-10T14:42:38Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV","version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -330,25 +594,25 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:13 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19129-FRA'] - x-timer: ['S1523017453.325946,VS0,VE121'] + x-timer: ['S1523371367.852673,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/39IuHHPEgVvzwZ0uFh7zto/details + uri: https://api.fastly.com/service/3F6Otwe05w5SzR2n5slNdV/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":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:08Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:08Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"created_at":"2018-04-06T12:24:09Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:12Z","deployed":false}],"created_at":"2018-04-06T12:24:08Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:08Z","id":"39IuHHPEgVvzwZ0uFh7zto","version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:38Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:38Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"created_at":"2018-04-10T14:42:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:46Z","deployed":false}],"created_at":"2018-04-10T14:42:38Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:38Z","id":"3F6Otwe05w5SzR2n5slNdV","version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"39IuHHPEgVvzwZ0uFh7zto","staging":false,"updated_at":"2018-04-06T12:24:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:09Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3F6Otwe05w5SzR2n5slNdV","staging":false,"updated_at":"2018-04-10T14:42:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -358,13 +622,13 @@ interactions: connection: [keep-alive] content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:13 GMT'] + date: ['Tue, 10 Apr 2018 14:42:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523017454.513885,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371367.030167,VS0,VE115'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml index 3d7ebf2..9da0e71 100644 --- a/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml +++ b/tests/fixtures/cassettes/TestFastlyResponseObject_test_fastly_response_object_defaults.yml @@ -14,14 +14,14 @@ interactions: connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:15 GMT'] + date: ['Tue, 10 Apr 2018 14:42:48 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-fra19120-FRA'] - x-timer: ['S1523017455.988261,VS0,VE111'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371369.658264,VS0,VE115'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,32 +31,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"e32cf9226a0314d9449d65fd1eaf3b1677e61427","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:15Z","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} + Ansible Module Test","publish_key":"0ccec00cb89fd25ec5b28832de19745d8ab71c46","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:15 GMT'] - fastly-ratelimit-remaining: ['798'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:49 GMT'] + fastly-ratelimit-remaining: ['804'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523017455.162586,VS0,VE473'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371369.837601,VS0,VE411'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":1,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:15Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:15Z","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":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":1,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:49Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] @@ -64,64 +64,328 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:16 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19124-FRA'] - x-timer: ['S1523017456.699933,VS0,VE530'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371369.313016,VS0,VE148'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version + method: PUT + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/1/clone response: - body: {string: !!python/unicode '{"service_id":"3HIt3z8Zgd8OYOeLP4avj6","number":2}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:16 GMT'] - fastly-ratelimit-remaining: ['797'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:50 GMT'] + fastly-ratelimit-remaining: ['803'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371370.524520,VS0,VE488'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:50 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371370.076044,VS0,VE411'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:50 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371371.555619,VS0,VE432'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371371.051067,VS0,VE145'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371371.255460,VS0,VE153'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371371.470104,VS0,VE141'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42:51 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371372.672988,VS0,VE133'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19143-FRA'] + x-timer: ['S1523371372.866125,VS0,VE455'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19136-FRA'] + x-timer: ['S1523371372.409945,VS0,VE400'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19123-FRA'] + x-timer: ['S1523371373.905889,VS0,VE377'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19133-FRA'] - x-timer: ['S1523017456.432357,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371374.500842,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:42: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-fra19130-FRA'] + x-timer: ['S1523371374.682976,VS0,VE119'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/domain + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:17Z","updated_at":"2018-04-06T12:24:17Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3QhCcK6EtKPwLHQ5FnCSlk","version":2,"deleted_at":null,"created_at":"2018-04-10T14:42:54Z","updated_at":"2018-04-10T14:42:54Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:17 GMT'] - fastly-ratelimit-remaining: ['796'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:54 GMT'] + fastly-ratelimit-remaining: ['802'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017457.672275,VS0,VE514'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371374.861578,VS0,VE478'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -132,25 +396,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/backend + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:17Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:17Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:42:54Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:42:54Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:17 GMT'] - fastly-ratelimit-remaining: ['795'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:54 GMT'] + fastly-ratelimit-remaining: ['801'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017457.264868,VS0,VE444'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371374.404195,VS0,VE425'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -160,26 +424,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/header + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","version":"2","updated_at":"2018-04-06T12:24:18Z","deleted_at":null,"created_at":"2018-04-06T12:24:18Z"}'} + 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":"3QhCcK6EtKPwLHQ5FnCSlk","version":"2","updated_at":"2018-04-10T14:42:54Z","deleted_at":null,"created_at":"2018-04-10T14:42:54Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:18 GMT'] - fastly-ratelimit-remaining: ['794'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:55 GMT'] + fastly-ratelimit-remaining: ['800'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017458.846496,VS0,VE433'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371375.892715,VS0,VE148'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -187,87 +451,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/response_object + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3HIt3z8Zgd8OYOeLP4avj6","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:18Z","updated_at":"2018-04-06T12:24:18Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3QhCcK6EtKPwLHQ5FnCSlk","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:42:55Z","updated_at":"2018-04-10T14:42:55Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:18 GMT'] - fastly-ratelimit-remaining: ['793'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:55 GMT'] + fastly-ratelimit-remaining: ['799'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017459.522884,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371375.104044,VS0,VE434'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"general.default_ttl": 3600}' headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/settings + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3HIt3z8Zgd8OYOeLP4avj6"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:19 GMT'] - fastly-ratelimit-remaining: ['792'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:56 GMT'] + fastly-ratelimit-remaining: ['798'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017459.995439,VS0,VE437'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371376.750307,VS0,VE464'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/version/2/activate + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:18Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:55Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:20 GMT'] - fastly-ratelimit-remaining: ['791'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:42:57 GMT'] + fastly-ratelimit-remaining: ['797'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017459.498169,VS0,VE637'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371376.380825,VS0,VE937'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:57Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -277,14 +541,14 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:20 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19139-FRA'] - x-timer: ['S1523017460.258422,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371377.420684,VS0,VE146'] status: {code: 200, message: OK} - request: body: null @@ -293,7 +557,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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":""}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":""}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -301,25 +565,25 @@ interactions: connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:20 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19145-FRA'] - x-timer: ['S1523017460.464684,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371378.629682,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:57Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -329,25 +593,25 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:20 GMT'] + date: ['Tue, 10 Apr 2018 14:42: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-fra19127-FRA'] - x-timer: ['S1523017461.669941,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371378.836991,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3HIt3z8Zgd8OYOeLP4avj6/details + uri: https://api.fastly.com/service/3QhCcK6EtKPwLHQ5FnCSlk/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":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:15Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:15Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"created_at":"2018-04-06T12:24:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:20Z","deployed":false}],"created_at":"2018-04-06T12:24:15Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:15Z","id":"3HIt3z8Zgd8OYOeLP4avj6","version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"created_at":"2018-04-10T14:42:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:57Z","deployed":false}],"created_at":"2018-04-10T14:42:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:42:49Z","id":"3QhCcK6EtKPwLHQ5FnCSlk","version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3HIt3z8Zgd8OYOeLP4avj6","staging":false,"updated_at":"2018-04-06T12:24:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:16Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3QhCcK6EtKPwLHQ5FnCSlk","staging":false,"updated_at":"2018-04-10T14:42:57Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:42:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -357,13 +621,13 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:20 GMT'] + date: ['Tue, 10 Apr 2018 14:42:58 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017461.846900,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371378.012798,VS0,VE108'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml index 5d5b6ae..3882d32 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_tearDown.yml @@ -6,81 +6,80 @@ 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":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":""}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false},{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":""}],"created_at":"2018-04-10T14:43:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:39 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19121-FRA'] - x-timer: ['S1523017480.780258,VS0,VE132'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371400.791803,VS0,VE134'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/details + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/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":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:18Z","deployed":false}],"created_at":"2018-04-10T14:43:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW","version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:40 GMT'] + date: ['Tue, 10 Apr 2018 14:43:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523017480.976611,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371400.985623,VS0,VE108'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/deactivate + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:18Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:40 GMT'] - fastly-ratelimit-remaining: ['768'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:20 GMT'] + fastly-ratelimit-remaining: ['774'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017480.164758,VS0,VE479'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371400.160979,VS0,VE153'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -89,15 +88,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:41 GMT'] - fastly-ratelimit-remaining: ['767'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:20 GMT'] + fastly-ratelimit-remaining: ['773'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523017481.711072,VS0,VE401'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371400.379669,VS0,VE424'] 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 fa1b174..c69f074 100644 --- a/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml +++ b/tests/fixtures/cassettes/TestFastlySettings_test_fastly_settings.yml @@ -10,18 +10,19 @@ interactions: service ''31RPDMBpiruA1yfGA2djLm''-''Fastly Ansible Module Test''"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['111'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:35 GMT'] + date: ['Tue, 10 Apr 2018 14:43:10 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-fra19140-FRA'] - x-timer: ['S1523017475.039142,VS0,VE401'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371390.195591,VS0,VE117'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Fastly Ansible Module Test"}' @@ -31,32 +32,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Fastly - Ansible Module Test","publish_key":"ea8fb078f10b42b3a7378050602890ede5eac27e","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:24:35Z","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} + Ansible Module Test","publish_key":"49e81fc8951c0ec95fae6be9c99c0d47e89229b6","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:43:10Z","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['512'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:35 GMT'] - fastly-ratelimit-remaining: ['776'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:10 GMT'] + fastly-ratelimit-remaining: ['782'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017476.504736,VS0,VE426'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371390.375851,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/details + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/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":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":1,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:35Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:24:35Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false}],"created_at":"2018-04-10T14:43:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW","version":{"testing":false,"number":1,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:10Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:43:10Z","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,328 @@ interactions: connection: [keep-alive] content-length: ['1041'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:36 GMT'] + date: ['Tue, 10 Apr 2018 14:43:11 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017476.996536,VS0,VE185'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371391.579844,VS0,VE956'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version + method: PUT + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/1/clone response: - body: {string: !!python/unicode '{"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","number":2}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:36 GMT'] - fastly-ratelimit-remaining: ['775'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:11 GMT'] + fastly-ratelimit-remaining: ['781'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371392.613928,VS0,VE195'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19125-FRA'] + x-timer: ['S1523371392.870609,VS0,VE385'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19120-FRA'] + x-timer: ['S1523371392.462039,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19146-FRA'] + x-timer: ['S1523371393.643565,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19129-FRA'] + x-timer: ['S1523371393.115215,VS0,VE383'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43: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-fra19150-FRA'] - x-timer: ['S1523017476.247169,VS0,VE472'] + x-timer: ['S1523371394.715871,VS0,VE117'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371394.897102,VS0,VE116'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371394.078181,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:14 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371394.259619,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:15 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371395.751760,VS0,VE382'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:15 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371395.196369,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:43:15 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371395.382017,VS0,VE122'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/domain + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3eAhSr2iVyJmYQ1rgnhxOS","version":2,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","updated_at":"2018-04-06T12:24:36Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3obbhpGVKLCoquzjvs0dMW","version":2,"deleted_at":null,"created_at":"2018-04-10T14:43:15Z","updated_at":"2018-04-10T14:43:15Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:36 GMT'] - fastly-ratelimit-remaining: ['774'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:16 GMT'] + fastly-ratelimit-remaining: ['780'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017477.782831,VS0,VE195'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371396.566944,VS0,VE456'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -132,25 +397,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/backend + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:24:37Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:24:37Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3obbhpGVKLCoquzjvs0dMW","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:43:16Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:43:16Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:37 GMT'] - fastly-ratelimit-remaining: ['773'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:16 GMT'] + fastly-ratelimit-remaining: ['779'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017477.042212,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371396.088402,VS0,VE450'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -160,26 +425,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/header + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/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":"3eAhSr2iVyJmYQ1rgnhxOS","version":"2","updated_at":"2018-04-06T12:24:37Z","deleted_at":null,"created_at":"2018-04-06T12:24:37Z"}'} + 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":"3obbhpGVKLCoquzjvs0dMW","version":"2","updated_at":"2018-04-10T14:43:16Z","deleted_at":null,"created_at":"2018-04-10T14:43:16Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:37 GMT'] - fastly-ratelimit-remaining: ['772'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:16 GMT'] + fastly-ratelimit-remaining: ['778'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017477.277400,VS0,VE153'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371397.605621,VS0,VE145'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -187,87 +452,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/response_object + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3eAhSr2iVyJmYQ1rgnhxOS","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:24:37Z","updated_at":"2018-04-06T12:24:37Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"3obbhpGVKLCoquzjvs0dMW","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:43:17Z","updated_at":"2018-04-10T14:43:17Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:37 GMT'] - fastly-ratelimit-remaining: ['771'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:17 GMT'] + fastly-ratelimit-remaining: ['777'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017477.493761,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371397.815531,VS0,VE431'] 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/3eAhSr2iVyJmYQ1rgnhxOS/version/2/settings + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":1000,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} + body: {string: !!python/unicode '{"general.default_ttl":1000,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"3obbhpGVKLCoquzjvs0dMW"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:37 GMT'] - fastly-ratelimit-remaining: ['770'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:17 GMT'] + fastly-ratelimit-remaining: ['776'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017478.705592,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371397.403872,VS0,VE463'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/version/2/activate + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:37Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:17Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:38 GMT'] - fastly-ratelimit-remaining: ['769'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:18 GMT'] + fastly-ratelimit-remaining: ['775'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017478.951224,VS0,VE916'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371398.930260,VS0,VE1010'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/details + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/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":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:18Z","deployed":false}],"created_at":"2018-04-10T14:43:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW","version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -277,14 +542,14 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:39 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19120-FRA'] - x-timer: ['S1523017479.992373,VS0,VE147'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371399.003429,VS0,VE149'] status: {code: 200, message: OK} - request: body: null @@ -293,7 +558,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":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":""}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false},{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":""}],"created_at":"2018-04-10T14:43:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -301,52 +566,53 @@ interactions: connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:39 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19143-FRA'] - x-timer: ['S1523017479.201994,VS0,VE142'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371399.216697,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/details + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/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":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:18Z","deployed":false}],"created_at":"2018-04-10T14:43:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW","version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:39 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19146-FRA'] - x-timer: ['S1523017479.408368,VS0,VE115'] + x-timer: ['S1523371399.422450,VS0,VE110'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3eAhSr2iVyJmYQ1rgnhxOS/details + uri: https://api.fastly.com/service/3obbhpGVKLCoquzjvs0dMW/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":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:35Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:35Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"created_at":"2018-04-06T12:24:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:38Z","deployed":false}],"created_at":"2018-04-06T12:24:35Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:35Z","id":"3eAhSr2iVyJmYQ1rgnhxOS","version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:10Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"created_at":"2018-04-10T14:43:11Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:18Z","deployed":false}],"created_at":"2018-04-10T14:43:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:10Z","id":"3obbhpGVKLCoquzjvs0dMW","version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set - 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3eAhSr2iVyJmYQ1rgnhxOS","staging":false,"updated_at":"2018-04-06T12:24:38Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3obbhpGVKLCoquzjvs0dMW","staging":false,"updated_at":"2018-04-10T14:43:18Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:11Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":1000,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -356,13 +622,13 @@ interactions: connection: [keep-alive] content-length: ['3861'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:39 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19134-FRA'] - x-timer: ['S1523017480.586811,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371400.596402,VS0,VE112'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml index a328816..1b3882f 100644 --- a/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_tearDown.yml @@ -6,38 +6,38 @@ 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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false},{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":""}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['918'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:08 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19140-FRA'] - x-timer: ['S1523017508.318912,VS0,VE411'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371432.324722,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -45,46 +45,46 @@ interactions: connection: [keep-alive] content-length: ['4721'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:08 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19147-FRA'] - x-timer: ['S1523017509.887470,VS0,VE109'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371433.527708,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/deactivate + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:09 GMT'] - fastly-ratelimit-remaining: ['735'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:52 GMT'] + fastly-ratelimit-remaining: ['741'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] - x-timer: ['S1523017509.061618,VS0,VE658'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371433.703148,VS0,VE205'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -93,15 +93,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:10 GMT'] - fastly-ratelimit-remaining: ['734'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:53 GMT'] + fastly-ratelimit-remaining: ['740'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017510.808153,VS0,VE447'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371433.972957,VS0,VE403'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml b/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml index 0e7eda2..cac6670 100644 --- a/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml +++ b/tests/fixtures/cassettes/TestFastlyVclSnippets_test_fastly_vcl_snippets_deliver_stale_content.yml @@ -6,106 +6,84 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":""}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['686'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:54 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19149-FRA'] - x-timer: ['S1523017494.253046,VS0,VE403'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371422.724150,VS0,VE152'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:40Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set - 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:24:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:49Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:33Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"text/plain","status":"200","response":"Ok","name":"Set 200 status code","content":"Hello from Fastly","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['3915'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24: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-fra19120-FRA'] - x-timer: ['S1523017495.870666,VS0,VE397'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['230'] + content-length: ['3915'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:55 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19126-FRA'] - x-timer: ['S1523017495.390602,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371422.939808,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/2/clone + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/2/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:53Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:40Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:56 GMT'] - fastly-ratelimit-remaining: ['747'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:42 GMT'] + fastly-ratelimit-remaining: ['753'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017496.571638,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371422.117738,VS0,VE429'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/domain + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/domain response: - body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","created_at":"2018-04-06T12:24:50Z","comment":"","updated_at":"2018-04-06T12:24:50Z"}]'} + body: {string: !!python/unicode '[{"version":3,"name":"example8000.com","deleted_at":null,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","created_at":"2018-04-10T14:43:37Z","comment":"","updated_at":"2018-04-10T14:43:37Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -113,21 +91,21 @@ interactions: connection: [keep-alive] content-length: ['181'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:56 GMT'] + date: ['Tue, 10 Apr 2018 14:43:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017496.129568,VS0,VE411'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371423.753367,VS0,VE407'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/healthcheck + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -137,21 +115,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:57 GMT'] + date: ['Tue, 10 Apr 2018 14:43:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523017497.750489,VS0,VE387'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371423.227968,VS0,VE130'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/condition + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/condition response: body: {string: !!python/unicode '[]'} headers: @@ -161,23 +139,23 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:57 GMT'] + date: ['Tue, 10 Apr 2018 14:43:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017497.200312,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371423.416814,VS0,VE403'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/backend + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:24:50Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:24:50Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:43:37Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:43:37Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -185,21 +163,21 @@ interactions: connection: [keep-alive] content-length: ['718'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:58 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19123-FRA'] - x-timer: ['S1523017498.799751,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371424.910097,VS0,VE388'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/director + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/director response: body: {string: !!python/unicode '[]'} headers: @@ -209,21 +187,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:58 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19121-FRA'] - x-timer: ['S1523017498.420731,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371424.362355,VS0,VE127'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/cache_settings + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -233,21 +211,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:59 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19147-FRA'] - x-timer: ['S1523017499.048278,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371425.551571,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/gzip + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -257,24 +235,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:24:59 GMT'] + date: ['Tue, 10 Apr 2018 14:43:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523017499.226305,VS0,VE389'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371425.725315,VS0,VE378'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/header + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/header response: - body: {string: !!python/unicode '[{"priority":"100","service_id":"3t09WMjn5bK09UHuIl7q1A","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:24:51Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:24:51Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"100","service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:43:38Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:43:38Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -282,21 +260,21 @@ interactions: connection: [keep-alive] content-length: ['415'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:00 GMT'] + date: ['Tue, 10 Apr 2018 14:43:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017500.883059,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371425.164925,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/request_settings + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -306,24 +284,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:00 GMT'] + date: ['Tue, 10 Apr 2018 14:43:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523017500.068533,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371426.609054,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/response_object + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/response_object response: body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"200","name":"Set - 200 status code","content":"Hello from Fastly","deleted_at":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","cache_condition":"","created_at":"2018-04-06T12:24:51Z","content_type":"text/plain","request_condition":"","updated_at":"2018-04-06T12:24:51Z"}]'} + 200 status code","content":"Hello from Fastly","deleted_at":null,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","cache_condition":"","created_at":"2018-04-10T14:43:39Z","content_type":"text/plain","request_condition":"","updated_at":"2018-04-10T14:43:39Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -331,69 +309,21 @@ interactions: connection: [keep-alive] content-length: ['307'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25: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-fra19137-FRA'] - x-timer: ['S1523017500.242880,VS0,VE383'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/vcl - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:00 GMT'] + date: ['Tue, 10 Apr 2018 14:43:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017501.693949,VS0,VE124'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/snippet - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25: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-fra19128-FRA'] - x-timer: ['S1523017501.884655,VS0,VE123'] + x-timer: ['S1523371426.785714,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/syslog + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -403,21 +333,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:01 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19139-FRA'] - x-timer: ['S1523017501.070601,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371426.964017,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/domain/example8000.com + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/domain/example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -426,23 +356,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:02 GMT'] - fastly-ratelimit-remaining: ['746'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:46 GMT'] + fastly-ratelimit-remaining: ['752'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017502.555186,VS0,VE475'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371426.136727,VS0,VE418'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/backend/localhost + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -451,23 +381,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:02 GMT'] - fastly-ratelimit-remaining: ['745'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:46 GMT'] + fastly-ratelimit-remaining: ['751'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017502.184012,VS0,VE177'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371427.666032,VS0,VE164'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/header/Set%20Location%20header + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -476,23 +406,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:02 GMT'] - fastly-ratelimit-remaining: ['744'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:47 GMT'] + fastly-ratelimit-remaining: ['750'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523017502.425360,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371427.893007,VS0,VE428'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/response_object/Set%20200%20status%20code + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/response_object/Set%20200%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -501,41 +431,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:03 GMT'] - fastly-ratelimit-remaining: ['743'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:47 GMT'] + fastly-ratelimit-remaining: ['749'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017503.945070,VS0,VE428'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371427.454774,VS0,VE417'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/domain + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"3t09WMjn5bK09UHuIl7q1A","version":3,"deleted_at":null,"created_at":"2018-04-06T12:25:03Z","updated_at":"2018-04-06T12:25:03Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"example8000.com","service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":3,"deleted_at":null,"created_at":"2018-04-10T14:43:48Z","updated_at":"2018-04-10T14:43:48Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['179'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:03 GMT'] - fastly-ratelimit-remaining: ['742'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:48 GMT'] + fastly-ratelimit-remaining: ['748'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017503.467896,VS0,VE207'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371428.935695,VS0,VE462'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -546,25 +476,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/backend + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3t09WMjn5bK09UHuIl7q1A","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:25:03Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:25:03Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:43:48Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:43:48Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:03 GMT'] - fastly-ratelimit-remaining: ['741'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:49 GMT'] + fastly-ratelimit-remaining: ['747'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017504.738072,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371429.599905,VS0,VE423'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -574,26 +504,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/header + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","version":"3","updated_at":"2018-04-06T12:25:04Z","deleted_at":null,"created_at":"2018-04-06T12:25:04Z"}'} + 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":"4Dd6vJ5n9c4CIvlGGJOwsa","version":"3","updated_at":"2018-04-10T14:43:49Z","deleted_at":null,"created_at":"2018-04-10T14:43:49Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:04 GMT'] - fastly-ratelimit-remaining: ['740'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:49 GMT'] + fastly-ratelimit-remaining: ['746'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017504.962793,VS0,VE403'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371429.085321,VS0,VE430'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "200", "request_condition": "", "name": "Set @@ -601,26 +531,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/response_object + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/response_object response: body: {string: !!python/unicode '{"status":"200","request_condition":"","name":"Set - 200 status code","content":"","content_type":"","response":"Ok","service_id":"3t09WMjn5bK09UHuIl7q1A","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:25:04Z","updated_at":"2018-04-06T12:25:04Z"}'} + 200 status code","content":"","content_type":"","response":"Ok","service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":"3","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:43:49Z","updated_at":"2018-04-10T14:43:49Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:04 GMT'] - fastly-ratelimit-remaining: ['739'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:50 GMT'] + fastly-ratelimit-remaining: ['745'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017504.435129,VS0,VE429'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371430.578878,VS0,VE431'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"content": "\n if (resp.status >= 500 && resp.status @@ -630,95 +560,95 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/snippet + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/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":"3t09WMjn5bK09UHuIl7q1A","version":"3","deleted_at":null,"created_at":"2018-04-06T12:25:05Z","updated_at":"2018-04-06T12:25:05Z","id":"4BRvTlRHoIhk2aUIcClqVR"}'} + stale content","priority":100,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":"3","deleted_at":null,"created_at":"2018-04-10T14:43:50Z","updated_at":"2018-04-10T14:43:50Z","id":"4XHhmJnuM9ORvaeyjn0cpJ"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['452'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:05 GMT'] - fastly-ratelimit-remaining: ['738'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:50 GMT'] + fastly-ratelimit-remaining: ['744'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017505.108509,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371430.099736,VS0,VE130'] 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/3t09WMjn5bK09UHuIl7q1A/version/3/settings + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"3t09WMjn5bK09UHuIl7q1A"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:06 GMT'] - fastly-ratelimit-remaining: ['737'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:50 GMT'] + fastly-ratelimit-remaining: ['743'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523017506.578606,VS0,VE454'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371430.293945,VS0,VE180'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/version/3/activate + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:05Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:50Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:07 GMT'] - fastly-ratelimit-remaining: ['736'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:43:51 GMT'] + fastly-ratelimit-remaining: ['742'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523017506.153791,VS0,VE906'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371431.537825,VS0,VE897'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -726,14 +656,14 @@ interactions: connection: [keep-alive] content-length: ['4721'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:07 GMT'] + date: ['Tue, 10 Apr 2018 14:43:51 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017507.195380,VS0,VE415'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371432.525621,VS0,VE148'] status: {code: 200, message: OK} - request: body: null @@ -742,38 +672,39 @@ 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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":""}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A"}'} + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false},{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":""}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] content-length: ['918'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:07 GMT'] + date: ['Tue, 10 Apr 2018 14:43:51 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017508.736068,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371432.735806,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -781,31 +712,31 @@ interactions: connection: [keep-alive] content-length: ['4721'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:08 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19149-FRA'] - x-timer: ['S1523017508.941687,VS0,VE111'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371432.938893,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/3t09WMjn5bK09UHuIl7q1A/details + uri: https://api.fastly.com/service/4Dd6vJ5n9c4CIvlGGJOwsa/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":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:24:49Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:49Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"created_at":"2018-04-06T12:24:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:25:06Z","deployed":false}],"created_at":"2018-04-06T12:24:49Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:24:49Z","id":"3t09WMjn5bK09UHuIl7q1A","version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:32Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:32Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:33Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"created_at":"2018-04-10T14:43:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:43:51Z","deployed":false}],"created_at":"2018-04-10T14:43:32Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:43:32Z","id":"4Dd6vJ5n9c4CIvlGGJOwsa","version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"3t09WMjn5bK09UHuIl7q1A","staging":false,"updated_at":"2018-04-06T12:25:06Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:24:55Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"4Dd6vJ5n9c4CIvlGGJOwsa","staging":false,"updated_at":"2018-04-10T14:43:51Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:43:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"200","response":"Ok","name":"Set 200 status code","content":"","cache_condition":""}],"snippets":[{"priority":"100","name":"Deliver stale content","content":"\n if (resp.status \u003e= 500 \u0026\u0026 - resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4BRvTlRHoIhk2aUIcClqVR"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + resp.status \u003c 600) {\n if (stale.exists) {\n restart;\n }\n }\n ","dynamic":"0","type":"deliver","id":"4XHhmJnuM9ORvaeyjn0cpJ"}],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -813,13 +744,13 @@ interactions: connection: [keep-alive] content-length: ['4721'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:25:08 GMT'] + date: ['Tue, 10 Apr 2018 14:43: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-fra19138-FRA'] - x-timer: ['S1523017508.116548,VS0,VE110'] + x-timer: ['S1523371432.123880,VS0,VE115'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/tearDown b/tests/fixtures/cassettes/tearDown index 383ee0c..39c0d40 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":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false},{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":""}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false},{"testing":false,"number":3,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-10T14:40:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:18Z","comment":""}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,23 +14,23 @@ interactions: connection: [keep-alive] content-length: ['925'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:20 GMT'] + date: ['Tue, 10 Apr 2018 14:40:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016801.603235,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371227.618956,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/details + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/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":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:20Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO","version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-10T14:40:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:26Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl","version":{"testing":false,"number":3,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-10T14:40:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-10T14:40:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -38,46 +38,46 @@ interactions: connection: [keep-alive] content-length: ['3412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:20 GMT'] + date: ['Tue, 10 Apr 2018 14:40:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016801.804587,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371227.836983,VS0,VE111'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/deactivate + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:20Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-10T14:40:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:26Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:21 GMT'] - fastly-ratelimit-remaining: ['961'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:27 GMT'] + fastly-ratelimit-remaining: ['957'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016801.989756,VS0,VE474'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371227.010091,VS0,VE492'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -86,15 +86,15 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:21 GMT'] - fastly-ratelimit-remaining: ['960'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:27 GMT'] + fastly-ratelimit-remaining: ['956'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016802.528578,VS0,VE407'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371228.565734,VS0,VE403'] 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 0866eb3..b42e991 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":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl"}'} headers: accept-ranges: [bytes] age: ['0'] @@ -14,23 +14,23 @@ interactions: connection: [keep-alive] content-length: ['694'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:17 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19127-FRA'] - x-timer: ['S1523016797.096444,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371218.524155,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/details + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/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":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO","version":{"testing":false,"number":2,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T11:10:02Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T11:04:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl","version":{"testing":false,"number":2,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-06T12:23:30Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: @@ -40,64 +40,430 @@ interactions: connection: [keep-alive] content-length: ['2310'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:17 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19142-FRA'] - x-timer: ['S1523016797.273517,VS0,VE442'] + x-timer: ['S1523371218.701177,VS0,VE151'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version + method: PUT + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/clone response: - body: {string: !!python/unicode '{"service_id":"1v8QhOhOeCbUWWyCuPzUKO","number":3}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:18 GMT'] + date: ['Tue, 10 Apr 2018 14:40:18 GMT'] fastly-ratelimit-remaining: ['966'] - fastly-ratelimit-reset: ['1523019600'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371218.913245,VS0,VE208'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/domain + response: + body: {string: !!python/unicode '[{"version":3,"name":"cdn.example8000.com","deleted_at":null,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","created_at":"2018-04-06T12:23:28Z","comment":"test1","updated_at":"2018-04-06T12:23:28Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['190'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19138-FRA'] + x-timer: ['S1523371218.185139,VS0,VE411'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19144-FRA'] + x-timer: ['S1523371219.864958,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19136-FRA'] + x-timer: ['S1523371219.045234,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/backend + response: + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:23:28Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:23:28Z","comment":""}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['718'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19150-FRA'] + x-timer: ['S1523371219.222066,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19141-FRA'] + x-timer: ['S1523371219.398975,VS0,VE129'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19128-FRA'] + x-timer: ['S1523371220.587115,VS0,VE405'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:20 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371220.094473,VS0,VE115'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/header + response: + body: {string: !!python/unicode '[{"priority":"10","service_id":"2OoDoy0MEvFrKvrn2l5VVl","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:23:29Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:23:29Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['414'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:20 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371220.273702,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:20 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371220.459281,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/response_object + response: + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","cache_condition":"","created_at":"2018-04-06T12:23:30Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:23:30Z"}]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['280'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:21 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371221.957138,VS0,VE439'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:21 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371222.585083,VS0,VE387'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/domain/cdn.example8000.com + 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, 10 Apr 2018 14:40:22 GMT'] + fastly-ratelimit-remaining: ['965'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371222.029099,VS0,VE156'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/backend/localhost + 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, 10 Apr 2018 14:40:22 GMT'] + fastly-ratelimit-remaining: ['964'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371222.245034,VS0,VE425'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/header/Set%20Location%20header + 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, 10 Apr 2018 14:40:22 GMT'] + fastly-ratelimit-remaining: ['963'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371223.836096,VS0,VE151'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/response_object/Set%20302%20status%20code + 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, 10 Apr 2018 14:40:23 GMT'] + fastly-ratelimit-remaining: ['962'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523016798.779468,VS0,VE405'] + x-timer: ['S1523371223.051866,VS0,VE154'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/domain + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"1v8QhOhOeCbUWWyCuPzUKO","version":3,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","updated_at":"2018-04-06T12:13:18Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":3,"deleted_at":null,"created_at":"2018-04-10T14:40:23Z","updated_at":"2018-04-10T14:40:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['183'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:18 GMT'] - fastly-ratelimit-remaining: ['965'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:23 GMT'] + fastly-ratelimit-remaining: ['961'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523016798.247561,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371223.269351,VS0,VE467'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -108,59 +474,59 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/backend + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend.example.net","between_bytes_timeout":10000,"max_conn":200,"port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend.example.net","client_cert":null,"updated_at":"2018-04-06T12:13:18Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":true,"created_at":"2018-04-06T12:13:18Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend.example.net","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend.example.net","between_bytes_timeout":10000,"max_conn":200,"port":443,"ssl_hostname":"my-backend.example.net","shield":null,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend.example.net","client_cert":null,"updated_at":"2018-04-10T14:40:24Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":true,"created_at":"2018-04-10T14:40:24Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['775'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:18 GMT'] - fastly-ratelimit-remaining: ['964'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:24 GMT'] + fastly-ratelimit-remaining: ['960'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523016799.790726,VS0,VE156'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371224.881098,VS0,VE456'] 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/1v8QhOhOeCbUWWyCuPzUKO/version/3/settings + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"1v8QhOhOeCbUWWyCuPzUKO"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"2OoDoy0MEvFrKvrn2l5VVl"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:19 GMT'] - fastly-ratelimit-remaining: ['963'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:24 GMT'] + fastly-ratelimit-remaining: ['959'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523016799.010433,VS0,VE183'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371224.399683,VS0,VE463'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/version/3/activate + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:18Z","deployed":false,"msg":"Warning: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-10T14:40:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:24Z","deployed":false,"msg":"Warning: Backend host `my-backend.example.net` could not be resolved to an IP address: Name or service not known\nat: (input Line 12 Pos 6)\n .host = \"my-backend.example.net\";\n-----####----------------------------"}'} headers: @@ -169,25 +535,25 @@ interactions: connection: [keep-alive] content-length: ['458'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:20 GMT'] - fastly-ratelimit-remaining: ['962'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:26 GMT'] + fastly-ratelimit-remaining: ['958'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523016799.255677,VS0,VE1063'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371225.924647,VS0,VE1255'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/1v8QhOhOeCbUWWyCuPzUKO/details + uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/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":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:16Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:04:16Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T11:04:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T11:10:02Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"created_at":"2018-04-06T12:13:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:20Z","deployed":false}],"created_at":"2018-04-06T11:04:16Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T11:04:16Z","id":"1v8QhOhOeCbUWWyCuPzUKO","version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"1v8QhOhOeCbUWWyCuPzUKO","staging":false,"updated_at":"2018-04-06T12:13:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-10T14:40:18Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:26Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl","version":{"testing":false,"number":3,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-10T14:40:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-10T14:40:26Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:18Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"my-backend.example.net","ssl_hostname":"my-backend.example.net","ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend.example.net","healthcheck":null,"port":443,"max_conn":200,"use_ssl":true,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] @@ -195,13 +561,13 @@ interactions: connection: [keep-alive] content-length: ['3412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:20 GMT'] + date: ['Tue, 10 Apr 2018 14:40:26 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016800.382044,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371226.390053,VS0,VE147'] 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 d8da2a1..19ec168 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_port_not_required +++ b/tests/fixtures/cassettes/test_fastly_backend_port_not_required @@ -15,14 +15,14 @@ interactions: connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:22 GMT'] + date: ['Tue, 10 Apr 2018 14:40:28 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-fra19151-FRA'] - x-timer: ['S1523016802.034374,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371228.042396,VS0,VE118'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -32,97 +32,361 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo - Fastly Ansible Module Test","publish_key":"7f12107dd95606193b90ac6b70fd7b0f966a7695","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:13:22Z","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + Fastly Ansible Module Test","publish_key":"aff48e99464958af08fca2c538cfcc2087acd957","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:40:28Z","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['518'] + content-length: ['516'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:22 GMT'] - fastly-ratelimit-remaining: ['959'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:28 GMT'] + fastly-ratelimit-remaining: ['955'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016802.215369,VS0,VE423'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371228.223318,VS0,VE139'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":1,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:22Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:13:22Z","comment":"","acls":[],"backends":[],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":1,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:28Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:40:28Z","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: ['1047'] + content-length: ['1044'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:23 GMT'] + date: ['Tue, 10 Apr 2018 14:40:28 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016803.702153,VS0,VE486'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371228.425161,VS0,VE149'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version + method: PUT + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/1/clone + response: + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['231'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:28 GMT'] + fastly-ratelimit-remaining: ['954'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371229.639351,VS0,VE217'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:29 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371229.919351,VS0,VE150'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:29 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371229.132870,VS0,VE429'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:29 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371230.723736,VS0,VE147'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/backend response: - body: {string: !!python/unicode '{"service_id":"712MupNjgxT6OzQImAlLw8","number":2}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:23 GMT'] - fastly-ratelimit-remaining: ['958'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:30 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371230.934268,VS0,VE149'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:30 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371230.146452,VS0,VE381'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:30 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016803.253080,VS0,VE141'] + x-timer: ['S1523371231.775200,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19132-FRA'] + x-timer: ['S1523371231.959062,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19151-FRA'] + x-timer: ['S1523371231.143462,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19143-FRA'] + x-timer: ['S1523371231.326870,VS0,VE380'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40: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-fra19122-FRA'] + x-timer: ['S1523371232.769658,VS0,VE112'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:40:32 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371232.942932,VS0,VE120'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":2,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","updated_at":"2018-04-06T12:13:23Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"sElL34MDwVdi6ShBTQYLI","version":2,"deleted_at":null,"created_at":"2018-04-10T14:40:32Z","updated_at":"2018-04-10T14:40:32Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['183'] + content-length: ['182'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:23 GMT'] - fastly-ratelimit-remaining: ['957'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:32 GMT'] + fastly-ratelimit-remaining: ['953'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016803.457896,VS0,VE200'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371232.127255,VS0,VE228'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -133,25 +397,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:23Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:23Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:40:32Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:40:32Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:23 GMT'] - fastly-ratelimit-remaining: ['956'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:32 GMT'] + fastly-ratelimit-remaining: ['952'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523016804.721821,VS0,VE161'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371232.412647,VS0,VE444'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -161,26 +425,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","version":"2","updated_at":"2018-04-06T12:13:24Z","deleted_at":null,"created_at":"2018-04-06T12:13:24Z"}'} + 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":"sElL34MDwVdi6ShBTQYLI","version":"2","updated_at":"2018-04-10T14:40:33Z","deleted_at":null,"created_at":"2018-04-10T14:40:33Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['412'] + content-length: ['411'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:24 GMT'] - fastly-ratelimit-remaining: ['955'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:33 GMT'] + fastly-ratelimit-remaining: ['951'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523016804.945614,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371233.919390,VS0,VE409'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -188,87 +452,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:24Z","updated_at":"2018-04-06T12:13:24Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"sElL34MDwVdi6ShBTQYLI","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:40:33Z","updated_at":"2018-04-10T14:40:33Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:24 GMT'] - fastly-ratelimit-remaining: ['954'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:33 GMT'] + fastly-ratelimit-remaining: ['950'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523016804.157311,VS0,VE431'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371233.394194,VS0,VE410'] 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/712MupNjgxT6OzQImAlLw8/version/2/settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:24 GMT'] - fastly-ratelimit-remaining: ['953'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:34 GMT'] + fastly-ratelimit-remaining: ['949'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016805.653062,VS0,VE172'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371234.910555,VS0,VE439'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/activate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:24Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:33Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:25 GMT'] - fastly-ratelimit-remaining: ['952'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:35 GMT'] + fastly-ratelimit-remaining: ['948'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523016805.888033,VS0,VE930'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371234.413669,VS0,VE724'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:35Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":2,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:28Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:28Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -276,15 +540,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3873'] + content-length: ['3868'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:26 GMT'] + date: ['Tue, 10 Apr 2018 14:40:35 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016806.889468,VS0,VE146'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371235.370143,VS0,VE142'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/test_fastly_backend_weight_even b/tests/fixtures/cassettes/test_fastly_backend_weight_even index a59fd51..7015912 100644 --- a/tests/fixtures/cassettes/test_fastly_backend_weight_even +++ b/tests/fixtures/cassettes/test_fastly_backend_weight_even @@ -6,130 +6,105 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"number":2,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:28Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['692'] + content-length: ['689'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:26 GMT'] + date: ['Tue, 10 Apr 2018 14:40:35 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523016806.161012,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371236.637474,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:35Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":2,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:28Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:25Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:23Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:35Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:28Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3873'] + content-length: ['3868'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:26 GMT'] + date: ['Tue, 10 Apr 2018 14:40:35 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523016806.403735,VS0,VE115'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:26 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523016807.620878,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371236.839539,VS0,VE107'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/2/clone + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/2/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:25Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:35Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['232'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:27 GMT'] - fastly-ratelimit-remaining: ['951'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:36 GMT'] + fastly-ratelimit-remaining: ['947'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523016807.811545,VS0,VE202'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371236.008344,VS0,VE203'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/domain response: - body: {string: !!python/unicode '[{"version":3,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:23Z","comment":"","updated_at":"2018-04-06T12:13:23Z"}]'} + body: {string: !!python/unicode '[{"version":3,"name":"cdn.example8000.com","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","created_at":"2018-04-10T14:40:32Z","comment":"","updated_at":"2018-04-10T14:40:32Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['185'] + content-length: ['184'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:27 GMT'] + date: ['Tue, 10 Apr 2018 14:40:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523016807.077671,VS0,VE412'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371236.275616,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/healthcheck + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -139,21 +114,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:27 GMT'] + date: ['Tue, 10 Apr 2018 14:40:36 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523016808.554870,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371236.463687,VS0,VE405'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/condition + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/condition response: body: {string: !!python/unicode '[]'} headers: @@ -163,45 +138,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:28 GMT'] + date: ['Tue, 10 Apr 2018 14:40:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523016808.741452,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371237.040379,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:23Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:23Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:40:32Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":3,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:40:32Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['718'] + content-length: ['717'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:28 GMT'] + date: ['Tue, 10 Apr 2018 14:40:37 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523016808.292838,VS0,VE162'] + x-timer: ['S1523371237.216889,VS0,VE416'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/director + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/director response: body: {string: !!python/unicode '[]'} headers: @@ -211,45 +186,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:28 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523016809.519123,VS0,VE113'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/cache_settings - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:29 GMT'] + date: ['Tue, 10 Apr 2018 14:40:38 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523016809.696972,VS0,VE446'] + x-timer: ['S1523371238.875461,VS0,VE402'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/gzip + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -259,46 +210,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:29 GMT'] + date: ['Tue, 10 Apr 2018 14:40:38 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016809.230666,VS0,VE405'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371238.384017,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/header - response: - body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:24Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:24Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['414'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:30 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523016810.860976,VS0,VE391'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/request_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -308,46 +234,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:30 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19128-FRA'] - x-timer: ['S1523016810.316654,VS0,VE388'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371239.948066,VS0,VE128'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/header response: - body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"302","name":"Set - 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:13:24Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:24Z"}]'} + body: {string: !!python/unicode '[{"priority":"10","service_id":"sElL34MDwVdi6ShBTQYLI","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:40:33Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"3","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:40:33Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['280'] + content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:31 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19134-FRA'] - x-timer: ['S1523016811.768266,VS0,VE388'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371239.140337,VS0,VE388'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/vcl + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -357,45 +283,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:31 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19135-FRA'] - x-timer: ['S1523016811.220979,VS0,VE166'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371240.755406,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/snippet + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/response_object response: - body: {string: !!python/unicode '[]'} + body: {string: !!python/unicode '[{"response":"Ok","version":"3","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","cache_condition":"","created_at":"2018-04-10T14:40:33Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:40:33Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['279'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:31 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19141-FRA'] - x-timer: ['S1523016811.454920,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371240.927050,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/syslog + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -405,21 +332,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:31 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19139-FRA'] - x-timer: ['S1523016812.636970,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371240.098354,VS0,VE384'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/domain/cdn.example8000.com + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -428,23 +355,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:32 GMT'] - fastly-ratelimit-remaining: ['950'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:40 GMT'] + fastly-ratelimit-remaining: ['946'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523016812.824711,VS0,VE442'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371241.596666,VS0,VE161'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend/localhost + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -453,23 +380,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:32 GMT'] - fastly-ratelimit-remaining: ['949'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:40 GMT'] + fastly-ratelimit-remaining: ['945'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523016812.368857,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371241.823832,VS0,VE158'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/header/Set%20Location%20header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -478,23 +405,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:32 GMT'] - fastly-ratelimit-remaining: ['948'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:41 GMT'] + fastly-ratelimit-remaining: ['944'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523016813.590519,VS0,VE159'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371241.049570,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/response_object/Set%20302%20status%20code + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/response_object/Set%20302%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -503,41 +430,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:32 GMT'] - fastly-ratelimit-remaining: ['947'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:41 GMT'] + fastly-ratelimit-remaining: ['943'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523016813.812924,VS0,VE158'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371241.273323,VS0,VE152'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":3,"deleted_at":null,"created_at":"2018-04-06T12:13:33Z","updated_at":"2018-04-06T12:13:33Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"sElL34MDwVdi6ShBTQYLI","version":3,"deleted_at":null,"created_at":"2018-04-10T14:40:41Z","updated_at":"2018-04-10T14:40:41Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['183'] + content-length: ['182'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:33 GMT'] - fastly-ratelimit-remaining: ['946'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:41 GMT'] + fastly-ratelimit-remaining: ['942'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523016813.035884,VS0,VE458'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371241.490389,VS0,VE186'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -548,25 +475,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend1.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend1.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","client_cert":null,"updated_at":"2018-04-06T12:13:33Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:33Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend1.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend1.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","client_cert":null,"updated_at":"2018-04-10T14:40:42Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:40:42Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['757'] + content-length: ['756'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:34 GMT'] - fastly-ratelimit-remaining: ['945'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:42 GMT'] + fastly-ratelimit-remaining: ['941'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523016814.560233,VS0,VE446'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371242.741610,VS0,VE448'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -577,59 +504,59 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend2.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend2.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","client_cert":null,"updated_at":"2018-04-06T12:13:34Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:34Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"my-backend2.example.net","weight":50,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"my-backend2.example.net","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":3,"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","client_cert":null,"updated_at":"2018-04-10T14:40:42Z","ipv4":null,"ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:40:42Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['757'] + content-length: ['756'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:34 GMT'] - fastly-ratelimit-remaining: ['944'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:42 GMT'] + fastly-ratelimit-remaining: ['940'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523016814.246165,VS0,VE193'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371242.254838,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/712MupNjgxT6OzQImAlLw8/version/3/settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":3,"general.default_host":"","general.default_pci":0,"service_id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:35 GMT'] - fastly-ratelimit-remaining: ['943'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:42 GMT'] + fastly-ratelimit-remaining: ['939'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523016815.505703,VS0,VE662'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371242.470299,VS0,VE443'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/activate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:34Z","deployed":false,"msg":"Warning: + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:42Z","deployed":false,"msg":"Warning: Backend host `my-backend1.example.net` could not be resolved to an IP address: Name or service not known\nat: (input Line 12 Pos 6)\n .host = \"my-backend1.example.net\";\n-----####-----------------------------\nWarning: Backend host `my-backend2.example.net` could not be resolved to an IP address: @@ -640,41 +567,41 @@ interactions: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['839'] + content-length: ['838'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:36 GMT'] - fastly-ratelimit-remaining: ['942'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:44 GMT'] + fastly-ratelimit-remaining: ['938'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523016815.232883,VS0,VE1106'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371243.975178,VS0,VE1395'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":3,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:44Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:44Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4611'] + content-length: ['4605'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:37 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19133-FRA'] - x-timer: ['S1523016817.544435,VS0,VE472'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371244.432440,VS0,VE152'] 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 b87c9d3..8d16f3a 100644 --- a/tests/fixtures/cassettes/test_fastly_domain_comment_not_required +++ b/tests/fixtures/cassettes/test_fastly_domain_comment_not_required @@ -6,126 +6,102 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"number":3,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:44Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:36Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['924'] + content-length: ['920'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:37 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19145-FRA'] - x-timer: ['S1523016817.329450,VS0,VE516'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:36Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:26Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['4611'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:38 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523016818.909104,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371245.786790,VS0,VE144'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/details response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":3,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":3,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:44Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":3,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:44Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:36Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend1.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend1.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend1.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null},{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":"my-backend2.example.net","ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":50,"client_cert":null,"address":"my-backend2.example.net","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":null,"connect_timeout":1000,"ssl_ciphers":null,"name":"my-backend2.example.net","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[],"healthchecks":[],"request_settings":[],"response_objects":[],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['230'] + content-length: ['4605'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:38 GMT'] + date: ['Tue, 10 Apr 2018 14:40:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016818.088393,VS0,VE378'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371245.991520,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/3/clone + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/3/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['232'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:39 GMT'] - fastly-ratelimit-remaining: ['941'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:45 GMT'] + fastly-ratelimit-remaining: ['937'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523016819.630216,VS0,VE470'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371245.163870,VS0,VE488'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/domain response: - body: {string: !!python/unicode '[{"version":4,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:33Z","comment":"","updated_at":"2018-04-06T12:13:33Z"}]'} + body: {string: !!python/unicode '[{"version":4,"name":"cdn.example8000.com","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","created_at":"2018-04-10T14:40:41Z","comment":"","updated_at":"2018-04-10T14:40:41Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['185'] + content-length: ['184'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:39 GMT'] + date: ['Tue, 10 Apr 2018 14:40:45 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523016819.160377,VS0,VE403'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371246.817520,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/healthcheck + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -135,21 +111,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:39 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19142-FRA'] - x-timer: ['S1523016820.627551,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371246.001373,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/condition + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/condition response: body: {string: !!python/unicode '[]'} headers: @@ -159,69 +135,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:39 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19130-FRA'] - x-timer: ['S1523016820.806668,VS0,VE121'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend - response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":50,"address":"my-backend1.example.net","updated_at":"2018-04-06T12:13:33Z","connect_timeout":1000,"ipv4":null,"ssl_ciphers":null,"name":"my-backend1.example.net","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:33Z","comment":""},{"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":50,"address":"my-backend2.example.net","updated_at":"2018-04-06T12:13:34Z","connect_timeout":1000,"ipv4":null,"ssl_ciphers":null,"name":"my-backend2.example.net","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:34Z","comment":""}]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['1517'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13: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-fra19149-FRA'] - x-timer: ['S1523016820.992365,VS0,VE395'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371246.181690,VS0,VE382'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/director + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/backend response: - body: {string: !!python/unicode '[]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend1.example.net","error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":50,"address":"my-backend1.example.net","updated_at":"2018-04-10T14:40:42Z","connect_timeout":1000,"ipv4":null,"ssl_ciphers":null,"name":"my-backend1.example.net","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:40:42Z","comment":""},{"max_tls_version":null,"ssl_client_cert":null,"hostname":"my-backend2.example.net","error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":50,"address":"my-backend2.example.net","updated_at":"2018-04-10T14:40:42Z","connect_timeout":1000,"ipv4":null,"ssl_ciphers":null,"name":"my-backend2.example.net","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:40:42Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['1515'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:40 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19126-FRA'] - x-timer: ['S1523016821.511190,VS0,VE382'] + x-timer: ['S1523371247.627569,VS0,VE126'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/cache_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/director response: body: {string: !!python/unicode '[]'} headers: @@ -231,45 +183,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:41 GMT'] + date: ['Tue, 10 Apr 2018 14:40:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523016821.955894,VS0,VE407'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/gzip - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13: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-fra19128-FRA'] - x-timer: ['S1523016821.428056,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371247.817289,VS0,VE380'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -279,21 +207,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:42 GMT'] + date: ['Tue, 10 Apr 2018 14:40:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016822.610660,VS0,VE405'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371247.278627,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/request_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -303,21 +231,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:42 GMT'] + date: ['Tue, 10 Apr 2018 14:40:47 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523016822.103271,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371247.454529,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/header response: body: {string: !!python/unicode '[]'} headers: @@ -327,21 +255,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:42 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19150-FRA'] - x-timer: ['S1523016822.306293,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371248.670110,VS0,VE401'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/vcl + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -351,21 +279,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:42 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19145-FRA'] - x-timer: ['S1523016822.483613,VS0,VE378'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371248.130091,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/snippet + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/response_object response: body: {string: !!python/unicode '[]'} headers: @@ -375,21 +303,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:43 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19127-FRA'] - x-timer: ['S1523016823.927034,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371249.741897,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/syslog + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -399,21 +327,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:43 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19120-FRA'] - x-timer: ['S1523016823.111383,VS0,VE400'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371249.917872,VS0,VE145'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/domain/cdn.example8000.com + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -422,23 +350,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:44 GMT'] - fastly-ratelimit-remaining: ['940'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:49 GMT'] + fastly-ratelimit-remaining: ['936'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016824.616622,VS0,VE442'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371249.126103,VS0,VE423'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend/my-backend1.example.net + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/backend/my-backend1.example.net response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -447,23 +375,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:44 GMT'] - fastly-ratelimit-remaining: ['939'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:49 GMT'] + fastly-ratelimit-remaining: ['935'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016824.169211,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371250.785450,VS0,VE163'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend/my-backend2.example.net + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/backend/my-backend2.example.net response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -472,41 +400,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:44 GMT'] - fastly-ratelimit-remaining: ['938'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:50 GMT'] + fastly-ratelimit-remaining: ['934'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016824.390782,VS0,VE433'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371250.011827,VS0,VE155'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":4,"deleted_at":null,"created_at":"2018-04-06T12:13:45Z","updated_at":"2018-04-06T12:13:45Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"sElL34MDwVdi6ShBTQYLI","version":4,"deleted_at":null,"created_at":"2018-04-10T14:40:50Z","updated_at":"2018-04-10T14:40:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['183'] + content-length: ['182'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:45 GMT'] - fastly-ratelimit-remaining: ['937'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:50 GMT'] + fastly-ratelimit-remaining: ['933'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016825.888202,VS0,VE191'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371250.270890,VS0,VE196'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -517,25 +445,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:45Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:45Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:40:50Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:40:50Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:45 GMT'] - fastly-ratelimit-remaining: ['936'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:50 GMT'] + fastly-ratelimit-remaining: ['932'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523016825.143074,VS0,VE447'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371251.526837,VS0,VE427'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -545,26 +473,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":"4","updated_at":"2018-04-06T12:13:45Z","deleted_at":null,"created_at":"2018-04-06T12:13:45Z"}'} + 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":"sElL34MDwVdi6ShBTQYLI","version":"4","updated_at":"2018-04-10T14:40:51Z","deleted_at":null,"created_at":"2018-04-10T14:40:51Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['412'] + content-length: ['411'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:45 GMT'] - fastly-ratelimit-remaining: ['935'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:51 GMT'] + fastly-ratelimit-remaining: ['931'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016826.690413,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371251.023552,VS0,VE437'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -572,87 +500,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"4","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:45Z","updated_at":"2018-04-06T12:13:45Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"sElL34MDwVdi6ShBTQYLI","version":"4","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:40:52Z","updated_at":"2018-04-10T14:40:52Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:46 GMT'] - fastly-ratelimit-remaining: ['934'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:52 GMT'] + fastly-ratelimit-remaining: ['930'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016826.899686,VS0,VE141'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371252.663387,VS0,VE431'] 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/712MupNjgxT6OzQImAlLw8/version/4/settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:46 GMT'] - fastly-ratelimit-remaining: ['933'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:52 GMT'] + fastly-ratelimit-remaining: ['929'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523016826.106107,VS0,VE174'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371252.159881,VS0,VE173'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/activate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:45Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:46 GMT'] - fastly-ratelimit-remaining: ['932'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:53 GMT'] + fastly-ratelimit-remaining: ['928'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016826.345406,VS0,VE604'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371252.399678,VS0,VE639'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":4,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -660,15 +588,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4337'] + content-length: ['4330'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:47 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19128-FRA'] - x-timer: ['S1523016827.197225,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371253.127598,VS0,VE160'] 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 a5ee2a0..15b1f41 100644 --- a/tests/fixtures/cassettes/test_fastly_header_action_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_action_not_required @@ -6,32 +6,33 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"number":4,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:45Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1156'] + content-length: ['1151'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:47 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19145-FRA'] - x-timer: ['S1523016827.479360,VS0,VE398'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371253.422393,VS0,VE249'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":4,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:46Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:39Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":4,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:40:52Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:45Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -39,96 +40,72 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4337'] + content-length: ['4330'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:48 GMT'] + date: ['Tue, 10 Apr 2018 14:40:54 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016828.941979,VS0,VE116'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":4,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13: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-fra19120-FRA'] - x-timer: ['S1523016828.122111,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371254.736135,VS0,VE405'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/4/clone + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/4/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['232'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:48 GMT'] - fastly-ratelimit-remaining: ['931'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:54 GMT'] + fastly-ratelimit-remaining: ['927'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016828.311747,VS0,VE203'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371254.254127,VS0,VE471'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/domain response: - body: {string: !!python/unicode '[{"version":5,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:45Z","comment":"","updated_at":"2018-04-06T12:13:45Z"}]'} + body: {string: !!python/unicode '[{"version":5,"name":"cdn.example8000.com","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","created_at":"2018-04-10T14:40:50Z","comment":"","updated_at":"2018-04-10T14:40:50Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['185'] + content-length: ['184'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:48 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19128-FRA'] - x-timer: ['S1523016829.576075,VS0,VE397'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371255.799237,VS0,VE414'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/healthcheck + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -138,21 +115,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:49 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19150-FRA'] - x-timer: ['S1523016829.076661,VS0,VE409'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371255.421209,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/condition + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/condition response: body: {string: !!python/unicode '[]'} headers: @@ -162,45 +139,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:49 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19137-FRA'] - x-timer: ['S1523016830.550146,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371256.596381,VS0,VE403'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:45Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":5,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:45Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:40:50Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":5,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:40:50Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['718'] + content-length: ['717'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:50 GMT'] + date: ['Tue, 10 Apr 2018 14:40:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523016830.735811,VS0,VE411'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371256.062682,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/director + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/director response: body: {string: !!python/unicode '[]'} headers: @@ -210,21 +187,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:50 GMT'] + date: ['Tue, 10 Apr 2018 14:40:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523016830.217015,VS0,VE378'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371256.249276,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/cache_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -234,21 +211,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + date: ['Tue, 10 Apr 2018 14:40:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523016831.855011,VS0,VE390'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371256.428609,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/gzip + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -258,46 +235,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + date: ['Tue, 10 Apr 2018 14:40:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523016831.482519,VS0,VE111'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371257.611493,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/header response: - body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:45Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"5","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:45Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"10","service_id":"sElL34MDwVdi6ShBTQYLI","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:40:51Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"5","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:40:51Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['414'] + content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + date: ['Tue, 10 Apr 2018 14:40:56 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523016832.656372,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371257.796705,VS0,VE127'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/request_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -307,70 +284,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:51 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19122-FRA'] - x-timer: ['S1523016832.847710,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371257.987784,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/response_object response: body: {string: !!python/unicode '[{"response":"Ok","version":"5","status":"302","name":"Set - 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:13:45Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:45Z"}]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['280'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13: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-fra19142-FRA'] - x-timer: ['S1523016832.031873,VS0,VE116'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/vcl - response: - body: {string: !!python/unicode '[]'} + 302 status code","content":"","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","cache_condition":"","created_at":"2018-04-10T14:40:52Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:40:52Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['279'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:52 GMT'] + date: ['Tue, 10 Apr 2018 14:40: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-fra19123-FRA'] - x-timer: ['S1523016832.212975,VS0,VE122'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371257.168424,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/snippet + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -380,45 +333,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:52 GMT'] + date: ['Tue, 10 Apr 2018 14:40:58 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523016832.397846,VS0,VE380'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/syslog - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13: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-fra19151-FRA'] - x-timer: ['S1523016833.842574,VS0,VE420'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371258.721219,VS0,VE404'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/domain/cdn.example8000.com + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -427,23 +356,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:53 GMT'] - fastly-ratelimit-remaining: ['930'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:58 GMT'] + fastly-ratelimit-remaining: ['926'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523016833.371267,VS0,VE157'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371258.208809,VS0,VE155'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/backend/localhost + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -452,23 +381,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:54 GMT'] - fastly-ratelimit-remaining: ['929'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:58 GMT'] + fastly-ratelimit-remaining: ['925'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523016834.611000,VS0,VE452'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371258.423881,VS0,VE168'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/header/Set%20Location%20header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -477,23 +406,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:54 GMT'] - fastly-ratelimit-remaining: ['928'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:59 GMT'] + fastly-ratelimit-remaining: ['924'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523016834.195463,VS0,VE155'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371259.656783,VS0,VE425'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/response_object/Set%20302%20status%20code + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/response_object/Set%20302%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -502,41 +431,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:54 GMT'] - fastly-ratelimit-remaining: ['927'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:59 GMT'] + fastly-ratelimit-remaining: ['923'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523016834.415702,VS0,VE427'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371259.185824,VS0,VE157'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/domain response: - body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":5,"deleted_at":null,"created_at":"2018-04-06T12:13:55Z","updated_at":"2018-04-06T12:13:55Z"}'} + body: {string: !!python/unicode '{"comment":"","name":"cdn.example8000.com","service_id":"sElL34MDwVdi6ShBTQYLI","version":5,"deleted_at":null,"created_at":"2018-04-10T14:40:59Z","updated_at":"2018-04-10T14:40:59Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['183'] + content-length: ['182'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:55 GMT'] - fastly-ratelimit-remaining: ['926'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:59 GMT'] + fastly-ratelimit-remaining: ['922'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523016835.910572,VS0,VE248'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371259.406964,VS0,VE190'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -547,25 +476,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":5,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:13:55Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:13:55Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":5,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:40:59Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:40:59Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:55 GMT'] - fastly-ratelimit-remaining: ['925'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:40:59 GMT'] + fastly-ratelimit-remaining: ['921'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016835.223669,VS0,VE435'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371260.662500,VS0,VE160'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -575,26 +504,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","version":"5","updated_at":"2018-04-06T12:13:56Z","deleted_at":null,"created_at":"2018-04-06T12:13:56Z"}'} + 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":"sElL34MDwVdi6ShBTQYLI","version":"5","updated_at":"2018-04-10T14:41:00Z","deleted_at":null,"created_at":"2018-04-10T14:41:00Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['413'] + content-length: ['412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:56 GMT'] - fastly-ratelimit-remaining: ['924'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:00 GMT'] + fastly-ratelimit-remaining: ['920'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523016836.867771,VS0,VE440'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371260.887547,VS0,VE439'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -602,102 +531,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"5","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:13:56Z","updated_at":"2018-04-06T12:13:56Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"sElL34MDwVdi6ShBTQYLI","version":"5","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:41:00Z","updated_at":"2018-04-10T14:41:00Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:56 GMT'] - fastly-ratelimit-remaining: ['923'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:00 GMT'] + fastly-ratelimit-remaining: ['919'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016836.493885,VS0,VE411'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371260.391578,VS0,VE148'] 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/712MupNjgxT6OzQImAlLw8/version/5/settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:57 GMT'] - fastly-ratelimit-remaining: ['922'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:01 GMT'] + fastly-ratelimit-remaining: ['918'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523016837.119165,VS0,VE513'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371261.604493,VS0,VE445'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/activate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:56Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:00Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:58 GMT'] - fastly-ratelimit-remaining: ['921'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:01 GMT'] + fastly-ratelimit-remaining: ['917'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523016838.699109,VS0,VE1142'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371261.107739,VS0,VE815'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4571'] + content-length: ['4563'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:59 GMT'] + date: ['Tue, 10 Apr 2018 14:41:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016839.906117,VS0,VE151'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371262.983825,VS0,VE158'] 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 93b18ab..fb7ff85 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,59 +6,60 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1388'] + content-length: ['1382'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:59 GMT'] + date: ['Tue, 10 Apr 2018 14:41:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016839.178214,VS0,VE143'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371262.263815,VS0,VE430'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4571'] + content-length: ['4563'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:59 GMT'] + date: ['Tue, 10 Apr 2018 14:41:02 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016839.391866,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371263.761397,VS0,VE123'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -66,15 +67,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4571'] + content-length: ['4563'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:13:59 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19136-FRA'] - x-timer: ['S1523016840.568381,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371263.948052,VS0,VE117'] 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 e31da2f..bdbf007 100644 --- a/tests/fixtures/cassettes/test_fastly_header_priority_not_required +++ b/tests/fixtures/cassettes/test_fastly_header_priority_not_required @@ -6,61 +6,60 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1388'] + content-length: ['1382'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:00 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19133-FRA'] - x-timer: ['S1523016840.083729,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371263.177470,VS0,VE142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4571'] + content-length: ['4563'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:00 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19130-FRA'] - x-timer: ['S1523016840.292884,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371263.375737,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -68,15 +67,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4571'] + content-length: ['4563'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:00 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19149-FRA'] - x-timer: ['S1523016840.477484,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371264.546765,VS0,VE119'] 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 f50ad72..6b183ed 100644 --- a/tests/fixtures/cassettes/test_service_does_exist +++ b/tests/fixtures/cassettes/test_service_does_exist @@ -6,128 +6,106 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1388'] + content-length: ['1382'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:00 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19128-FRA'] - x-timer: ['S1523016841.749766,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371264.825638,VS0,VE154'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:13:58Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:13:48Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":5,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:01Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:40:54Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"100","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4571'] + content-length: ['4563'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:01 GMT'] + date: ['Tue, 10 Apr 2018 14:41:04 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016841.949121,VS0,VE107'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":5,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14: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-fra19122-FRA'] - x-timer: ['S1523016841.119350,VS0,VE124'] + x-timer: ['S1523371264.041728,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/5/clone + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/5/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['232'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:01 GMT'] - fastly-ratelimit-remaining: ['920'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:04 GMT'] + fastly-ratelimit-remaining: ['916'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016841.308108,VS0,VE440'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371264.225059,VS0,VE209'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/domain response: - body: {string: !!python/unicode '[{"version":6,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:13:55Z","comment":"","updated_at":"2018-04-06T12:13:55Z"}]'} + body: {string: !!python/unicode '[{"version":6,"name":"cdn.example8000.com","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","created_at":"2018-04-10T14:40:59Z","comment":"","updated_at":"2018-04-10T14:40:59Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['185'] + content-length: ['184'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:02 GMT'] + date: ['Tue, 10 Apr 2018 14:41:04 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016842.924031,VS0,VE386'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371264.496937,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/healthcheck + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -137,21 +115,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:02 GMT'] + date: ['Tue, 10 Apr 2018 14:41:04 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016842.377083,VS0,VE407'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371265.679577,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/condition + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/condition response: body: {string: !!python/unicode '[]'} headers: @@ -161,69 +139,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:02 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19146-FRA'] - x-timer: ['S1523016843.848889,VS0,VE120'] + x-timer: ['S1523371265.859004,VS0,VE402'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:13:55Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":6,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:13:55Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:40:59Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":6,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:40:59Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['718'] + content-length: ['717'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:03 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19151-FRA'] - x-timer: ['S1523016843.033059,VS0,VE127'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/director - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14: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-fra19121-FRA'] - x-timer: ['S1523016843.223060,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371265.454770,VS0,VE410'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/cache_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/director response: body: {string: !!python/unicode '[]'} headers: @@ -233,21 +187,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:03 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19151-FRA'] - x-timer: ['S1523016843.404840,VS0,VE410'] + x-timer: ['S1523371266.075613,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/gzip + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -257,46 +211,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:04 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19122-FRA'] - x-timer: ['S1523016844.012736,VS0,VE118'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/header - response: - body: {string: !!python/unicode '[{"priority":"100","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:13:56Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"6","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:13:56Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['415'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:04 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523016844.194718,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371266.254472,VS0,VE379'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/request_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -306,46 +235,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:05 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19145-FRA'] - x-timer: ['S1523016845.744502,VS0,VE388'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371267.695726,VS0,VE124'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/header response: - body: {string: !!python/unicode '[{"response":"Ok","version":"6","status":"302","name":"Set - 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:13:56Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:13:56Z"}]'} + body: {string: !!python/unicode '[{"priority":"100","service_id":"sElL34MDwVdi6ShBTQYLI","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:41:00Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"6","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:41:00Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['280'] + content-length: ['414'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:05 GMT'] + date: ['Tue, 10 Apr 2018 14:41:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016845.293197,VS0,VE505'] + x-timer: ['S1523371267.880569,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/vcl + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -355,45 +284,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:06 GMT'] + date: ['Tue, 10 Apr 2018 14:41:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016846.893056,VS0,VE382'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371267.068332,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/snippet + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/response_object response: - body: {string: !!python/unicode '[]'} + body: {string: !!python/unicode '[{"response":"Ok","version":"6","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","cache_condition":"","created_at":"2018-04-10T14:41:00Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:41:00Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['279'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:06 GMT'] + date: ['Tue, 10 Apr 2018 14:41:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016846.418108,VS0,VE386'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371267.245667,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/syslog + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -403,21 +333,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:07 GMT'] + date: ['Tue, 10 Apr 2018 14:41:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523016847.867521,VS0,VE372'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371267.426265,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/domain/cdn.example8000.com + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -426,23 +356,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:07 GMT'] - fastly-ratelimit-remaining: ['919'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:08 GMT'] + fastly-ratelimit-remaining: ['915'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523016847.306704,VS0,VE160'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371268.607560,VS0,VE445'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/backend/localhost + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -451,23 +381,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:07 GMT'] - fastly-ratelimit-remaining: ['918'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:08 GMT'] + fastly-ratelimit-remaining: ['914'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016848.531191,VS0,VE438'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371268.123589,VS0,VE155'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/header/Set%20Location%20header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -476,23 +406,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:08 GMT'] - fastly-ratelimit-remaining: ['917'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:08 GMT'] + fastly-ratelimit-remaining: ['913'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016848.035833,VS0,VE422'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371268.343260,VS0,VE430'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/response_object/Set%20302%20status%20code + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/response_object/Set%20302%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -501,41 +431,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:08 GMT'] - fastly-ratelimit-remaining: ['916'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:09 GMT'] + fastly-ratelimit-remaining: ['912'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523016849.607881,VS0,VE159'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371269.000277,VS0,VE159'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":6,"deleted_at":null,"created_at":"2018-04-06T12:14:09Z","updated_at":"2018-04-06T12:14:09Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"sElL34MDwVdi6ShBTQYLI","version":6,"deleted_at":null,"created_at":"2018-04-10T14:41:09Z","updated_at":"2018-04-10T14:41:09Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['187'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:09 GMT'] - fastly-ratelimit-remaining: ['915'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:09 GMT'] + fastly-ratelimit-remaining: ['911'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016849.832484,VS0,VE487'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371269.226703,VS0,VE456'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -546,25 +476,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":6,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:14:09Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:14:09Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":6,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:41:10Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:41:10Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:09 GMT'] - fastly-ratelimit-remaining: ['914'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:10 GMT'] + fastly-ratelimit-remaining: ['910'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016849.449520,VS0,VE432'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371270.843746,VS0,VE427'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -574,26 +504,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","version":"6","updated_at":"2018-04-06T12:14:10Z","deleted_at":null,"created_at":"2018-04-06T12:14:10Z"}'} + 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":"sElL34MDwVdi6ShBTQYLI","version":"6","updated_at":"2018-04-10T14:41:10Z","deleted_at":null,"created_at":"2018-04-10T14:41:10Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['412'] + content-length: ['411'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:10 GMT'] - fastly-ratelimit-remaining: ['913'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:10 GMT'] + fastly-ratelimit-remaining: ['909'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016850.971965,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371270.362932,VS0,VE434'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -601,103 +531,103 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"6","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:14:10Z","updated_at":"2018-04-06T12:14:10Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"sElL34MDwVdi6ShBTQYLI","version":"6","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:41:11Z","updated_at":"2018-04-10T14:41:11Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:10 GMT'] - fastly-ratelimit-remaining: ['912'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:11 GMT'] + fastly-ratelimit-remaining: ['908'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523016850.182732,VS0,VE452'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371271.886673,VS0,VE432'] 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/712MupNjgxT6OzQImAlLw8/version/6/settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":6,"general.default_host":"","general.default_pci":0,"service_id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:10 GMT'] - fastly-ratelimit-remaining: ['911'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:11 GMT'] + fastly-ratelimit-remaining: ['907'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016851.703096,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371271.402411,VS0,VE138'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/activate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:10Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:11Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:11 GMT'] - fastly-ratelimit-remaining: ['910'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:12 GMT'] + fastly-ratelimit-remaining: ['906'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523016851.940558,VS0,VE863'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371272.602715,VS0,VE592'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":6,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:04Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:04Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['4811'] + content-length: ['4802'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:12 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19128-FRA'] - x-timer: ['S1523016852.949843,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371272.258332,VS0,VE435'] status: {code: 200, message: OK} - request: body: null @@ -706,129 +636,106 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"number":6,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:04Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1620'] + content-length: ['1613'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:12 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19135-FRA'] - x-timer: ['S1523016852.155312,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371273.755686,VS0,VE142'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":6,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:04Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:11Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:01Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":6,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:12Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:04Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['4811'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14: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-fra19128-FRA'] - x-timer: ['S1523016853.676905,VS0,VE109'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":6,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['230'] + content-length: ['4802'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:12 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19130-FRA'] - x-timer: ['S1523016853.850272,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371273.962752,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/6/clone + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/6/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['232'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:13 GMT'] - fastly-ratelimit-remaining: ['909'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:13 GMT'] + fastly-ratelimit-remaining: ['905'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523016853.035246,VS0,VE484'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371273.147798,VS0,VE170'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/domain response: - body: {string: !!python/unicode '[{"version":7,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:09Z","comment":"test1","updated_at":"2018-04-06T12:14:09Z"}]'} + body: {string: !!python/unicode '[{"version":7,"name":"cdn.example8000.com","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","created_at":"2018-04-10T14:41:09Z","comment":"test1","updated_at":"2018-04-10T14:41:09Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['190'] + content-length: ['189'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:13 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19138-FRA'] - x-timer: ['S1523016854.624864,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371273.383468,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/healthcheck + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -838,21 +745,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:13 GMT'] + date: ['Tue, 10 Apr 2018 14:41:14 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523016854.819769,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371274.018595,VS0,VE125'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/condition + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/condition response: body: {string: !!python/unicode '[]'} headers: @@ -862,45 +769,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + date: ['Tue, 10 Apr 2018 14:41:14 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523016854.001184,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371274.204438,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:09Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":7,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:09Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:41:10Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":7,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:41:10Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['718'] + content-length: ['717'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + date: ['Tue, 10 Apr 2018 14:41:14 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523016854.190335,VS0,VE121'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371274.388420,VS0,VE414'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/director + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/director response: body: {string: !!python/unicode '[]'} headers: @@ -910,21 +817,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + date: ['Tue, 10 Apr 2018 14:41:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523016854.378003,VS0,VE123'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523371275.885942,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/cache_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -934,21 +841,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:14 GMT'] + date: ['Tue, 10 Apr 2018 14:41:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523016855.567538,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371275.070629,VS0,VE382'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/gzip + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -958,46 +865,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:15 GMT'] + date: ['Tue, 10 Apr 2018 14:41:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523016855.085989,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371276.688980,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/header response: - body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:10Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"7","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:10Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"10","service_id":"sElL34MDwVdi6ShBTQYLI","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:41:10Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"7","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:41:10Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['414'] + content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:15 GMT'] + date: ['Tue, 10 Apr 2018 14:41:15 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523016855.281056,VS0,VE403'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371276.871771,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/request_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -1007,94 +914,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:16 GMT'] + date: ['Tue, 10 Apr 2018 14:41:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523016856.805918,VS0,VE386'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371276.056188,VS0,VE377'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/response_object response: body: {string: !!python/unicode '[{"response":"Ok","version":"7","status":"302","name":"Set - 302 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:10Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:10Z"}]'} + 302 status code","content":"","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","cache_condition":"","created_at":"2018-04-10T14:41:11Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:41:11Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['280'] + content-length: ['279'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:16 GMT'] + date: ['Tue, 10 Apr 2018 14:41:16 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523016856.448778,VS0,VE125'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/vcl - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14: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-fra19136-FRA'] - x-timer: ['S1523016857.641078,VS0,VE1847'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/snippet - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14: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-fra19145-FRA'] - x-timer: ['S1523016859.558331,VS0,VE408'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523371277.520454,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/syslog + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -1104,21 +963,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:33 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19132-FRA'] - x-timer: ['S1523016873.773536,VS0,VE403'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371277.700181,VS0,VE379'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/domain/cdn.example8000.com + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1127,23 +986,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:33 GMT'] - fastly-ratelimit-remaining: ['908'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:17 GMT'] + fastly-ratelimit-remaining: ['904'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] - x-timer: ['S1523016873.251930,VS0,VE447'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371277.154373,VS0,VE163'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/backend/localhost + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1152,23 +1011,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:35 GMT'] - fastly-ratelimit-remaining: ['907'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:17 GMT'] + fastly-ratelimit-remaining: ['903'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523016875.756491,VS0,VE534'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371277.381618,VS0,VE159'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/header/Set%20Location%20header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1177,23 +1036,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:39 GMT'] - fastly-ratelimit-remaining: ['906'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:18 GMT'] + fastly-ratelimit-remaining: ['902'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523016879.218299,VS0,VE444'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371278.606146,VS0,VE425'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/response_object/Set%20302%20status%20code + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/response_object/Set%20302%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1202,41 +1061,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:40 GMT'] - fastly-ratelimit-remaining: ['905'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:18 GMT'] + fastly-ratelimit-remaining: ['901'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523016880.791121,VS0,VE454'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371278.096499,VS0,VE160'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":7,"deleted_at":null,"created_at":"2018-04-06T12:14:41Z","updated_at":"2018-04-06T12:14:41Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"sElL34MDwVdi6ShBTQYLI","version":7,"deleted_at":null,"created_at":"2018-04-10T14:41:18Z","updated_at":"2018-04-10T14:41:18Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['187'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:41 GMT'] - fastly-ratelimit-remaining: ['904'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:18 GMT'] + fastly-ratelimit-remaining: ['900'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523016881.639459,VS0,VE480'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371278.319930,VS0,VE484'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -1247,25 +1106,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":7,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:14:41Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":7,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:41:18Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:41:18Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:41 GMT'] - fastly-ratelimit-remaining: ['903'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:19 GMT'] + fastly-ratelimit-remaining: ['899'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523016881.258356,VS0,VE422'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523371279.887510,VS0,VE158'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -1275,26 +1134,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","version":"7","updated_at":"2018-04-06T12:14:42Z","deleted_at":null,"created_at":"2018-04-06T12:14:42Z"}'} + 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":"sElL34MDwVdi6ShBTQYLI","version":"7","updated_at":"2018-04-10T14:41:19Z","deleted_at":null,"created_at":"2018-04-10T14:41:19Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['412'] + content-length: ['411'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:42 GMT'] - fastly-ratelimit-remaining: ['902'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:19 GMT'] + fastly-ratelimit-remaining: ['898'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523016882.067807,VS0,VE429'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371279.110124,VS0,VE145'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -1302,87 +1161,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"7","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:14:43Z","updated_at":"2018-04-06T12:14:43Z"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"sElL34MDwVdi6ShBTQYLI","version":"7","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:41:19Z","updated_at":"2018-04-10T14:41:19Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:43 GMT'] - fastly-ratelimit-remaining: ['901'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:19 GMT'] + fastly-ratelimit-remaining: ['897'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523016883.125218,VS0,VE433'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371279.317383,VS0,VE145'] 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/712MupNjgxT6OzQImAlLw8/version/7/settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":7,"general.default_host":"","general.default_pci":0,"service_id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:44 GMT'] - fastly-ratelimit-remaining: ['900'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:19 GMT'] + fastly-ratelimit-remaining: ['896'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] - x-timer: ['S1523016884.220920,VS0,VE432'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371280.524996,VS0,VE437'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/activate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:43Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:19Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['241'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:45 GMT'] - fastly-ratelimit-remaining: ['899'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:20 GMT'] + fastly-ratelimit-remaining: ['895'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523016885.780368,VS0,VE857'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371280.028651,VS0,VE836'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":7,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -1390,15 +1249,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5043'] + content-length: ['5033'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:14:46 GMT'] + date: ['Tue, 10 Apr 2018 14:41:21 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523016886.103972,VS0,VE415'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371281.926566,VS0,VE139'] 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 b3d29ba..3d194f6 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,108 +6,82 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:10Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:18Z","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:19Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:27Z","deployed":false}],"created_at":"2018-04-10T15:33:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T15:33:10Z","id":"3h4ENeSDyBM1eOum86kriA"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1852'] + content-length: ['927'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:55 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19142-FRA'] - x-timer: ['S1523017015.406909,VS0,VE402'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523374686.036378,VS0,VE412'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:10Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:18Z","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:19Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:27Z","deployed":false}],"created_at":"2018-04-10T15:33:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T15:33:10Z","id":"3h4ENeSDyBM1eOum86kriA","version":{"testing":false,"number":3,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"updated_at":"2018-04-10T15:33:27Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T15:33:19Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5043'] + content-length: ['2543'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:56 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19134-FRA'] - x-timer: ['S1523017016.996895,VS0,VE410'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:56 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017017.572998,VS0,VE383'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523374687.509971,VS0,VE371'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/clone + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/3/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":4,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:19Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:27Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:57 GMT'] - fastly-ratelimit-remaining: ['898'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:07 GMT'] + fastly-ratelimit-remaining: ['973'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017017.078438,VS0,VE477'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523374687.946822,VS0,VE473'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/domain + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/domain response: - body: {string: !!python/unicode '[{"version":8,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:41Z","comment":"test1","updated_at":"2018-04-06T12:14:41Z"}]'} + body: {string: !!python/unicode '[{"version":4,"name":"cdn.example8000.com","deleted_at":null,"service_id":"3h4ENeSDyBM1eOum86kriA","created_at":"2018-04-10T15:33:25Z","comment":"test1","updated_at":"2018-04-10T15:33:25Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -115,21 +89,21 @@ interactions: connection: [keep-alive] content-length: ['190'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:58 GMT'] + date: ['Tue, 10 Apr 2018 15:38:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017018.672101,VS0,VE388'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523374688.548498,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/healthcheck + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -139,21 +113,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:58 GMT'] + date: ['Tue, 10 Apr 2018 15:38:07 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] - x-timer: ['S1523017018.177775,VS0,VE382'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523374688.729274,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/condition + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/condition response: body: {string: !!python/unicode '[]'} headers: @@ -163,23 +137,23 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:59 GMT'] + date: ['Tue, 10 Apr 2018 15:38:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523017019.676123,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523374688.913600,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/backend + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:41Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":8,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T15:33:26Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"3h4ENeSDyBM1eOum86kriA","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":4,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T15:33:26Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -187,21 +161,21 @@ interactions: connection: [keep-alive] content-length: ['718'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:16:59 GMT'] + date: ['Tue, 10 Apr 2018 15:38:08 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017019.202150,VS0,VE399'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523374688.092888,VS0,VE385'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/director + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/director response: body: {string: !!python/unicode '[]'} headers: @@ -211,21 +185,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:00 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19126-FRA'] - x-timer: ['S1523017020.720223,VS0,VE382'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523374689.636724,VS0,VE377'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/cache_settings + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -235,21 +209,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:00 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19142-FRA'] - x-timer: ['S1523017020.221497,VS0,VE382'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523374689.075186,VS0,VE402'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/gzip + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -259,24 +233,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:01 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19134-FRA'] - x-timer: ['S1523017021.789543,VS0,VE382'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523374690.545725,VS0,VE402'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/header + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/header response: - body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:42Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"8","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:42Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"10","service_id":"3h4ENeSDyBM1eOum86kriA","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T15:33:26Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"4","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T15:33:26Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -284,21 +258,21 @@ interactions: connection: [keep-alive] content-length: ['414'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:01 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19141-FRA'] - x-timer: ['S1523017021.318779,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523374690.055560,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/request_settings + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -308,24 +282,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:01 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19139-FRA'] - x-timer: ['S1523017022.621297,VS0,VE115'] + x-timer: ['S1523374690.234766,VS0,VE496'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/response_object + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/response_object response: - body: {string: !!python/unicode '[{"response":"Ok","version":"8","status":"301","name":"Set - 301 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:43Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:43Z"}]'} + body: {string: !!python/unicode '[{"response":"Ok","version":"4","status":"301","name":"Set + 301 status code","content":"","deleted_at":null,"service_id":"3h4ENeSDyBM1eOum86kriA","cache_condition":"","created_at":"2018-04-10T15:33:27Z","content_type":"","request_condition":"","updated_at":"2018-04-10T15:33:27Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -333,69 +307,21 @@ interactions: connection: [keep-alive] content-length: ['280'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:02 GMT'] + date: ['Tue, 10 Apr 2018 15:38:11 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017022.855196,VS0,VE388'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/vcl - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:02 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] - x-timer: ['S1523017022.405907,VS0,VE386'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/snippet - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17: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-fra19145-FRA'] - x-timer: ['S1523017023.909755,VS0,VE384'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523374691.885102,VS0,VE385'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/syslog + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -405,21 +331,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:03 GMT'] + date: ['Tue, 10 Apr 2018 15:38:11 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017023.412287,VS0,VE451'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523374692.509122,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/domain/cdn.example8000.com + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -428,23 +354,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:04 GMT'] - fastly-ratelimit-remaining: ['897'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:12 GMT'] + fastly-ratelimit-remaining: ['972'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] - x-timer: ['S1523017024.174619,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523374692.688840,VS0,VE449'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/backend/localhost + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -453,23 +379,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:05 GMT'] - fastly-ratelimit-remaining: ['896'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:12 GMT'] + fastly-ratelimit-remaining: ['971'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017025.779994,VS0,VE432'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523374692.349448,VS0,VE460'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/header/Set%20Location%20header + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -478,23 +404,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:05 GMT'] - fastly-ratelimit-remaining: ['895'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:13 GMT'] + fastly-ratelimit-remaining: ['970'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] - x-timer: ['S1523017025.330874,VS0,VE418'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523374693.978218,VS0,VE429'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/response_object/Set%20301%20status%20code + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/response_object/Set%20301%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -503,41 +429,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:06 GMT'] - fastly-ratelimit-remaining: ['894'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:14 GMT'] + fastly-ratelimit-remaining: ['969'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] - x-timer: ['S1523017026.853354,VS0,VE451'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523374694.606231,VS0,VE428'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/domain + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":8,"deleted_at":null,"created_at":"2018-04-06T12:17:06Z","updated_at":"2018-04-06T12:17:06Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"3h4ENeSDyBM1eOum86kriA","version":4,"deleted_at":null,"created_at":"2018-04-10T15:38:15Z","updated_at":"2018-04-10T15:38:15Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['188'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:06 GMT'] - fastly-ratelimit-remaining: ['893'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:15 GMT'] + fastly-ratelimit-remaining: ['968'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523017026.368523,VS0,VE482'] + x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] + x-timer: ['S1523374694.230411,VS0,VE967'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -548,25 +474,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/backend + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":8,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:17:07Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:17:07Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3h4ENeSDyBM1eOum86kriA","version":4,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T15:38:15Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T15:38:15Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:07 GMT'] - fastly-ratelimit-remaining: ['892'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:15 GMT'] + fastly-ratelimit-remaining: ['967'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017027.045545,VS0,VE254'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523374695.262020,VS0,VE535'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -576,26 +502,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/header + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/header response: body: {string: !!python/unicode '{"ignore_if_set":"0","regex":"","request_condition":null,"name":"Set - Location header","src":"\"https://u.jimcdn.com\" req.url.path","dst":"http.Location","substitution":"","priority":"10","cache_condition":null,"action":"set","type":"response","response_condition":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":"8","updated_at":"2018-04-06T12:17:07Z","deleted_at":null,"created_at":"2018-04-06T12:17:07Z"}'} + 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":"3h4ENeSDyBM1eOum86kriA","version":"4","updated_at":"2018-04-10T15:38:16Z","deleted_at":null,"created_at":"2018-04-10T15:38:16Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:07 GMT'] - fastly-ratelimit-remaining: ['891'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:16 GMT'] + fastly-ratelimit-remaining: ['966'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] - x-timer: ['S1523017027.363729,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523374696.907204,VS0,VE419'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -603,79 +529,77 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/8/response_object + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"8","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:17:08Z","updated_at":"2018-04-06T12:17:08Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"3h4ENeSDyBM1eOum86kriA","version":"4","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T15:38:16Z","updated_at":"2018-04-10T15:38:16Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:08 GMT'] - fastly-ratelimit-remaining: ['890'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:16 GMT'] + fastly-ratelimit-remaining: ['965'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017028.879094,VS0,VE433'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523374697.525402,VS0,VE158'] 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/712MupNjgxT6OzQImAlLw8/version/8/settings + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":8,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":4,"general.default_host":"","general.default_pci":0,"service_id":"3h4ENeSDyBM1eOum86kriA"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:08 GMT'] - fastly-ratelimit-remaining: ['889'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:16 GMT'] + fastly-ratelimit-remaining: ['964'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017028.379974,VS0,VE433'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523374697.741331,VS0,VE181'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":8,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:16:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:10Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:18Z","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:19Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:27Z","deployed":false},{"testing":false,"locked":false,"number":4,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:38:07Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:38:16Z","deployed":false}],"created_at":"2018-04-10T15:33:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T15:33:10Z","id":"3h4ENeSDyBM1eOum86kriA","version":{"testing":false,"number":4,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"updated_at":"2018-04-10T15:38:16Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T15:38:07Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5278'] + content-length: ['2776'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:09 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19129-FRA'] - x-timer: ['S1523017029.920642,VS0,VE447'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523374697.984242,VS0,VE145'] status: {code: 200, message: OK} - request: body: null @@ -684,108 +608,82 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:10Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:18Z","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:19Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:27Z","deployed":false},{"testing":false,"locked":false,"number":4,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:38:07Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:38:16Z","deployed":false}],"created_at":"2018-04-10T15:33:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T15:33:10Z","id":"3h4ENeSDyBM1eOum86kriA"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2085'] + content-length: ['1160'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:09 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19124-FRA'] - x-timer: ['S1523017029.433001,VS0,VE418'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523374697.193351,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":8,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:08Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:16:57Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:10Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:18Z","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:19Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:27Z","deployed":false},{"testing":false,"locked":false,"number":4,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:38:07Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:38:16Z","deployed":false}],"created_at":"2018-04-10T15:33:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T15:33:10Z","id":"3h4ENeSDyBM1eOum86kriA","version":{"testing":false,"number":4,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"updated_at":"2018-04-10T15:38:16Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T15:38:07Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5278'] + content-length: ['2776'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:10 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19141-FRA'] - x-timer: ['S1523017030.963329,VS0,VE113'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['230'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17: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-fra19125-FRA'] - x-timer: ['S1523017030.139503,VS0,VE382'] + x-timer: ['S1523374697.378191,VS0,VE108'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/clone + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/4/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":5,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:38:07Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:38:16Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:10 GMT'] - fastly-ratelimit-remaining: ['888'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:18 GMT'] + fastly-ratelimit-remaining: ['963'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017031.589401,VS0,VE197'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523374698.547703,VS0,VE476'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/domain + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/domain response: - body: {string: !!python/unicode '[{"version":9,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:41Z","comment":"test1","updated_at":"2018-04-06T12:14:41Z"}]'} + body: {string: !!python/unicode '[{"version":5,"name":"cdn.example8000.com","deleted_at":null,"service_id":"3h4ENeSDyBM1eOum86kriA","created_at":"2018-04-10T15:38:15Z","comment":"test1","updated_at":"2018-04-10T15:38:15Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -793,21 +691,21 @@ interactions: connection: [keep-alive] content-length: ['190'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:10 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19120-FRA'] - x-timer: ['S1523017031.852873,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523374698.086966,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/healthcheck + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -817,21 +715,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:11 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19150-FRA'] - x-timer: ['S1523017031.036947,VS0,VE413'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523374698.272204,VS0,VE391'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/condition + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/condition response: body: {string: !!python/unicode '[]'} headers: @@ -841,23 +739,23 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:12 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19125-FRA'] - x-timer: ['S1523017032.154686,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523374699.737473,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/backend + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:41Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":9,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T15:38:15Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"3h4ENeSDyBM1eOum86kriA","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":5,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T15:38:15Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -865,21 +763,21 @@ interactions: connection: [keep-alive] content-length: ['718'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:12 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19122-FRA'] - x-timer: ['S1523017032.472363,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523374699.922626,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/director + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/director response: body: {string: !!python/unicode '[]'} headers: @@ -889,21 +787,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:13 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19143-FRA'] - x-timer: ['S1523017033.837649,VS0,VE410'] + x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] + x-timer: ['S1523374699.103230,VS0,VE115'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/cache_settings + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -913,21 +811,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:13 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19121-FRA'] - x-timer: ['S1523017034.520149,VS0,VE113'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523374699.279256,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/gzip + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -937,24 +835,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:14 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19143-FRA'] - x-timer: ['S1523017034.978590,VS0,VE120'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523374699.458039,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/header + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/header response: - body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:42Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"9","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:42Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"10","service_id":"3h4ENeSDyBM1eOum86kriA","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T15:38:16Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"5","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T15:38:16Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -962,21 +860,21 @@ interactions: connection: [keep-alive] content-length: ['414'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:14 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19129-FRA'] - x-timer: ['S1523017034.343154,VS0,VE392'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523374700.696150,VS0,VE112'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/request_settings + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -986,24 +884,24 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:15 GMT'] + date: ['Tue, 10 Apr 2018 15:38:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523017035.167863,VS0,VE380'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523374700.899271,VS0,VE113'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/response_object + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/response_object response: - body: {string: !!python/unicode '[{"response":"Ok","version":"9","status":"301","name":"Set - 301 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:43Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:43Z"}]'} + body: {string: !!python/unicode '[{"response":"Ok","version":"5","status":"302","name":"Set + 302 status code","content":"","deleted_at":null,"service_id":"3h4ENeSDyBM1eOum86kriA","cache_condition":"","created_at":"2018-04-10T15:38:16Z","content_type":"","request_condition":"","updated_at":"2018-04-10T15:38:16Z"}]'} headers: accept-ranges: [bytes] age: ['0'] @@ -1011,69 +909,21 @@ interactions: connection: [keep-alive] content-length: ['280'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:16 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017036.897034,VS0,VE115'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/vcl - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:16 GMT'] - status: [200 OK] - vary: [Accept-Encoding] - via: [1.1 varnish, 1.1 varnish] - x-cache: ['MISS, MISS'] - x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017036.113944,VS0,VE402'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/snippet - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:16 GMT'] + date: ['Tue, 10 Apr 2018 15:38:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017037.755285,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523374700.078171,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/syslog + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -1083,21 +933,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:17 GMT'] + date: ['Tue, 10 Apr 2018 15:38:20 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017037.119130,VS0,VE381'] + x-served-by: ['app-slwdc9051-SL, cache-fra19128-FRA'] + x-timer: ['S1523374700.263126,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/domain/cdn.example8000.com + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1106,23 +956,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:17 GMT'] - fastly-ratelimit-remaining: ['887'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:20 GMT'] + fastly-ratelimit-remaining: ['962'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017038.694508,VS0,VE170'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523374700.446878,VS0,VE450'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/backend/localhost + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1131,23 +981,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:18 GMT'] - fastly-ratelimit-remaining: ['886'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:21 GMT'] + fastly-ratelimit-remaining: ['961'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017038.057843,VS0,VE455'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523374701.124661,VS0,VE446'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/header/Set%20Location%20header + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1156,23 +1006,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:19 GMT'] - fastly-ratelimit-remaining: ['885'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:21 GMT'] + fastly-ratelimit-remaining: ['960'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017039.745739,VS0,VE438'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523374702.651837,VS0,VE164'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/response_object/Set%20301%20status%20code + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/response_object/Set%20302%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -1181,41 +1031,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:19 GMT'] - fastly-ratelimit-remaining: ['884'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:22 GMT'] + fastly-ratelimit-remaining: ['959'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017040.688809,VS0,VE179'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523374702.876814,VS0,VE153'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/domain + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":9,"deleted_at":null,"created_at":"2018-04-06T12:17:20Z","updated_at":"2018-04-06T12:17:20Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"3h4ENeSDyBM1eOum86kriA","version":5,"deleted_at":null,"created_at":"2018-04-10T15:38:22Z","updated_at":"2018-04-10T15:38:22Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['188'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:20 GMT'] - fastly-ratelimit-remaining: ['883'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:22 GMT'] + fastly-ratelimit-remaining: ['958'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523017040.938546,VS0,VE205'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523374702.090705,VS0,VE485'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -1226,25 +1076,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/backend + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":9,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:17:20Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:17:20Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"3h4ENeSDyBM1eOum86kriA","version":5,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T15:38:22Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T15:38:22Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:20 GMT'] - fastly-ratelimit-remaining: ['882'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:22 GMT'] + fastly-ratelimit-remaining: ['957'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] - x-timer: ['S1523017040.214546,VS0,VE425'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523374703.797557,VS0,VE172'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -1254,26 +1104,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/header + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/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":"712MupNjgxT6OzQImAlLw8","version":"9","updated_at":"2018-04-06T12:17:21Z","deleted_at":null,"created_at":"2018-04-06T12:17:21Z"}'} + 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":"3h4ENeSDyBM1eOum86kriA","version":"5","updated_at":"2018-04-10T15:38:23Z","deleted_at":null,"created_at":"2018-04-10T15:38:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:21 GMT'] - fastly-ratelimit-remaining: ['881'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:23 GMT'] + fastly-ratelimit-remaining: ['956'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017041.706804,VS0,VE449'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523374703.039929,VS0,VE153'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "301", "request_condition": "", "name": "Set @@ -1281,78 +1131,76 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/9/response_object + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/response_object response: body: {string: !!python/unicode '{"status":"301","request_condition":"","name":"Set - 301 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"9","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:17:21Z","updated_at":"2018-04-06T12:17:21Z"}'} + 301 status code","content":"","content_type":"","response":"Ok","service_id":"3h4ENeSDyBM1eOum86kriA","version":"5","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T15:38:23Z","updated_at":"2018-04-10T15:38:23Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:21 GMT'] - fastly-ratelimit-remaining: ['880'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:23 GMT'] + fastly-ratelimit-remaining: ['955'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017041.245134,VS0,VE147'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523374703.259991,VS0,VE143'] 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/712MupNjgxT6OzQImAlLw8/version/9/settings + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/version/5/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":5,"general.default_host":"","general.default_pci":0,"service_id":"3h4ENeSDyBM1eOum86kriA"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:21 GMT'] - fastly-ratelimit-remaining: ['879'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 15:38:23 GMT'] + fastly-ratelimit-remaining: ['954'] + fastly-ratelimit-reset: ['1523376000'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] - x-timer: ['S1523017041.458149,VS0,VE448'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523374703.473688,VS0,VE171'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/3h4ENeSDyBM1eOum86kriA/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":9,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:21Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:17:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:10Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:18Z","deployed":false},{"testing":false,"locked":false,"number":3,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:33:19Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:33:27Z","deployed":false},{"testing":false,"locked":false,"number":4,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:38:07Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:38:16Z","deployed":false},{"testing":false,"locked":false,"number":5,"active":false,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"created_at":"2018-04-10T15:38:17Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T15:38:23Z","deployed":false}],"created_at":"2018-04-10T15:33:10Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T15:33:10Z","id":"3h4ENeSDyBM1eOum86kriA","version":{"testing":false,"number":5,"service_id":"3h4ENeSDyBM1eOum86kriA","staging":false,"updated_at":"2018-04-10T15:38:23Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T15:38:17Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5511'] + content-length: ['3009'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:22 GMT'] + date: ['Tue, 10 Apr 2018 15:38: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-fra19135-FRA'] - x-timer: ['S1523017042.081426,VS0,VE475'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523374704.707490,VS0,VE164'] 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 3b8e79e..7c68c04 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,129 +6,105 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"number":7,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:13Z","comment":""},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2318'] + content-length: ['2076'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:22 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19132-FRA'] - x-timer: ['S1523017043.703016,VS0,VE142'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371291.349765,VS0,VE137'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":9,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:17:21Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:17:10Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set - 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:14:45Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:14:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":8,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:29Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:41:21Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":7,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:20Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:13Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"301","response":"Ok","name":"Set 301 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} - headers: - accept-ranges: [bytes] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['5511'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17: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-fra19141-FRA'] - x-timer: ['S1523017043.909284,VS0,VE114'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/active - response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":7,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['230'] + content-length: ['5267'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:17:23 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19142-FRA'] - x-timer: ['S1523017043.091824,VS0,VE383'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371292.551794,VS0,VE111'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/7/clone + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/7/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":false,"number":10,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":9,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['233'] + content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:06 GMT'] - fastly-ratelimit-remaining: ['878'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:31 GMT'] + fastly-ratelimit-remaining: ['884'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017386.197588,VS0,VE512'] + x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] + x-timer: ['S1523371292.726587,VS0,VE202'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/domain response: - body: {string: !!python/unicode '[{"version":10,"name":"cdn.example8000.com","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","created_at":"2018-04-06T12:14:41Z","comment":"test1","updated_at":"2018-04-06T12:14:41Z"}]'} + body: {string: !!python/unicode '[{"version":9,"name":"cdn.example8000.com","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","created_at":"2018-04-10T14:41:18Z","comment":"test1","updated_at":"2018-04-10T14:41:18Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['191'] + content-length: ['189'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:07 GMT'] + date: ['Tue, 10 Apr 2018 14:41:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017387.775064,VS0,VE390'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371292.989557,VS0,VE116'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/healthcheck + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/healthcheck response: body: {string: !!python/unicode '[]'} headers: @@ -138,21 +114,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:07 GMT'] + date: ['Tue, 10 Apr 2018 14:41:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017387.229509,VS0,VE125'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371292.164368,VS0,VE419'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/condition + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/condition response: body: {string: !!python/unicode '[]'} headers: @@ -162,45 +138,45 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:07 GMT'] + date: ['Tue, 10 Apr 2018 14:41:32 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017387.418794,VS0,VE412'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371293.815150,VS0,VE122'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/backend response: - body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-06T12:14:41Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":10,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-06T12:14:41Z","comment":""}]'} + body: {string: !!python/unicode '[{"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"error_threshold":0,"first_byte_timeout":15000,"client_cert":null,"weight":100,"address":"127.0.0.1","updated_at":"2018-04-10T14:41:18Z","connect_timeout":1000,"ipv4":"127.0.0.1","ssl_ciphers":null,"name":"localhost","port":80,"between_bytes_timeout":10000,"ssl_client_key":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","request_condition":"","ssl_cert_hostname":null,"ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"version":9,"deleted_at":null,"healthcheck":null,"max_conn":200,"use_ssl":false,"created_at":"2018-04-10T14:41:18Z","comment":""}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['719'] + content-length: ['717'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:08 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19138-FRA'] - x-timer: ['S1523017388.893391,VS0,VE396'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371293.999582,VS0,VE384'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/director + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/director response: body: {string: !!python/unicode '[]'} headers: @@ -210,21 +186,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:08 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19138-FRA'] - x-timer: ['S1523017388.354606,VS0,VE379'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371294.651795,VS0,VE118'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/cache_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/cache_settings response: body: {string: !!python/unicode '[]'} headers: @@ -234,21 +210,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:09 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19150-FRA'] - x-timer: ['S1523017389.960011,VS0,VE384'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371294.830018,VS0,VE121'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/gzip + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/gzip response: body: {string: !!python/unicode '[]'} headers: @@ -258,46 +234,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:09 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017389.409407,VS0,VE388'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371294.014850,VS0,VE410'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/header response: - body: {string: !!python/unicode '[{"priority":"10","service_id":"712MupNjgxT6OzQImAlLw8","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-06T12:14:42Z","src":"\"https://u.jimcdn.com\" - req.url.path","version":"10","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-06T12:14:42Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} + body: {string: !!python/unicode '[{"priority":"10","service_id":"sElL34MDwVdi6ShBTQYLI","ignore_if_set":"0","request_condition":null,"response_condition":null,"updated_at":"2018-04-10T14:41:19Z","src":"\"https://u.jimcdn.com\" + req.url.path","version":"9","name":"Set Location header","deleted_at":null,"substitution":"","cache_condition":null,"created_at":"2018-04-10T14:41:19Z","regex":"","action":"set","type":"response","dst":"http.Location"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['415'] + content-length: ['413'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:10 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017390.857634,VS0,VE382'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371294.488659,VS0,VE114'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/request_settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/request_settings response: body: {string: !!python/unicode '[]'} headers: @@ -307,70 +283,46 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23: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-fra19121-FRA'] - x-timer: ['S1523017390.304136,VS0,VE401'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/response_object - response: - body: {string: !!python/unicode '[{"response":"Ok","version":"10","status":"301","name":"Set - 301 status code","content":"","deleted_at":null,"service_id":"712MupNjgxT6OzQImAlLw8","cache_condition":"","created_at":"2018-04-06T12:14:43Z","content_type":"","request_condition":"","updated_at":"2018-04-06T12:14:43Z"}]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['281'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:11 GMT'] + date: ['Tue, 10 Apr 2018 14:41:35 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] - x-timer: ['S1523017391.840327,VS0,VE382'] + x-timer: ['S1523371295.662400,VS0,VE402'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/vcl + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/response_object response: - body: {string: !!python/unicode '[]'} + body: {string: !!python/unicode '[{"response":"Ok","version":"9","status":"301","name":"Set + 301 status code","content":"","deleted_at":null,"service_id":"sElL34MDwVdi6ShBTQYLI","cache_condition":"","created_at":"2018-04-10T14:41:19Z","content_type":"","request_condition":"","updated_at":"2018-04-10T14:41:19Z"}]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2'] + content-length: ['279'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:11 GMT'] + date: ['Tue, 10 Apr 2018 14:41:35 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017391.286830,VS0,VE381'] + x-timer: ['S1523371295.142891,VS0,VE117'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/snippet + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/snippet response: body: {string: !!python/unicode '[]'} headers: @@ -380,45 +332,21 @@ interactions: connection: [keep-alive] content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:12 GMT'] + date: ['Tue, 10 Apr 2018 14:41:35 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017392.737441,VS0,VE454'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Content-Type: [application/json] - method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/syslog - response: - body: {string: !!python/unicode '[]'} - headers: - accept-ranges: [bytes] - age: ['0'] - cache-control: [no-cache] - connection: [keep-alive] - content-length: ['2'] - content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23: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-fra19120-FRA'] - x-timer: ['S1523017392.302787,VS0,VE436'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371295.344842,VS0,VE120'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/domain/cdn.example8000.com + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/domain/cdn.example8000.com response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -427,23 +355,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:13 GMT'] - fastly-ratelimit-remaining: ['877'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:35 GMT'] + fastly-ratelimit-remaining: ['883'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19134-FRA'] - x-timer: ['S1523017393.802776,VS0,VE438'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371296.524129,VS0,VE421'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/backend/localhost + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/backend/localhost response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -452,23 +380,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:13 GMT'] - fastly-ratelimit-remaining: ['876'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:36 GMT'] + fastly-ratelimit-remaining: ['882'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] - x-timer: ['S1523017393.345691,VS0,VE472'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371296.013654,VS0,VE157'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/header/Set%20Location%20header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/header/Set%20Location%20header response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -477,23 +405,23 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:14 GMT'] - fastly-ratelimit-remaining: ['875'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:36 GMT'] + fastly-ratelimit-remaining: ['881'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017394.971514,VS0,VE437'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371296.235831,VS0,VE449'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/response_object/Set%20301%20status%20code + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/response_object/Set%20301%20status%20code response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -502,41 +430,41 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:14 GMT'] - fastly-ratelimit-remaining: ['874'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:37 GMT'] + fastly-ratelimit-remaining: ['880'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] - x-timer: ['S1523017394.474053,VS0,VE428'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371297.816228,VS0,VE423'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/domain + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"712MupNjgxT6OzQImAlLw8","version":10,"deleted_at":null,"created_at":"2018-04-06T12:23:15Z","updated_at":"2018-04-06T12:23:15Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"sElL34MDwVdi6ShBTQYLI","version":9,"deleted_at":null,"created_at":"2018-04-10T14:41:37Z","updated_at":"2018-04-10T14:41:37Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['189'] + content-length: ['187'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:15 GMT'] - fastly-ratelimit-remaining: ['873'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:37 GMT'] + fastly-ratelimit-remaining: ['879'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523017395.976870,VS0,VE463'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371297.301641,VS0,VE201'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -547,25 +475,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/backend + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"712MupNjgxT6OzQImAlLw8","version":10,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:15Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:15Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"sElL34MDwVdi6ShBTQYLI","version":9,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:41:37Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:41:37Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['717'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:15 GMT'] - fastly-ratelimit-remaining: ['872'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:37 GMT'] + fastly-ratelimit-remaining: ['878'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] - x-timer: ['S1523017396.544664,VS0,VE162'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371298.562835,VS0,VE161'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -575,26 +503,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/header + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","version":"10","updated_at":"2018-04-06T12:23:16Z","deleted_at":null,"created_at":"2018-04-06T12:23:16Z"}'} + 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":"sElL34MDwVdi6ShBTQYLI","version":"9","updated_at":"2018-04-10T14:41:38Z","deleted_at":null,"created_at":"2018-04-10T14:41:38Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['413'] + content-length: ['411'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:16 GMT'] - fastly-ratelimit-remaining: ['871'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:38 GMT'] + fastly-ratelimit-remaining: ['877'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017396.782157,VS0,VE412'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371298.788555,VS0,VE415'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -602,87 +530,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/response_object + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"712MupNjgxT6OzQImAlLw8","version":"10","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:16Z","updated_at":"2018-04-06T12:23:16Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"sElL34MDwVdi6ShBTQYLI","version":"9","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:41:38Z","updated_at":"2018-04-10T14:41:38Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['279'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:16 GMT'] - fastly-ratelimit-remaining: ['870'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:38 GMT'] + fastly-ratelimit-remaining: ['876'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017396.259330,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] + x-timer: ['S1523371298.460263,VS0,VE438'] 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/712MupNjgxT6OzQImAlLw8/version/10/settings + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":10,"general.default_host":"","general.default_pci":0,"service_id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":9,"general.default_host":"","general.default_pci":0,"service_id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['129'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:16 GMT'] - fastly-ratelimit-remaining: ['869'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:39 GMT'] + fastly-ratelimit-remaining: ['875'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017396.470857,VS0,VE463'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371299.981589,VS0,VE422'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/activate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:16Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:38Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['242'] + content-length: ['240'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:17 GMT'] - fastly-ratelimit-remaining: ['868'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:40 GMT'] + fastly-ratelimit-remaining: ['874'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017397.007540,VS0,VE594'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371300.504376,VS0,VE1491'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -690,16 +618,16 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:17 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19149-FRA'] - x-timer: ['S1523017398.673420,VS0,VE144'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371301.171932,VS0,VE200'] status: {code: 200, message: OK} - request: body: null @@ -708,61 +636,60 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2551'] + content-length: ['2307'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:18 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19128-FRA'] - x-timer: ['S1523017398.880908,VS0,VE140'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371301.437829,VS0,VE140'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:18 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19127-FRA'] - x-timer: ['S1523017398.089948,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371302.641353,VS0,VE108'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -770,15 +697,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:18 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19137-FRA'] - x-timer: ['S1523017398.269363,VS0,VE119'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371302.810252,VS0,VE107'] 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 f8bff08..93ccfe9 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,78 +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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2551'] + content-length: ['2307'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:18 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19120-FRA'] - x-timer: ['S1523017399.528455,VS0,VE139'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371302.041489,VS0,VE159'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:18 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19145-FRA'] - x-timer: ['S1523017399.731159,VS0,VE117'] + x-served-by: ['app-slwdc9051-SL, cache-fra19125-FRA'] + x-timer: ['S1523371302.261607,VS0,VE376'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:19 GMT'] + date: ['Tue, 10 Apr 2018 14:41:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017399.915843,VS0,VE118'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371303.700195,VS0,VE401'] status: {code: 200, message: OK} - request: body: null @@ -86,75 +83,74 @@ 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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2551'] + content-length: ['2307'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:19 GMT'] + date: ['Tue, 10 Apr 2018 14:41:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] - x-timer: ['S1523017399.101400,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371303.168074,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:19 GMT'] + date: ['Tue, 10 Apr 2018 14:41:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] - x-timer: ['S1523017399.307253,VS0,VE114'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371303.373845,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:19 GMT'] + date: ['Tue, 10 Apr 2018 14:41:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] - x-timer: ['S1523017399.486600,VS0,VE115'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371304.563098,VS0,VE401'] 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 ab669d9..87b13ae 100644 --- a/tests/fixtures/cassettes/test_service_does_not_exist +++ b/tests/fixtures/cassettes/test_service_does_not_exist @@ -6,82 +6,81 @@ interactions: method: GET uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test response: - body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":""}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":""}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2551'] + content-length: ['2307'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:19 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19125-FRA'] - x-timer: ['S1523017400.720068,VS0,VE137'] + x-served-by: ['app-slwdc9051-SL, cache-fra19121-FRA'] + x-timer: ['S1523371304.080184,VS0,VE143'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/details + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/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":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:22Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:23Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:36Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:26Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:46Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:39Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:13:58Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:13:48Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:11Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:01Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:14:45Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:14:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:16:57Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:08Z","deployed":false},{"testing":false,"locked":false,"number":9,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:17:10Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:17:21Z","deployed":false},{"testing":false,"locked":true,"number":10,"active":true,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}],"created_at":"2018-04-06T12:13:22Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:13:22Z","id":"712MupNjgxT6OzQImAlLw8","version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:28Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:28Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:44Z","deployed":false},{"testing":false,"locked":true,"number":3,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:36Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:40:52Z","deployed":false},{"testing":false,"locked":true,"number":4,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:45Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:01Z","deployed":false},{"testing":false,"locked":true,"number":5,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:40:54Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:12Z","deployed":false},{"testing":false,"locked":true,"number":6,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:04Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:20Z","deployed":false},{"testing":false,"locked":true,"number":7,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:13Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false},{"testing":false,"locked":false,"number":8,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:29Z","deployed":false},{"testing":false,"locked":true,"number":9,"active":true,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}],"created_at":"2018-04-10T14:40:28Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:40:28Z","id":"sElL34MDwVdi6ShBTQYLI","version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":10,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"updated_at":"2018-04-06T12:23:17Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:06Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":9,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"updated_at":"2018-04-10T14:41:40Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:31Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: accept-ranges: [bytes] - age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['5744'] + content-length: ['5496'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:20 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19122-FRA'] - x-timer: ['S1523017400.922834,VS0,VE127'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371304.284872,VS0,VE119'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8/version/10/deactivate + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI/version/9/deactivate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":10,"active":false,"service_id":"712MupNjgxT6OzQImAlLw8","staging":false,"created_at":"2018-04-06T12:23:06Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:17Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":9,"active":false,"service_id":"sElL34MDwVdi6ShBTQYLI","staging":false,"created_at":"2018-04-10T14:41:31Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:40Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['232'] + content-length: ['230'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:20 GMT'] - fastly-ratelimit-remaining: ['867'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:44 GMT'] + fastly-ratelimit-remaining: ['873'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523017400.116642,VS0,VE491'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371304.468610,VS0,VE430'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: DELETE - uri: https://api.fastly.com/service/712MupNjgxT6OzQImAlLw8 + uri: https://api.fastly.com/service/sElL34MDwVdi6ShBTQYLI response: body: {string: !!python/unicode '{"status":"ok"}'} headers: @@ -90,16 +89,16 @@ interactions: connection: [keep-alive] content-length: ['15'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:21 GMT'] - fastly-ratelimit-remaining: ['866'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:45 GMT'] + fastly-ratelimit-remaining: ['872'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] - x-timer: ['S1523017401.677930,VS0,VE429'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371305.961578,VS0,VE430'] status: {code: 200, message: OK} - request: body: null @@ -117,14 +116,14 @@ interactions: connection: [keep-alive] content-length: ['117'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:21 GMT'] + date: ['Tue, 10 Apr 2018 14:41:45 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-fra19137-FRA'] - x-timer: ['S1523017401.170820,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371306.558738,VS0,VE113'] status: {code: 404, message: Not Found} - request: body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' @@ -134,32 +133,32 @@ interactions: uri: https://api.fastly.com/service response: body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo - Fastly Ansible Module Test","publish_key":"4d00e3f7dd2b13ae605b25c768e067b9f39a28e5","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:23:21Z","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u"}'} + Fastly Ansible Module Test","publish_key":"ffb8c08b94d506b85bd7a4ac3c7fa6930c61361c","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"created_at":"2018-04-10T14:41:46Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:46Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:41:46Z","comment":"","updated_at":"2018-04-10T14:41:46Z","id":"2Hjn520A1wb92hzBQHptH4"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['518'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:21 GMT'] - fastly-ratelimit-remaining: ['865'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:46 GMT'] + fastly-ratelimit-remaining: ['871'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017401.363198,VS0,VE420'] + x-served-by: ['app-slwdc9051-SL, cache-fra19122-FRA'] + x-timer: ['S1523371306.736074,VS0,VE426'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/details + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/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":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u","version":{"testing":false,"number":1,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:21Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:21Z","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":"2Hjn520A1wb92hzBQHptH4","staging":false,"created_at":"2018-04-10T14:41:46Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:46Z","deployed":false}],"created_at":"2018-04-10T14:41:46Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:41:46Z","id":"2Hjn520A1wb92hzBQHptH4","version":{"testing":false,"number":1,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"updated_at":"2018-04-10T14:41:46Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:41:46Z","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'] @@ -167,64 +166,328 @@ interactions: connection: [keep-alive] content-length: ['1047'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:22 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19138-FRA'] - x-timer: ['S1523017402.853150,VS0,VE148'] + x-served-by: ['app-slwdc9051-SL, cache-fra19124-FRA'] + x-timer: ['S1523371306.224735,VS0,VE479'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version + method: PUT + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/1/clone response: - body: {string: !!python/unicode '{"service_id":"2ImL8nMGcYKsEGpmceMp2u","number":2}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"created_at":"2018-04-10T14:41:46Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:46Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['232'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:22 GMT'] - fastly-ratelimit-remaining: ['864'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:47 GMT'] + fastly-ratelimit-remaining: ['870'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19145-FRA'] + x-timer: ['S1523371307.814268,VS0,VE482'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41:47 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19120-FRA'] + x-timer: ['S1523371307.443606,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19145-FRA'] + x-timer: ['S1523371308.909665,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/condition + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19122-FRA'] + x-timer: ['S1523371308.090426,VS0,VE403'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/backend + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19143-FRA'] + x-timer: ['S1523371309.697934,VS0,VE124'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/director + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19121-FRA'] + x-timer: ['S1523371309.893700,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/cache_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19125-FRA'] + x-timer: ['S1523371309.071334,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/gzip + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19139-FRA'] - x-timer: ['S1523017402.065298,VS0,VE435'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371309.249928,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19147-FRA'] + x-timer: ['S1523371309.438314,VS0,VE118'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19122-FRA'] + x-timer: ['S1523371310.626569,VS0,VE122'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41: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-fra19124-FRA'] + x-timer: ['S1523371310.814468,VS0,VE120'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:41:50 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371310.000766,VS0,VE114'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/domain + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2ImL8nMGcYKsEGpmceMp2u","version":2,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","updated_at":"2018-04-06T12:23:22Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2Hjn520A1wb92hzBQHptH4","version":2,"deleted_at":null,"created_at":"2018-04-10T14:41:50Z","updated_at":"2018-04-10T14:41:50Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['188'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:23 GMT'] - fastly-ratelimit-remaining: ['863'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:50 GMT'] + fastly-ratelimit-remaining: ['869'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19147-FRA'] - x-timer: ['S1523017403.615857,VS0,VE457'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371310.179009,VS0,VE460'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -235,25 +498,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/backend + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2ImL8nMGcYKsEGpmceMp2u","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:23Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:23Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2Hjn520A1wb92hzBQHptH4","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:41:51Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:41:51Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['716'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:23 GMT'] - fastly-ratelimit-remaining: ['862'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:51 GMT'] + fastly-ratelimit-remaining: ['868'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] - x-timer: ['S1523017403.162220,VS0,VE169'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371311.790092,VS0,VE427'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -263,26 +526,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/header + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/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":"2ImL8nMGcYKsEGpmceMp2u","version":"2","updated_at":"2018-04-06T12:23:23Z","deleted_at":null,"created_at":"2018-04-06T12:23:23Z"}'} + 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":"2Hjn520A1wb92hzBQHptH4","version":"2","updated_at":"2018-04-10T14:41:51Z","deleted_at":null,"created_at":"2018-04-10T14:41:51Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['412'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:23 GMT'] - fastly-ratelimit-remaining: ['861'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:51 GMT'] + fastly-ratelimit-remaining: ['867'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523017403.395755,VS0,VE150'] + x-served-by: ['app-slwdc9051-SL, cache-fra19127-FRA'] + x-timer: ['S1523371311.309487,VS0,VE408'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -290,87 +553,87 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/response_object + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"2ImL8nMGcYKsEGpmceMp2u","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:23Z","updated_at":"2018-04-06T12:23:23Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"2Hjn520A1wb92hzBQHptH4","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:41:52Z","updated_at":"2018-04-10T14:41:52Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['278'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:23 GMT'] - fastly-ratelimit-remaining: ['860'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:52 GMT'] + fastly-ratelimit-remaining: ['866'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017404.609492,VS0,VE149'] + x-served-by: ['app-slwdc9051-SL, cache-fra19151-FRA'] + x-timer: ['S1523371312.829313,VS0,VE405'] 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/2ImL8nMGcYKsEGpmceMp2u/version/2/settings + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2ImL8nMGcYKsEGpmceMp2u"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2Hjn520A1wb92hzBQHptH4"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['128'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:23 GMT'] - fastly-ratelimit-remaining: ['859'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:52 GMT'] + fastly-ratelimit-remaining: ['865'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] - x-timer: ['S1523017404.823764,VS0,VE164'] + x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] + x-timer: ['S1523371312.297707,VS0,VE175'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/activate + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/version/2/activate response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:23Z","deployed":false,"msg":null}'} + body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"created_at":"2018-04-10T14:41:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:52Z","deployed":false,"msg":null}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['241'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:24 GMT'] - fastly-ratelimit-remaining: ['858'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:41:53 GMT'] + fastly-ratelimit-remaining: ['864'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] - x-timer: ['S1523017404.052818,VS0,VE642'] + x-served-by: ['app-slwdc9051-SL, cache-fra19136-FRA'] + x-timer: ['S1523371313.538292,VS0,VE753'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/details + uri: https://api.fastly.com/service/2Hjn520A1wb92hzBQHptH4/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":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:24Z","deployed":false}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u","version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"created_at":"2018-04-10T14:41:46Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:46Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"created_at":"2018-04-10T14:41:47Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:53Z","deployed":false}],"created_at":"2018-04-10T14:41:46Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:41:46Z","id":"2Hjn520A1wb92hzBQHptH4","version":{"testing":false,"number":2,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"updated_at":"2018-04-10T14:41:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:47Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2Hjn520A1wb92hzBQHptH4","staging":false,"updated_at":"2018-04-10T14:41:53Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-10T14:41:47Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} headers: @@ -380,13 +643,13 @@ interactions: connection: [keep-alive] content-length: ['3883'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:24 GMT'] + date: ['Tue, 10 Apr 2018 14:41: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-fra19145-FRA'] - x-timer: ['S1523017405.836041,VS0,VE145'] + x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] + x-timer: ['S1523371313.351947,VS0,VE151'] 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 73c9871..09de38d 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,225 +6,462 @@ 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":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false},{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":""}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u"}'} + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2SY9ckFIuLtk27WknzOraK","staging":false,"created_at":"2018-04-10T14:41:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:55Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2SY9ckFIuLtk27WknzOraK","staging":false,"created_at":"2018-04-10T14:41:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:03Z","deployed":false}],"created_at":"2018-04-10T14:41:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:41:55Z","id":"2SY9ckFIuLtk27WknzOraK"}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['692'] + content-length: ['694'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:25 GMT'] + date: ['Tue, 10 Apr 2018 14:47: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-fra19136-FRA'] - x-timer: ['S1523017405.103223,VS0,VE138'] + x-served-by: ['app-slwdc9051-SL, cache-fra19149-FRA'] + x-timer: ['S1523371659.441938,VS0,VE401'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/details + uri: https://api.fastly.com/service/2SY9ckFIuLtk27WknzOraK/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":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:21Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:21Z","deployed":false},{"testing":false,"locked":true,"number":2,"active":true,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:24Z","deployed":false}],"created_at":"2018-04-06T12:23:21Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:21Z","id":"2ImL8nMGcYKsEGpmceMp2u","version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2SY9ckFIuLtk27WknzOraK","staging":false,"created_at":"2018-04-10T14:41:55Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:41:55Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2SY9ckFIuLtk27WknzOraK","staging":false,"created_at":"2018-04-10T14:41:56Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:42:03Z","deployed":false}],"created_at":"2018-04-10T14:41:55Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:41:55Z","id":"2SY9ckFIuLtk27WknzOraK","version":{"testing":false,"number":2,"service_id":"2SY9ckFIuLtk27WknzOraK","staging":false,"updated_at":"2018-04-10T14:42:03Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:41:56Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":{"testing":false,"number":2,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"updated_at":"2018-04-06T12:23:24Z","deployed":false,"locked":true,"active":true,"deleted_at":null,"created_at":"2018-04-06T12:23:22Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" - req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set - 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}}}'} + 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['3883'] + content-length: ['2310'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:25 GMT'] + date: ['Tue, 10 Apr 2018 14:47: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-fra19129-FRA'] - x-timer: ['S1523017405.305562,VS0,VE112'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371660.059103,VS0,VE151'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: DELETE + uri: https://api.fastly.com/service/2SY9ckFIuLtk27WknzOraK + 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, 10 Apr 2018 14:47:40 GMT'] + fastly-ratelimit-remaining: ['728'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19123-FRA'] + x-timer: ['S1523371660.272099,VS0,VE398'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test + response: + body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load + service ''31RPDMBpiruA1yfGA2djLm''-''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: ['Tue, 10 Apr 2018 14:47:40 GMT'] + status: [404 Not Found] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371661.731711,VS0,VE116'] + status: {code: 404, message: Not Found} +- request: + body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' + headers: + Content-Type: [application/json] + method: POST + uri: https://api.fastly.com/service + response: + body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo + Fastly Ansible Module Test","publish_key":"d6b50ca280fa13acef1b47f843229028e80630f1","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"w7Nlu00Zboyz0qykr3Xd8","staging":false,"created_at":"2018-04-10T14:47:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:47:41Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-10T14:47:41Z","comment":"","updated_at":"2018-04-10T14:47:41Z","id":"w7Nlu00Zboyz0qykr3Xd8"}'} + headers: + accept-ranges: [bytes] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['516'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47:41 GMT'] + fastly-ratelimit-remaining: ['727'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371661.909963,VS0,VE404'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/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":"w7Nlu00Zboyz0qykr3Xd8","staging":false,"created_at":"2018-04-10T14:47:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:47:41Z","deployed":false}],"created_at":"2018-04-10T14:47:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:47:41Z","id":"w7Nlu00Zboyz0qykr3Xd8","version":{"testing":false,"number":1,"service_id":"w7Nlu00Zboyz0qykr3Xd8","staging":false,"updated_at":"2018-04-10T14:47:41Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:47:41Z","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: ['1044'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47: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-fra19146-FRA'] + x-timer: ['S1523371662.524814,VS0,VE446'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: PUT - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u/version/2/deactivate + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/1/clone response: - body: {string: !!python/unicode '{"testing":false,"locked":true,"number":2,"active":false,"service_id":"2ImL8nMGcYKsEGpmceMp2u","staging":false,"created_at":"2018-04-06T12:23:22Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:24Z","deployed":false}'} + body: {string: !!python/unicode '{"testing":false,"locked":false,"number":2,"active":false,"service_id":"w7Nlu00Zboyz0qykr3Xd8","staging":false,"created_at":"2018-04-10T14:47:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:47:41Z","deployed":false}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-length: ['231'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:26 GMT'] - fastly-ratelimit-remaining: ['857'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47:42 GMT'] + fastly-ratelimit-remaining: ['726'] + fastly-ratelimit-reset: ['1523372400'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] + x-timer: ['S1523371662.033481,VS0,VE468'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/domain + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47: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-fra19129-FRA'] + x-timer: ['S1523371663.568816,VS0,VE119'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/healthcheck + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19135-FRA'] - x-timer: ['S1523017406.541625,VS0,VE488'] + x-timer: ['S1523371663.745519,VS0,VE381'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: DELETE - uri: https://api.fastly.com/service/2ImL8nMGcYKsEGpmceMp2u + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/condition response: - body: {string: !!python/unicode '{"status":"ok"}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['15'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:26 GMT'] - fastly-ratelimit-remaining: ['856'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47:43 GMT'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19137-FRA'] - x-timer: ['S1523017406.095660,VS0,VE404'] + x-served-by: ['app-slwdc9051-SL, cache-fra19142-FRA'] + x-timer: ['S1523371663.197658,VS0,VE375'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/search?name=Jimdo%20Fastly%20Ansible%20Module%20Test + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/backend response: - body: {string: !!python/unicode '{"msg":"Record not found","detail":"Cannot load - service ''31RPDMBpiruA1yfGA2djLm''-''Jimdo Fastly Ansible Module Test''"}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['117'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:26 GMT'] - status: [404 Not Found] + date: ['Tue, 10 Apr 2018 14:47:43 GMT'] + status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19144-FRA'] - x-timer: ['S1523017407.566562,VS0,VE112'] - status: {code: 404, message: Not Found} + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371664.636920,VS0,VE117'] + status: {code: 200, message: OK} - request: - body: !!python/unicode '{"name": "Jimdo Fastly Ansible Module Test"}' + body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/director response: - body: {string: !!python/unicode '{"customer_id":"31RPDMBpiruA1yfGA2djLm","name":"Jimdo - Fastly Ansible Module Test","publish_key":"72d7fdcf951f90c8cbe5b9174797939dfbd267c0","versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false}],"deleted_at":null,"created_at":"2018-04-06T12:23:27Z","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl"}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['518'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:27 GMT'] - fastly-ratelimit-remaining: ['855'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47: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-fra19136-FRA'] - x-timer: ['S1523017407.743213,VS0,VE401'] + x-served-by: ['app-slwdc9051-SL, cache-fra19150-FRA'] + x-timer: ['S1523371664.817900,VS0,VE406'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/details + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/cache_settings 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":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl","version":{"testing":false,"number":1,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-06T12:23:27Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:27Z","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 '[]'} headers: accept-ranges: [bytes] age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['1047'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:27 GMT'] + date: ['Tue, 10 Apr 2018 14:47: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-fra19127-FRA'] - x-timer: ['S1523017407.343062,VS0,VE441'] + x-served-by: ['app-slwdc9051-SL, cache-fra19126-FRA'] + x-timer: ['S1523371664.288673,VS0,VE378'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] - method: POST - uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/gzip response: - body: {string: !!python/unicode '{"service_id":"2OoDoy0MEvFrKvrn2l5VVl","number":2}'} + body: {string: !!python/unicode '[]'} headers: accept-ranges: [bytes] + age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['50'] + content-length: ['2'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:27 GMT'] - fastly-ratelimit-remaining: ['854'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47: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-fra19130-FRA'] - x-timer: ['S1523017408.845961,VS0,VE137'] + x-served-by: ['app-slwdc9051-SL, cache-fra19129-FRA'] + x-timer: ['S1523371665.887504,VS0,VE112'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/header + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47:45 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371665.064059,VS0,VE113'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/request_settings + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47:45 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19139-FRA'] + x-timer: ['S1523371665.236088,VS0,VE121'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/response_object + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47:45 GMT'] + status: [200 OK] + vary: [Accept-Encoding] + via: [1.1 varnish, 1.1 varnish] + x-cache: ['MISS, MISS'] + x-cache-hits: ['0, 0'] + x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] + x-timer: ['S1523371665.415588,VS0,VE377'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Content-Type: [application/json] + method: GET + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/snippet + response: + body: {string: !!python/unicode '[]'} + headers: + accept-ranges: [bytes] + age: ['0'] + cache-control: [no-cache] + connection: [keep-alive] + content-length: ['2'] + content-type: [application/json] + date: ['Tue, 10 Apr 2018 14:47: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-fra19132-FRA'] + x-timer: ['S1523371666.015906,VS0,VE114'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"comment": "test1", "name": "cdn.example8000.com"}' headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/domain + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/domain response: - body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":2,"deleted_at":null,"created_at":"2018-04-06T12:23:28Z","updated_at":"2018-04-06T12:23:28Z"}'} + body: {string: !!python/unicode '{"comment":"test1","name":"cdn.example8000.com","service_id":"w7Nlu00Zboyz0qykr3Xd8","version":2,"deleted_at":null,"created_at":"2018-04-10T14:47:46Z","updated_at":"2018-04-10T14:47:46Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['188'] + content-length: ['187'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:28 GMT'] - fastly-ratelimit-remaining: ['853'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47:46 GMT'] + fastly-ratelimit-remaining: ['725'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19140-FRA'] - x-timer: ['S1523017408.046544,VS0,VE466'] + x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] + x-timer: ['S1523371666.192851,VS0,VE533'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ssl_ca_cert": null, "request_condition": "", "name": @@ -235,25 +472,25 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/backend + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/backend response: - body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-06T12:23:28Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-06T12:23:28Z","comment":""}'} + body: {string: !!python/unicode '{"ssl_ca_cert":null,"request_condition":"","name":"localhost","weight":100,"healthcheck":null,"first_byte_timeout":15000,"connect_timeout":1000,"error_threshold":0,"ssl_cert_hostname":null,"address":"127.0.0.1","between_bytes_timeout":10000,"max_conn":200,"port":80,"ssl_hostname":null,"shield":null,"service_id":"w7Nlu00Zboyz0qykr3Xd8","version":2,"max_tls_version":null,"ssl_client_cert":null,"hostname":null,"client_cert":null,"updated_at":"2018-04-10T14:47:47Z","ipv4":"127.0.0.1","ssl_ciphers":null,"ssl_client_key":null,"auto_loadbalance":false,"ssl_check_cert":true,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"deleted_at":null,"use_ssl":false,"created_at":"2018-04-10T14:47:47Z","comment":""}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['716'] + content-length: ['715'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:29 GMT'] - fastly-ratelimit-remaining: ['852'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47:47 GMT'] + fastly-ratelimit-remaining: ['724'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19138-FRA'] - x-timer: ['S1523017409.595159,VS0,VE429'] + x-served-by: ['app-slwdc9051-SL, cache-fra19133-FRA'] + x-timer: ['S1523371667.852780,VS0,VE450'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"ignore_if_set": "0", "regex": "", "request_condition": @@ -263,26 +500,26 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/header + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/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":"2OoDoy0MEvFrKvrn2l5VVl","version":"2","updated_at":"2018-04-06T12:23:29Z","deleted_at":null,"created_at":"2018-04-06T12:23:29Z"}'} + 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":"w7Nlu00Zboyz0qykr3Xd8","version":"2","updated_at":"2018-04-10T14:47:47Z","deleted_at":null,"created_at":"2018-04-10T14:47:47Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['412'] + content-length: ['411'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:29 GMT'] - fastly-ratelimit-remaining: ['851'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47:47 GMT'] + fastly-ratelimit-remaining: ['723'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] x-served-by: ['app-slwdc9051-SL, cache-fra19132-FRA'] - x-timer: ['S1523017409.234540,VS0,VE155'] + x-timer: ['S1523371667.364321,VS0,VE145'] status: {code: 200, message: OK} - request: body: !!python/unicode '{"status": "302", "request_condition": "", "name": "Set @@ -290,60 +527,60 @@ interactions: headers: Content-Type: [application/json] method: POST - uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/version/2/response_object + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/response_object response: body: {string: !!python/unicode '{"status":"302","request_condition":"","name":"Set - 302 status code","content":"","content_type":"","response":"Ok","service_id":"2OoDoy0MEvFrKvrn2l5VVl","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-06T12:23:30Z","updated_at":"2018-04-06T12:23:30Z"}'} + 302 status code","content":"","content_type":"","response":"Ok","service_id":"w7Nlu00Zboyz0qykr3Xd8","version":"2","deleted_at":null,"cache_condition":"","created_at":"2018-04-10T14:47:47Z","updated_at":"2018-04-10T14:47:47Z"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['278'] + content-length: ['277'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:30 GMT'] - fastly-ratelimit-remaining: ['850'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47:47 GMT'] + fastly-ratelimit-remaining: ['722'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19146-FRA'] - x-timer: ['S1523017410.756592,VS0,VE443'] + x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] + x-timer: ['S1523371668.572604,VS0,VE142'] 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/2OoDoy0MEvFrKvrn2l5VVl/version/2/settings + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/version/2/settings response: - body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"2OoDoy0MEvFrKvrn2l5VVl"}'} + body: {string: !!python/unicode '{"general.default_ttl":3600,"version":2,"general.default_host":"","general.default_pci":0,"service_id":"w7Nlu00Zboyz0qykr3Xd8"}'} headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] - content-length: ['128'] + content-length: ['127'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:30 GMT'] - fastly-ratelimit-remaining: ['849'] - fastly-ratelimit-reset: ['1523019600'] + date: ['Tue, 10 Apr 2018 14:47:48 GMT'] + fastly-ratelimit-remaining: ['721'] + fastly-ratelimit-reset: ['1523372400'] status: [200 OK] vary: [Accept-Encoding] via: [1.1 varnish, 1.1 varnish] x-cache: ['MISS, MISS'] x-cache-hits: ['0, 0'] - x-served-by: ['app-slwdc9051-SL, cache-fra19141-FRA'] - x-timer: ['S1523017410.436388,VS0,VE436'] + x-served-by: ['app-slwdc9051-SL, cache-fra19143-FRA'] + x-timer: ['S1523371668.776978,VS0,VE432'] status: {code: 200, message: OK} - request: body: null headers: Content-Type: [application/json] method: GET - uri: https://api.fastly.com/service/2OoDoy0MEvFrKvrn2l5VVl/details + uri: https://api.fastly.com/service/w7Nlu00Zboyz0qykr3Xd8/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":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:27Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"created_at":"2018-04-06T12:23:27Z","deleted_at":null,"comment":"","updated_at":"2018-04-06T12:23:30Z","deployed":false}],"created_at":"2018-04-06T12:23:27Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-06T12:23:27Z","id":"2OoDoy0MEvFrKvrn2l5VVl","version":{"testing":false,"number":2,"service_id":"2OoDoy0MEvFrKvrn2l5VVl","staging":false,"updated_at":"2018-04-06T12:23:30Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-06T12:23:27Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" + body: {string: !!python/unicode '{"name":"Jimdo Fastly Ansible Module Test","deleted_at":null,"versions":[{"testing":false,"locked":false,"number":1,"active":false,"service_id":"w7Nlu00Zboyz0qykr3Xd8","staging":false,"created_at":"2018-04-10T14:47:41Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:47:41Z","deployed":false},{"testing":false,"locked":false,"number":2,"active":false,"service_id":"w7Nlu00Zboyz0qykr3Xd8","staging":false,"created_at":"2018-04-10T14:47:42Z","deleted_at":null,"comment":"","updated_at":"2018-04-10T14:47:47Z","deployed":false}],"created_at":"2018-04-10T14:47:41Z","customer_id":"31RPDMBpiruA1yfGA2djLm","comment":"","updated_at":"2018-04-10T14:47:41Z","id":"w7Nlu00Zboyz0qykr3Xd8","version":{"testing":false,"number":2,"service_id":"w7Nlu00Zboyz0qykr3Xd8","staging":false,"updated_at":"2018-04-10T14:47:47Z","deployed":false,"locked":false,"active":false,"deleted_at":null,"created_at":"2018-04-10T14:47:42Z","comment":"","acls":[],"backends":[{"max_tls_version":null,"ssl_ca_cert":null,"auto_loadbalance":false,"ssl_check_cert":true,"shield":null,"hostname":null,"ssl_client_cert":null,"error_threshold":0,"request_condition":"","first_byte_timeout":15000,"ssl_cert_hostname":null,"weight":100,"client_cert":null,"address":"127.0.0.1","ssl_hostname":null,"ssl_sni_hostname":null,"min_tls_version":null,"ipv6":null,"ipv4":"127.0.0.1","connect_timeout":1000,"ssl_ciphers":null,"name":"localhost","healthcheck":null,"port":80,"max_conn":200,"use_ssl":false,"comment":"","between_bytes_timeout":10000,"ssl_client_key":null}],"cache_settings":[],"conditions":[],"dictionaries":[],"directors":[],"domains":[{"comment":"test1","name":"cdn.example8000.com"}],"gzips":[],"headers":[{"priority":"10","src":"\"https://u.jimcdn.com\" req.url.path","name":"Set Location header","substitution":"","ignore_if_set":"0","cache_condition":null,"request_condition":null,"regex":"","response_condition":null,"action":"set","type":"response","dst":"http.Location"}],"healthchecks":[],"request_settings":[],"response_objects":[{"request_condition":"","content_type":"","status":"302","response":"Ok","name":"Set 302 status code","content":"","cache_condition":""}],"snippets":[],"vcls":[],"wordpress":[],"settings":{"general.default_ttl":3600,"general.default_host":"","general.default_pci":0}},"active_version":null}'} headers: @@ -351,15 +588,15 @@ interactions: age: ['0'] cache-control: [no-cache] connection: [keep-alive] - content-length: ['2310'] + content-length: ['2306'] content-type: [application/json] - date: ['Fri, 06 Apr 2018 12:23:31 GMT'] + date: ['Tue, 10 Apr 2018 14:47: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-fra19124-FRA'] - x-timer: ['S1523017411.249151,VS0,VE152'] + x-served-by: ['app-slwdc9051-SL, cache-fra19130-FRA'] + x-timer: ['S1523371668.312257,VS0,VE150'] status: {code: 200, message: OK} version: 1 diff --git a/tests/test_fastly_service.py b/tests/test_fastly_service.py index b173a17..a7d9775 100644 --- a/tests/test_fastly_service.py +++ b/tests/test_fastly_service.py @@ -133,9 +133,8 @@ def test_service_does_exist_and_activate_new_version_is_disabled(self): old_service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, old_configuration, False).service new_service = self.enforcer.apply_configuration(self.FASTLY_TEST_SERVICE, new_configuration, False).service - self.assertNotEqual(new_service.latest_version.configuration.response_objects, old_configuration.response_objects) + self.assertNotEqual(old_service.latest_version.configuration.response_objects, new_service.latest_version.configuration.response_objects) self.assertNotEqual(old_service.latest_version.number, new_service.latest_version.number) - self.assertFalse(new_service.latest_version.active)