Merge "E2E tests for geo restrictions."

This commit is contained in:
Jenkins
2015-09-10 19:35:06 +00:00
committed by Gerrit Code Review
3 changed files with 187 additions and 0 deletions

View File

@@ -288,3 +288,17 @@ class OriginHeaderConfig(data_interfaces.ConfigSectionInterface):
def expires_and_cache_control_path(self):
"""expires_and_cache_control_path endpoint."""
return self.get('expires_and_cache_control_path')
class GeoRestrictionsConfig(data_interfaces.ConfigSectionInterface):
"""Configuration for testing geo restrictions."""
SECTION_NAME = 'geo_restrictions'
@property
def test_geo(self):
return self.get('test_geo')
@property
def image_path(self):
"""The uri at which the images_origin serves an image."""
return self.get('image_path')