|
|
|
@ -19,12 +19,12 @@ describe 'glance::keystone::auth' do
|
|
|
|
|
:roles => ['admin']
|
|
|
|
|
) }
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_service('Image Service::image').with(
|
|
|
|
|
it { is_expected.to contain_keystone_service('glance::image').with(
|
|
|
|
|
:ensure => 'present',
|
|
|
|
|
:description => 'OpenStack Image Service'
|
|
|
|
|
) }
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_endpoint('RegionOne/Image Service::image').with(
|
|
|
|
|
it { is_expected.to contain_keystone_endpoint('RegionOne/glance::image').with(
|
|
|
|
|
:ensure => 'present',
|
|
|
|
|
:public_url => 'http://127.0.0.1:9292',
|
|
|
|
|
:admin_url => 'http://127.0.0.1:9292',
|
|
|
|
@ -53,7 +53,7 @@ describe 'glance::keystone::auth' do
|
|
|
|
|
:roles => ['admin']
|
|
|
|
|
) }
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_service('Image Service::imagey').with(
|
|
|
|
|
it { is_expected.to contain_keystone_service('glance::imagey').with(
|
|
|
|
|
:ensure => 'present',
|
|
|
|
|
:description => 'OpenStack Image Service'
|
|
|
|
|
) }
|
|
|
|
@ -69,7 +69,7 @@ describe 'glance::keystone::auth' do
|
|
|
|
|
:admin_url => 'https://10.10.10.12:81/v2' }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_endpoint('RegionTwo/Image Service::image').with(
|
|
|
|
|
it { is_expected.to contain_keystone_endpoint('RegionTwo/glance::image').with(
|
|
|
|
|
:ensure => 'present',
|
|
|
|
|
:public_url => 'https://10.10.10.10:81/v2',
|
|
|
|
|
:internal_url => 'https://10.10.10.11:81/v2',
|
|
|
|
@ -86,7 +86,7 @@ describe 'glance::keystone::auth' do
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it { is_expected.to_not contain_keystone_endpoint('RegionOne/Image Service::image') }
|
|
|
|
|
it { is_expected.to_not contain_keystone_endpoint('RegionOne/glance::image') }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
describe 'when disabling user configuration' do
|
|
|
|
@ -101,7 +101,7 @@ describe 'glance::keystone::auth' do
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_user_role('glance@services') }
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_service('Image Service::image').with(
|
|
|
|
|
it { is_expected.to contain_keystone_service('glance::image').with(
|
|
|
|
|
:ensure => 'present',
|
|
|
|
|
:description => 'OpenStack Image Service'
|
|
|
|
|
) }
|
|
|
|
@ -120,7 +120,7 @@ describe 'glance::keystone::auth' do
|
|
|
|
|
|
|
|
|
|
it { is_expected.to_not contain_keystone_user_role('glance@services') }
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_service('Image Service::image').with(
|
|
|
|
|
it { is_expected.to contain_keystone_service('glance::image').with(
|
|
|
|
|
:ensure => 'present',
|
|
|
|
|
:description => 'OpenStack Image Service'
|
|
|
|
|
) }
|
|
|
|
@ -138,7 +138,7 @@ describe 'glance::keystone::auth' do
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it { is_expected.to contain_keystone_endpoint('RegionOne/Image Service::image').with_notify(["Service[glance-api]"]) }
|
|
|
|
|
it { is_expected.to contain_keystone_endpoint('RegionOne/glance::image').with_notify(["Service[glance-api]"]) }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
describe 'when overriding service name' do
|
|
|
|
|