Skip to content

Commit

Permalink
Add basic acceptance Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Valantin committed Mar 11, 2024
1 parent fecd379 commit 643a1db
Show file tree
Hide file tree
Showing 3 changed files with 31 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
23 changes: 23 additions & 0 deletions spec/acceptance/supportedos_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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

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 643a1db

Please sign in to comment.