view modules/mysql/spec/classes/graceful_failures_spec.rb @ 149:af30a5eb468f puppet-3.6

Remove now deprecated mcrypt extension - all scripts now use openssl
author IBBoard <dev@ibboard.co.uk>
date Sun, 26 Mar 2017 16:53:34 +0100
parents 58d1818c2ded
children 48d3a1948e4d
line wrap: on
line source

require 'spec_helper'

describe 'mysql::server' do
  on_pe_unsupported_platforms.each do |pe_version,pe_platforms|
    pe_platforms.each do |pe_platform,facts|
      describe "on #{pe_version} #{pe_platform}" do
        let(:facts) { facts }

        context 'should gracefully fail' do
          it { expect { is_expected.to compile}.to raise_error(Puppet::Error, /Unsupported platform:/) }
        end
      end
    end
  end
end