7034190780
XFS may not be available on all systems
43 lines
849 B
Ruby
43 lines
849 B
Ruby
require 'spec_helper'
|
|
describe 'swift::storage::mount' do
|
|
# TODO add unit tests
|
|
|
|
let :title do
|
|
'dans_mount_point'
|
|
end
|
|
|
|
describe 'with defaults params' do
|
|
let :params do
|
|
{
|
|
:device => '/dev/sda'
|
|
}
|
|
end
|
|
|
|
it { should contain_mount('/srv/node/dans_mount_point').with(
|
|
:ensure => 'present',
|
|
:device => '/dev/sda',
|
|
:fstype => 'xfs',
|
|
:options => 'noatime,nodiratime,nobarrier,logbufs=8',
|
|
:require => 'File[/srv/node/dans_mount_point]'
|
|
)}
|
|
|
|
end
|
|
|
|
describe 'when mounting a loopback device' do
|
|
|
|
let :params do
|
|
{
|
|
:device => '/dev/sda',
|
|
:loopback => true
|
|
}
|
|
end
|
|
|
|
it { should contain_mount('/srv/node/dans_mount_point').with(
|
|
:device => '/dev/sda',
|
|
:options => 'noatime,nodiratime,nobarrier,loop,logbufs=8'
|
|
)}
|
|
|
|
end
|
|
|
|
end
|