summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2016-09-21 09:31:25 -0400
committerEmilien Macchi <emilien@redhat.com>2016-09-21 09:33:28 -0400
commit04d5abe0b71e59fd9f1172b5ae1844b334d61311 (patch)
treec3bb1d69d2fa938bbd1f72e10a212e06467e4a64
parent494b9dfe952a47ac4dcc21acdec6c0adacf59a8b (diff)
Add FQDN testcase in swift proxy profile rspec tests
Add more coverage in our unit testing for FQDNs. Change-Id: I74859cdecc0d81138b2fe986883c4f7c49b8cab3
-rw-r--r--spec/classes/tripleo_profile_base_swift_proxy_spec.rb15
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 da80950..c1febab 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
context 'on Debian platforms' do