diff --git a/.kitchen.yml b/.kitchen.yml index 6407bebf..f737d4c9 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -6,6 +6,7 @@ driver_config: provisioner: name: chef_solo + # log_level: debug platforms: <% @@ -17,17 +18,14 @@ platforms: # non RHEL OS's test_platforms = %w( - ubuntu-14.04 - ubuntu-16.04 + centos-6.9 + centos-7.3 debian-7.11 debian-8.7 + fedora-25 freebsd-10.3 - ) - - # RHEL OS's - test_platforms_rhel = %w( - centos-6.9 - centos-7.3 + ubuntu-14.04 + ubuntu-16.04 ) %> @@ -36,16 +34,16 @@ platforms: driver_config: box: bento/<%= platform_version %> require_chef_omnibus: <%= chef_version %> -<% end %> - -<% test_platforms_rhel.product(chef_versions).each do |platform_version, chef_version| %> - - name: <%= platform_version %>-<%= chef_version %> - driver_config: - box: bento/<%= platform_version %> - require_chef_omnibus: <%= chef_version %> + <% if platform_version == 'debian-7.11' %> + # Set due to https://github.com/test-kitchen/kitchen-vagrant/issues/293 + driver: + kitchen_cache_directory: .kitchen/cache/debian + <% end %> + <% if platform_version.start_with?('centos') %> run_list: - recipe[yum-epel::default] - recipe[yum-remi::default] + <% end %> <% end %> suites: diff --git a/test/integration/helpers/serverspec/redisio_examples.rb b/test/integration/helpers/serverspec/redisio_examples.rb index 1230bd1a..0ce6460a 100644 --- a/test/integration/helpers/serverspec/redisio_examples.rb +++ b/test/integration/helpers/serverspec/redisio_examples.rb @@ -2,7 +2,8 @@ it 'enables the redis service' do service_name = if (os[:family] == 'redhat' && os[:release][0] == '7') || (os[:family] == 'ubuntu' && os[:release].to_f >= 16.04) || - (os[:family] == 'debian' && os[:release].to_f >= 8.0) + (os[:family] == 'debian' && os[:release].to_f >= 8.0) || + os[:family] == 'fedora' "redis@#{redis_port}" else "redis#{redis_port}" diff --git a/test/integration/helpers/serverspec/sentinel_examples.rb b/test/integration/helpers/serverspec/sentinel_examples.rb index 68939548..232a1697 100644 --- a/test/integration/helpers/serverspec/sentinel_examples.rb +++ b/test/integration/helpers/serverspec/sentinel_examples.rb @@ -3,7 +3,8 @@ redis_cluster_name ||= 'mycluster' name = if (os[:family] == 'redhat' && os[:release][0] == '7') || (os[:family] == 'ubuntu' && os[:release].to_f >= 16.04) || - (os[:family] == 'debian' && os[:release].to_f >= 8.0) + (os[:family] == 'debian' && os[:release].to_f >= 8.0) || + os[:family] == 'fedora' "redis-sentinel@#{redis_cluster_name}" else "redis_sentinel_#{redis_cluster_name}" diff --git a/test/integration/multisentinel/serverspec/multiple_sentinels_spec.rb b/test/integration/multisentinel/serverspec/multiple_sentinels_spec.rb index b96f6e84..c145a2bf 100644 --- a/test/integration/multisentinel/serverspec/multiple_sentinels_spec.rb +++ b/test/integration/multisentinel/serverspec/multiple_sentinels_spec.rb @@ -39,7 +39,8 @@ unless (os[:family] == 'redhat' && os[:release][0] == '7') || os[:family] == 'freebsd' || (os[:family] == 'ubuntu' && os[:release].to_f >= 16.04) || - (os[:family] == 'debian' && os[:release].to_f >= 8.0) + (os[:family] == 'debian' && os[:release].to_f >= 8.0) || + os[:family] == 'fedora' describe file('/etc/init.d/redis_sentinel_cluster') do [ %r{SENTINELNAME=sentinel_cluster},