Add concat_basedir fact to tests that validate concat fragments

This commit is contained in:
Branan Purvine-Riley 2012-05-08 15:51:51 -07:00
parent d64ebe5fba
commit 0684d1f6cd
6 changed files with 24 additions and 3 deletions

View File

@ -6,7 +6,8 @@ describe 'swift::proxy::cache' do
{
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:processorcount => 1
:processorcount => 1,
:concat_basedir => '/var/lib/puppet/concat',
}
end

View File

@ -2,6 +2,12 @@ require 'spec_helper'
describe 'swift::proxy::healthcheck' do
let :facts do
{
:concat_basedir => '/var/lib/puppet/concat'
}
end
let :pre_condition do
'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'

View File

@ -2,6 +2,12 @@ require 'spec_helper'
describe 'swift::proxy::keystone' do
let :facts do
{
:concat_basedir => '/var/lib/puppet/concat',
}
end
let :fragment_file do
'/var/lib/puppet/concat/_etc_swift_proxy-server.conf/fragments/79_swift_keystone'
end

View File

@ -14,7 +14,8 @@ describe 'swift::proxy' do
let :facts do
{:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:processorcount => 1
:processorcount => 1,
:concat_basedir => '/var/lib/puppet/concat',
}
end

View File

@ -2,6 +2,12 @@ require 'spec_helper'
describe 'swift::proxy::swauth' do
let :facts do
{
:concat_basedir => '/var/lib/puppet/concat'
}
end
let :pre_condition do
'class { "concat::setup": }
concat { "/etc/swift/proxy-server.conf": }'

View File

@ -5,7 +5,8 @@ describe 'swift::storage::server' do
{
:operatingsystem => 'Ubuntu',
:osfamily => 'Debian',
:processorcount => 1
:processorcount => 1,
:concat_basedir => '/var/lib/puppet/concat',
}
end