2013-06-12 14:14:17 +08:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'swift::storage::disk' do
|
|
|
|
# TODO add more unit tests
|
|
|
|
|
|
|
|
let :title do
|
|
|
|
'sdb'
|
|
|
|
end
|
|
|
|
|
|
|
|
let :params do
|
|
|
|
{
|
|
|
|
:base_dir => '/dev',
|
|
|
|
:mnt_base_dir => '/srv/node',
|
|
|
|
:byte_size => '1024',
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2015-03-23 18:23:07 +01:00
|
|
|
it { is_expected.to contain_swift__storage__xfs('sdb').with(
|
2013-06-12 14:14:17 +08:00
|
|
|
:device => '/dev/sdb',
|
|
|
|
:mnt_base_dir => '/srv/node',
|
|
|
|
:byte_size => '1024',
|
|
|
|
:subscribe => 'Exec[create_partition_label-sdb]',
|
|
|
|
:loopback => false
|
|
|
|
) }
|
|
|
|
|
|
|
|
end
|