3 describe 'keystone::endpoint' do
5 it { is_expected.to contain_keystone_service('keystone').with(
8 :description => 'OpenStack Identity Service'
11 describe 'with default parameters' do
12 it { is_expected.to contain_keystone_endpoint('RegionOne/keystone').with(
14 :public_url => 'http://127.0.0.1:5000/v2.0',
15 :admin_url => 'http://127.0.0.1:35357/v2.0',
16 :internal_url => 'http://127.0.0.1:5000/v2.0'
20 describe 'with overridden parameters' do
23 { :version => 'v42.6',
24 :public_url => 'https://identity.some.tld/the/main/endpoint',
25 :admin_url => 'https://identity-int.some.tld/some/admin/endpoint',
26 :internal_url => 'https://identity-int.some.tld/some/internal/endpoint' }
29 it { is_expected.to contain_keystone_endpoint('RegionOne/keystone').with(
31 :public_url => 'https://identity.some.tld/the/main/endpoint/v42.6',
32 :admin_url => 'https://identity-int.some.tld/some/admin/endpoint/v42.6',
33 :internal_url => 'https://identity-int.some.tld/some/internal/endpoint/v42.6'
37 describe 'without internal_url parameter' do
40 { :public_url => 'https://identity.some.tld/the/main/endpoint' }
43 it 'internal_url should default to public_url' do
44 is_expected.to contain_keystone_endpoint('RegionOne/keystone').with(
46 :public_url => 'https://identity.some.tld/the/main/endpoint/v2.0',
47 :internal_url => 'https://identity.some.tld/the/main/endpoint/v2.0'
52 describe 'with domain parameters' do
55 { :user_domain => 'userdomain',
56 :project_domain => 'projectdomain',
57 :default_domain => 'defaultdomain' }
60 it { is_expected.to contain_keystone__resource__service_identity('keystone').with(
61 :user_domain => 'userdomain',
62 :project_domain => 'projectdomain',
63 :default_domain => 'defaultdomain'