Skip to content

Commit

Permalink
Merge pull request #2 from voxpupuli/tests
Browse files Browse the repository at this point in the history
Add unit test for main class
  • Loading branch information
bastelfreak authored Jul 10, 2021
2 parents 0e2fc2f + bd7a963 commit d68233b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/classes/wireguard_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require 'spec_helper'

describe 'wireguard' do
let :node do
'postgres01.example.com'
end

on_supported_os.each do |os, facts|
context "on #{os} " do
let :facts do
facts
end

context 'with all defaults' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_file('/etc/wireguard') }
it { is_expected.to contain_package('wireguard-tools') }
end
end
end
end

0 comments on commit d68233b

Please sign in to comment.