Skip to content

Commit

Permalink
Merge branch 'voxpupuli:master' into add-el9
Browse files Browse the repository at this point in the history
  • Loading branch information
Valantin authored Mar 11, 2024
2 parents 144cbde + ea7a026 commit b068538
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions spec/acceptance/supportedos_spec.rb
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

require 'voxpupuli/acceptance/spec_helper_acceptance'

ENV['BEAKER_FACTER_virtual'] = 'vmware'

configure_beaker

0 comments on commit b068538

Please sign in to comment.