diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2974af3..1f82c4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,4 +18,4 @@ concurrency: jobs: puppet: name: Puppet - uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v2 + uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2 diff --git a/spec/acceptance/supportedos_spec.rb b/spec/acceptance/supportedos_spec.rb new file mode 100644 index 0000000..89b80c9 --- /dev/null +++ b/spec/acceptance/supportedos_spec.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +require 'spec_helper_acceptance' + +describe 'openvmtools class' do + context 'default parameters' do + it 'work with no errors' do + pp = <<-EOS + class { 'openvmtools': } + EOS + + # not run idempotently becase service not start cause + # systemd condition ConditionVirtualization=vmware + # if the host is not virtualized under vmware it fail + apply_manifest(pp, catch_failures: true) + end + + describe package('open-vm-tools') do + it { is_expected.to be_installed } + end + + describe service('vmtoolsd') do + it { is_expected.to be_enabled } + end + end +end diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb new file mode 100644 index 0000000..5bfab63 --- /dev/null +++ b/spec/spec_helper_acceptance.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +require 'voxpupuli/acceptance/spec_helper_acceptance' + +ENV['BEAKER_FACTER_virtual'] = 'vmware' + +configure_beaker