2012-09-26 12:51:00 -04:00
|
|
|
Shindo.tests("Fog::CDN[:aws] | distribution", ['aws', 'cdn']) do
|
|
|
|
params = { :s3_origin => { 'DNSName' => 'fog_test_cdn.s3.amazonaws.com'}, :enabled => true }
|
2012-09-27 18:00:16 -04:00
|
|
|
model_tests(Fog::CDN[:aws].distributions, params, true) do
|
2012-09-26 12:51:00 -04:00
|
|
|
# distribution needs to be ready before being disabled
|
|
|
|
tests("#ready? - may take 15 minutes to complete...").succeeds do
|
|
|
|
@instance.wait_for { ready? }
|
|
|
|
end
|
|
|
|
|
|
|
|
# and disabled before being distroyed
|
|
|
|
tests("#disable - may take 15 minutes to complete...").succeeds do
|
|
|
|
@instance.disable
|
|
|
|
@instance.wait_for { ready? }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|