diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/tripleo_profile_base_swift_proxy_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/classes/tripleo_profile_base_swift_proxy_spec.rb b/spec/classes/tripleo_profile_base_swift_proxy_spec.rb index 04c63d1..68d7dde 100644 --- a/spec/classes/tripleo_profile_base_swift_proxy_spec.rb +++ b/spec/classes/tripleo_profile_base_swift_proxy_spec.rb @@ -63,6 +63,21 @@ describe 'tripleo::profile::base::swift::proxy' do end end + context 'with ipv4, ipv6 and fqdn memcache servers' do + before :each do + params.merge!( + :step => 4, + :memcache_servers => ['192.168.0.1', '::2', 'myserver.com'], + ) + end + + it 'configure swift proxy cache with ips and fqdn' do + is_expected.to contain_class('swift::proxy::cache').with({ + :memcache_servers => ['192.168.0.1:11211', '[::2]:11211', 'myserver.com:11211'] + }) + end + end + end on_supported_os.each do |os, facts| |