2012-04-22 12:11:27 -07:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'swift::proxy::keystone' do
|
|
|
|
|
2012-05-08 15:51:51 -07:00
|
|
|
let :facts do
|
2014-08-12 16:59:04 +02:00
|
|
|
{}
|
2012-05-08 15:51:51 -07:00
|
|
|
end
|
|
|
|
|
2012-04-22 12:11:27 -07:00
|
|
|
let :pre_condition do
|
2016-01-03 13:17:34 -05:00
|
|
|
'concat { "/etc/swift/proxy-server.conf": }'
|
2012-04-22 12:11:27 -07:00
|
|
|
end
|
|
|
|
|
2016-09-28 18:25:24 +00:00
|
|
|
it { is_expected.to contain_swift_proxy_config('filter:keystone/use').with_value('egg:swift#keystoneauth') }
|
2012-04-22 12:11:27 -07:00
|
|
|
|
|
|
|
describe 'with defaults' do
|
|
|
|
|
2016-09-28 18:25:24 +00:00
|
|
|
it { is_expected.to contain_swift_proxy_config('filter:keystone/operator_roles').with_value('admin, SwiftOperator') }
|
|
|
|
it { is_expected.to contain_swift_proxy_config('filter:keystone/reseller_prefix').with_value('AUTH_') }
|
2012-04-22 12:11:27 -07:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
describe 'with parameter overrides' do
|
|
|
|
|
|
|
|
let :params do
|
|
|
|
{
|
2014-09-05 18:42:04 -04:00
|
|
|
:operator_roles => 'foo',
|
|
|
|
:reseller_prefix => 'SWIFT_'
|
2012-04-22 12:11:27 -07:00
|
|
|
}
|
|
|
|
|
2016-09-28 18:25:24 +00:00
|
|
|
it { is_expected.to contain_swift_proxy_config('filter:keystone/operator_roles').with_value('foo') }
|
|
|
|
it { is_expected.to contain_swift_proxy_config('filter:keystone/reseller_prefix').with_value('SWIFT_') }
|
2012-04-22 12:11:27 -07:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|