b479685940
In keystone we had some references to Execs that may or may not have been defined depending on the class parameters. The latest version of puppet has changed how the catalog is compiled exposing these possibly undefined references. This change updates to use resource collectors where applicable. Change-Id: Id5dcc42301b622e7f8331b0d61fdef8b7fea1992 Closes-Bug: #1702964
18 lines
531 B
Ruby
18 lines
531 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'keystone::disable_admin_token_auth' do
|
|
let :facts do
|
|
@default_facts.merge(:osfamily => 'Debian')
|
|
end
|
|
|
|
let :pre_condition do
|
|
'class { "::keystone": admin_token => "secret", }
|
|
class { "::keystone::roles::admin": password => "secret" }
|
|
'
|
|
end
|
|
|
|
it { is_expected.to contain_ini_subsetting('public_api/admin_token_auth') }
|
|
it { is_expected.to contain_ini_subsetting('admin_api/admin_token_auth') }
|
|
it { is_expected.to contain_ini_subsetting('api_v3/admin_token_auth') }
|
|
end
|