diff --git a/examples/enable_and_targeted.pp b/examples/enable_and_targeted.pp old mode 100755 new mode 100644 diff --git a/examples/minimal.pp b/examples/minimal.pp old mode 100755 new mode 100644 index 4a2a7964..0e2d50d7 --- a/examples/minimal.pp +++ b/examples/minimal.pp @@ -12,5 +12,5 @@ # class { 'selinux': - type => 'minimal', + type => 'minimum', } diff --git a/examples/mls.pp b/examples/mls.pp old mode 100755 new mode 100644 diff --git a/examples/targeted.pp b/examples/targeted.pp old mode 100755 new mode 100644 diff --git a/spec/hosts/examples_spec.rb b/spec/hosts/examples_spec.rb new file mode 100644 index 00000000..d5bfab74 --- /dev/null +++ b/spec/hosts/examples_spec.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe 'example.com' do + on_supported_os.each do |os, os_facts| + context "on #{os}" do + let(:facts) { os_facts } + + Dir['examples/**/*.pp'].each do |example| + context "with #{example}" do + # Would be nicer to override the manifest + let(:pre_condition) { File.read(example) } + + it { is_expected.to compile.with_all_deps } + end + end + end + end +end