d339eb4937
It aim to support to use the disk device as the swift storage backend, this pathch contains: * a new define with three params * annotations and examples for this define * a new spec test Change-Id: I92f13992a02b9cff0f29bde3266a92f37bf63d13
27 lines
502 B
Ruby
27 lines
502 B
Ruby
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
|
|
|
|
it { should contain_swift__storage__xfs('sdb').with(
|
|
:device => '/dev/sdb',
|
|
:mnt_base_dir => '/srv/node',
|
|
:byte_size => '1024',
|
|
:subscribe => 'Exec[create_partition_label-sdb]',
|
|
:loopback => false
|
|
) }
|
|
|
|
end
|