diff modules/mysql/spec/classes/graceful_failures_spec.rb @ 26:58d1818c2ded puppet-3.6

Update MySQL module (which adds "staging" module)
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Mar 2015 01:34:59 +0000
parents
children 48d3a1948e4d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/mysql/spec/classes/graceful_failures_spec.rb	Mon Mar 09 01:34:59 2015 +0000
@@ -0,0 +1,15 @@
+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