aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-23 19:09:15 +0000
committerGerrit Code Review <review@openstack.org>2016-09-23 19:09:15 +0000
commitd3ae675747a70eb49cd2d732e5ac61b012a0389e (patch)
tree3099a163be8705681fab086a41f6ef24af94ae9f
parent3fd82ae8b2a2ed362b5af806f50afcfae3bd5da9 (diff)
parent04d5abe0b71e59fd9f1172b5ae1844b334d61311 (diff)
Merge "Add FQDN testcase in swift proxy profile rspec tests"
-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