X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fglance%2Fspec%2Fclasses%2Fglance_backend_swift_spec.rb;fp=3rdparty%2Fmodules%2Fglance%2Fspec%2Fclasses%2Fglance_backend_swift_spec.rb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=ddd946c9b29b02b5a5787bdcdf2b64070f59b420;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/glance/spec/classes/glance_backend_swift_spec.rb b/3rdparty/modules/glance/spec/classes/glance_backend_swift_spec.rb deleted file mode 100644 index ddd946c9b..000000000 --- a/3rdparty/modules/glance/spec/classes/glance_backend_swift_spec.rb +++ /dev/null @@ -1,74 +0,0 @@ -require 'spec_helper' - -describe 'glance::backend::swift' do - let :facts do - { - :osfamily => 'Debian' - } - end - - let :params do - { - :swift_store_user => 'user', - :swift_store_key => 'key', - } - end - - let :pre_condition do - 'class { "glance::api": keystone_password => "pass" }' - end - - describe 'when default parameters' do - - it 'configures glance-api.conf' do - should contain_glance_api_config('glance_store/default_store').with_value('swift') - should contain_glance_api_config('glance_store/swift_store_key').with_value('key') - should contain_glance_api_config('glance_store/swift_store_user').with_value('user') - should contain_glance_api_config('DEFAULT/swift_store_auth_version').with_value('2') - should contain_glance_api_config('DEFAULT/swift_store_large_object_size').with_value('5120') - should contain_glance_api_config('glance_store/swift_store_auth_address').with_value('127.0.0.1:5000/v2.0/') - should contain_glance_api_config('DEFAULT/swift_store_container').with_value('glance') - should contain_glance_api_config('DEFAULT/swift_store_create_container_on_put').with_value(false) - end - - it 'configures glance-cache.conf' do - should contain_glance_cache_config('glance_store/swift_store_key').with_value('key') - should contain_glance_cache_config('glance_store/swift_store_user').with_value('user') - should contain_glance_cache_config('DEFAULT/swift_store_auth_version').with_value('2') - should contain_glance_cache_config('DEFAULT/swift_store_large_object_size').with_value('5120') - should contain_glance_cache_config('glance_store/swift_store_auth_address').with_value('127.0.0.1:5000/v2.0/') - should contain_glance_cache_config('DEFAULT/swift_store_container').with_value('glance') - should contain_glance_cache_config('DEFAULT/swift_store_create_container_on_put').with_value(false) - end - end - - describe 'when overriding parameters' do - let :params do - { - :swift_store_user => 'user', - :swift_store_key => 'key', - :swift_store_auth_version => '1', - :swift_store_large_object_size => '100', - :swift_store_auth_address => '127.0.0.2:8080/v1.0/', - :swift_store_container => 'swift', - :swift_store_create_container_on_put => true - } - end - - it 'configures glance-api.conf' do - should contain_glance_api_config('DEFAULT/swift_store_container').with_value('swift') - should contain_glance_api_config('DEFAULT/swift_store_create_container_on_put').with_value(true) - should contain_glance_api_config('DEFAULT/swift_store_auth_version').with_value('1') - should contain_glance_api_config('DEFAULT/swift_store_large_object_size').with_value('100') - should contain_glance_api_config('glance_store/swift_store_auth_address').with_value('127.0.0.2:8080/v1.0/') - end - - it 'configures glance-cache.conf' do - should contain_glance_cache_config('DEFAULT/swift_store_container').with_value('swift') - should contain_glance_cache_config('DEFAULT/swift_store_create_container_on_put').with_value(true) - should contain_glance_cache_config('DEFAULT/swift_store_auth_version').with_value('1') - should contain_glance_cache_config('DEFAULT/swift_store_large_object_size').with_value('100') - should contain_glance_cache_config('glance_store/swift_store_auth_address').with_value('127.0.0.2:8080/v1.0/') - end - end -end