-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from Valantin/add-acceptance
Add basic acceptance Test
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |