poppy/tests/unit/provider/akamai/data_update_service.json
Isaac Mungai 876d1e2104 Unit tests for akamai services controller
Change-Id: I69fe1956bccfab08332182c9e73230da43cd03e2
2016-08-29 11:14:07 -04:00

110 lines
3.4 KiB
JSON

{
"single_one_origin_with_domains": {
"name" : "mysite.com",
"domains": [
{"domain": "parsely.sage.com"},
{"domain": "densely.sage.com",
"protocol": "https",
"certificate": "shared"},
{"domain": "rosemary.thyme.net"}
],
"origins": [
{"origin": "mockdomain.com", "ssl": false, "port": 80}
],
"flavor_id" : "standard"
},
"multiple_origins_with_domains": {
"name" : "mysite.com",
"domains": [
{"domain": "parsely.sage.com"},
{"domain": "densely.sage.com",
"protocol": "https",
"certificate": "san"},
{"domain": "rosemary.thyme.net"}
],
"origins": [
{"origin": "mockdomain.com", "ssl": true, "port": 443},
{"origin": "mockdomain-image.com",
"rules": [{"name": "img", "request_url": "/img"}] }
],
"flavor_id" : "standard",
"provider_details": {
"Akamai": {
"access_urls": [{"provider_url": "akamai.provider.com", "domain": "densely.sage.com"}],
"id": [{"protocol": "https", "certificate": "san", "policy_name": "densely.sage.com"}],
"domains_certificate_status": {"densely.sage.com": "create_in_progress"}
}
}
},
"single_one_origin_without_domains": {
"name" : "mysite.com",
"origins": [
{"origin": "mockdomain.com", "ssl": false, "port": 80}
],
"flavor_id" : "standard"
},
"multiple_origins_without_domains": {
"name" : "mysite.com",
"origins": [
{"origin": "mockdomain.com", "ssl": false, "port": 80},
{"origin": "mockdomain-image.com",
"rules": [{"name": "img", "request_url": "/img"}] }
],
"restrictions": [
{
"name": "website only",
"access": "whitelist",
"rules": [
{
"name": "mocksite.com",
"http_host": "www.mocksite.com"
}
]
},
{
"name": "graphic and US only",
"access": "whitelist",
"rules": [
{
"name": "mockgraphicsite.com",
"referrer": "www.mocksitegraphic.com"
},
{
"name": "US geo restriction",
"geography": "USA"
}
]
}
],
"caching": [
{"name": "default", "ttl": 1200 },
{"name": "img-only",
"ttl": 1800,
"rules": [
{ "name": "jpeg-rules",
"request_url": "/*.jpeg"
},
{ "name": "gif-rules",
"request_url": "/*.gif"
}
]
}
],
"flavor_id" : "standard"
},
"no_origin_with_domains": {
"name" : "mysite.com",
"domains": [
{"domain": "parsely.sage.com"},
{"domain": "densely.sage.com"},
{"domain": "rosemary.thyme.net"}
],
"flavor_id" : "standard"
},
"no_origin_without_domains": {
"name" : "mysite.com",
"flavor_id" : "standard"
}
}