End to end test for multiple origins
This runs a test using two origins: * the default origin does not serve any images * the alternative origin serves an image The test sets up origin rules such that all content is fetched from the default origin, except for an image which is fetched from the alternative origin. The test verifies that the image is properly served from the cdn-enabled domain. Change-Id: I730b2a77e8b7226db79c9b172b9b5aa9227b0fd1
This commit is contained in:
@@ -134,3 +134,21 @@ class DNSConfig(data_interfaces.ConfigSectionInterface):
|
||||
def retry_interval(self):
|
||||
"""Int value to set timeout for status check."""
|
||||
return int(self.get('retry_interval'))
|
||||
|
||||
|
||||
class MultipleOriginConfig(data_interfaces.ConfigSectionInterface):
|
||||
"""Configuration for testing multiple origins."""
|
||||
SECTION_NAME = 'multiple_origin'
|
||||
|
||||
@property
|
||||
def default_origin(self):
|
||||
return self.get('default_origin')
|
||||
|
||||
@property
|
||||
def images_origin(self):
|
||||
return self.get('images_origin')
|
||||
|
||||
@property
|
||||
def image_path(self):
|
||||
"""The uri at which the images_origin serves an image."""
|
||||
return self.get('image_path')
|
||||
|
||||
Reference in New Issue
Block a user