@ -26,6 +26,19 @@ describe 'glance::backend::s3' do
is_expected . to contain_glance_api_config ( 'glance_store/s3_store_object_buffer_dir' ) . with_value ( nil )
is_expected . to contain_glance_api_config ( 'glance_store/s3_store_thread_pools' ) . with_value ( '10' )
end
it 'not configures glance-glare.conf' do
is_expected . to_not contain_glance_glare_config ( 'glance_store/default_store' ) . with_value ( 's3' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_access_key' ) . with_value ( 'access' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_secret_key' ) . with_value ( 'secret' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_host' ) . with_value ( 'host' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_bucket' ) . with_value ( 'bucket' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_bucket_url_format' ) . with_value ( 'subdomain' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_create_bucket_on_put' ) . with_value ( 'false' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_large_object_size' ) . with_value ( '100' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_large_object_chunk_size' ) . with_value ( '10' )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_object_buffer_dir' ) . with_value ( nil )
is_expected . to_not contain_glance_glare_config ( 'glance_store/s3_store_thread_pools' ) . with_value ( '10' )
end
end
@ -42,6 +55,7 @@ describe 'glance::backend::s3' do
:large_object_chunk_size = > 20 ,
:object_buffer_dir = > '/tmp' ,
:thread_pools = > 20 ,
:glare_enabled = > true ,
}
end
@ -58,6 +72,18 @@ describe 'glance::backend::s3' do
is_expected . to contain_glance_api_config ( 'glance_store/s3_store_thread_pools' ) . with_value ( '20' )
end
it 'configures glance-glare.conf' do
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_access_key' ) . with_value ( 'access2' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_secret_key' ) . with_value ( 'secret2' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_host' ) . with_value ( 'host2' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_bucket' ) . with_value ( 'bucket2' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_bucket_url_format' ) . with_value ( 'path' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_create_bucket_on_put' ) . with_value ( 'true' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_large_object_size' ) . with_value ( '200' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_large_object_chunk_size' ) . with_value ( '20' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_object_buffer_dir' ) . with_value ( '/tmp' )
is_expected . to contain_glance_glare_config ( 'glance_store/s3_store_thread_pools' ) . with_value ( '20' )
end
end
describe 'with invalid bucket_url_format' do