This introduces a few new parameters to the profile class so that users can enable keystone integration of RADOS Gateway. This allows us to fix some ignored profile parameters, and also remove the references from the non-profile manifest to the profile parameters. The rgw_keystone_version parameter is removed by this change. The actual parameter was deprecated[1] and was removed[2] from the rgw class very long ago. [1]85b9d61c40[2]0377da4e08Change-Id: I4026d3c2d40ae9b7ed9c3a60529011854b878f89
42 lines
1.3 KiB
Ruby
42 lines
1.3 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'ceph::profile::rgw' do
|
|
|
|
shared_examples 'ceph profile rgw' do
|
|
|
|
it { should contain_ceph__rgw('radosgw.gateway').with(
|
|
:user => 'ceph',
|
|
:frontend_type => 'beast',
|
|
:rgw_frontends => 'beast endpoint=127.0.0.1:8080',
|
|
:rgw_swift_url => 'http://127.0.0.1:8080',
|
|
) }
|
|
it { should contain_ceph__rgw__keystone('radosgw.gateway').with(
|
|
:rgw_keystone_admin_domain => 'Default',
|
|
:rgw_keystone_admin_project => 'services',
|
|
:rgw_keystone_admin_user => 'rgwuser',
|
|
:rgw_keystone_admin_password => 'secret',
|
|
:rgw_keystone_url => 'http://127.0.0.1:5000'
|
|
) }
|
|
it { should contain_class('ceph::rgw::keystone::auth').with(
|
|
:password => 'secret',
|
|
:user => 'rgwuser',
|
|
:tenant => 'services',
|
|
:public_url => 'http://127.0.0.1:8080/swift/v1',
|
|
:admin_url => 'http://127.0.0.1:8080/swift/v1',
|
|
:internal_url => 'http://127.0.0.1:8080/swift/v1',
|
|
) }
|
|
end
|
|
|
|
on_supported_os({
|
|
:supported_os => OSDefaults.get_supported_os
|
|
}).each do |os,facts|
|
|
context "on #{os}" do
|
|
let (:facts) do
|
|
facts.merge!(OSDefaults.get_facts())
|
|
end
|
|
|
|
it_behaves_like 'ceph profile rgw'
|
|
end
|
|
end
|
|
end
|