Tests for role mapping
This commit is contained in:
parent
77612a9d8e
commit
a8a0676b59
1 changed files with 9 additions and 0 deletions
|
|
@ -211,5 +211,14 @@ shared_examples 'xpack::init' do |es_version|
|
||||||
it { should contain 'shield.authc.realms.native1.type: native' }
|
it { should contain 'shield.authc.realms.native1.type: native' }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#Test contents of role_mapping.yml
|
||||||
|
describe file('/etc/elasticsearch/shield_node/shield/role_mapping.yml') do
|
||||||
|
it { should be_owned_by 'elasticsearch' }
|
||||||
|
it { should contain 'power_user:' }
|
||||||
|
it { should contain '- cn=admins,dc=example,dc=com' }
|
||||||
|
it { should contain 'user:' }
|
||||||
|
it { should contain '- cn=admins,dc=example,dc=com' }
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue