Skip to content

Commit

Permalink
Add unit test for main class
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jul 10, 2021
1 parent 0e2fc2f commit bd7a963
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 bd7a963

Please sign in to comment.