blob: 9345e7cb6dbe31f08e5ca928d5664e5466eae9da [file] [log] [blame]
require 'spec_helper'
describe 'backuppc::client', :type => :class do
describe 'On an unknown operating system' do
let(:facts) {{ :osfamily => 'Unknown' }}
it "should fail" do
expect do
subject
end.to raise_error(Puppet::Error, /support/)
end
end
context "On Ubuntu" do
let(:facts) {{ :osfamily => 'Debian' }}
let(:params) {{ :backuppc_hostname => 'backuppc.test.com' }}
it { should include_class("backuppc::params") }
end
context "On RedHat" do
let(:facts) {{ :osfamily => 'RedHat' }}
let(:params) {{ :backuppc_hostname => 'backuppc.test.com' }}
it { should include_class("backuppc::params") }
end
end