control 'default' do
  attribute_file = '/tmp/kitchen/node_attributes.json'
  if file(attribute_file).exist?
    node = json(attribute_file).params
    case node['automatic']['platform_family']
    when 'rhel'
      if node['automatic']['platform_version'].to_s.start_with?('7')

        describe command('yum repoinfo') do
          its('stdout') { should include 'IUS Community Packages for Enterprise Linux 7' }
          its('stdout') { should include 'IUS Community Packages for Enterprise Linux 7 - source' }
        end
      end
    end
  end
end
