Files
puppet-keystone/spec/classes/keystone_federation_spec.rb
Takashi Kajinami e13958ad9e Refactor api service management
Drop validation of service name which is not implemented for
the other daemons. This allows us to simplify handling of the provided
service name.

Also remove the "dead" support for standalone keystone service in
CentOS/RHEL because the service is no longer available in these
operating systems.

Change-Id: I4aacfc55e43bc15a1e9f821353633d651dc29dfa
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-09-28 01:33:14 +09:00

37 lines
1.1 KiB
Ruby

require 'spec_helper'
describe 'keystone::federation' do
shared_examples_for 'keystone::federation' do
context 'with defaults' do
it 'should configure federation options' do
is_expected.to contain_keystone_config('federation/trusted_dashboard').with_value('<SERVICE DEFAULT>')
is_expected.to contain_keystone_config('federation/remote_id_attribute').with_value('<SERVICE DEFAULT>')
end
end
context 'with optional parameters' do
let :params do
{
:trusted_dashboards => ['http://dashboard.example.com'],
:remote_id_attribute => 'test_attribute',
}
end
it 'should configure federation options' do
is_expected.to contain_keystone_config('federation/trusted_dashboard').with_value(['http://dashboard.example.com'])
is_expected.to contain_keystone_config('federation/remote_id_attribute').with_value('test_attribute')
end
end
end
on_supported_os({
}).each do |os,facts|
let (:facts) do
facts.merge!(OSDefaults.get_facts({}))
end
it_behaves_like 'keystone::federation'
end
end