puppet-swift/spec/defines/swift_storage_disk_spec.rb
newptone d339eb4937 Add swift::storage::disk to support disk device.
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
2013-06-12 14:14:17 +08:00

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