-
-
Save domcleal/9b72984b029d439f3e48b20c93303c8c to your computer and use it in GitHub Desktop.
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
require 'spec_helper' | |
describe 'gluster::client', :type => :class do | |
on_supported_os.each do |os, facts| | |
context "on #{os}" do | |
let(:facts) do | |
facts | |
end | |
context "with all defaults" | |
it { should compile.with_all_deps } | |
it 'should include gluster::install' do | |
should create_class('gluster::install').with( | |
repo: true, | |
client_package: 'glusterfs-fuse', | |
version: 'LATEST', | |
) | |
end | |
end | |
context 'when a version number is specified' do | |
let :params do { version: '3.6.1' } end | |
it 'should include gluster::install with version 3.6.1' do | |
should create_class('gluster::install').with( | |
repo: true, | |
client_package: 'glusterfs-fuse', | |
version: '3.6.1', | |
) | |
end | |
end | |
context 'when repo is false' do | |
let :params do { repo: false } end | |
it 'should include gluster::install with repo=>false' do | |
should create_class('gluster::install').with( | |
repo: false, | |
client_package: 'glusterfs-fuse', | |
version: 'LATEST', | |
) | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment