
* keystone::endpoint::public_port (deprecated since 4.0.0) * keystone::endpoint::public_protocol (deprecated since 4.0.0) * keystone::endpoint::public_address (deprecated since 4.0.0) * keystone::endpoint::internal_address (deprecated since 4.0.0) * keystone::endpoint::internal_port (deprecated since 4.0.0) * keystone::endpoint::admin_address (deprecated since 4.0.0) * keystone::endpoint::admin_port (deprecated since 4.0.0) * keystone::sql_connection (deprecated since 4.1.0) * keystone::idle_timeout (deprecated since 4.1.0) * keystone::bind_host (deprecated since 4.0.0) * keystone::token_format (deprecated since 3.0.0) Change-Id: I8b8ed42d4d81aa8091f2fae38f05cb74428051a9
52 lines
1.7 KiB
Ruby
52 lines
1.7 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'keystone::endpoint' do
|
|
|
|
it { should contain_keystone_service('keystone').with(
|
|
:ensure => 'present',
|
|
:type => 'identity',
|
|
:description => 'OpenStack Identity Service'
|
|
)}
|
|
|
|
describe 'with default parameters' do
|
|
it { should contain_keystone_endpoint('RegionOne/keystone').with(
|
|
:ensure => 'present',
|
|
:public_url => 'http://127.0.0.1:5000/v2.0',
|
|
:admin_url => 'http://127.0.0.1:35357/v2.0',
|
|
:internal_url => 'http://127.0.0.1:5000/v2.0'
|
|
)}
|
|
end
|
|
|
|
describe 'with overridden parameters' do
|
|
|
|
let :params do
|
|
{ :version => 'v42.6',
|
|
:public_url => 'https://identity.some.tld/the/main/endpoint',
|
|
:admin_url => 'https://identity-int.some.tld/some/admin/endpoint',
|
|
:internal_url => 'https://identity-int.some.tld/some/internal/endpoint' }
|
|
end
|
|
|
|
it { should contain_keystone_endpoint('RegionOne/keystone').with(
|
|
:ensure => 'present',
|
|
:public_url => 'https://identity.some.tld/the/main/endpoint/v42.6',
|
|
:admin_url => 'https://identity-int.some.tld/some/admin/endpoint/v42.6',
|
|
:internal_url => 'https://identity-int.some.tld/some/internal/endpoint/v42.6'
|
|
)}
|
|
end
|
|
|
|
describe 'without internal_url parameter' do
|
|
|
|
let :params do
|
|
{ :public_url => 'https://identity.some.tld/the/main/endpoint' }
|
|
end
|
|
|
|
it 'internal_url should default to public_url' do
|
|
should contain_keystone_endpoint('RegionOne/keystone').with(
|
|
:ensure => 'present',
|
|
:public_url => 'https://identity.some.tld/the/main/endpoint/v2.0',
|
|
:internal_url => 'https://identity.some.tld/the/main/endpoint/v2.0'
|
|
)
|
|
end
|
|
end
|
|
end
|