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
|
|
|
|
|
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
|
|
|
|
{
|
2016-11-03 09:34:14 -06:00
|
|
|
:operator_roles => 'foo',
|
|
|
|
:reseller_prefix => 'SWIFT_',
|
|
|
|
:reseller_admin_role => 'ResellerAdmin'
|
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_') }
|
2016-11-03 09:34:14 -06:00
|
|
|
it { is_expected.to contain_swift_proxy_config('filter:keystone/reseller_admin_role').with_value('ResellerAdmin') }
|
2012-04-22 12:11:27 -07:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|