2012-04-06 10:18:14 -07:00
|
|
|
require 'spec_helper'
|
2018-05-17 00:13:44 +02:00
|
|
|
|
2012-04-06 10:18:14 -07:00
|
|
|
describe 'swift::xfs' do
|
2018-05-17 00:13:44 +02:00
|
|
|
shared_examples 'swift::xfs' do
|
|
|
|
['xfsprogs', 'parted'].each do |present_package|
|
2021-10-01 16:04:41 +09:00
|
|
|
it { is_expected.to contain_package(present_package).with_ensure('installed') }
|
2018-05-17 00:13:44 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
on_supported_os({
|
|
|
|
:supported_os => OSDefaults.get_supported_os
|
|
|
|
}).each do |os,facts|
|
|
|
|
context "on #{os}" do
|
|
|
|
let (:facts) do
|
|
|
|
facts.merge(OSDefaults.get_facts())
|
|
|
|
end
|
|
|
|
|
|
|
|
it_configures 'swift::xfs'
|
|
|
|
end
|
2012-04-06 10:18:14 -07:00
|
|
|
end
|
|
|
|
end
|