Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic acceptance Test #78

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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