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 9e7c50d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
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 9e7c50d

Please sign in to comment.