Skip to content

Commit a8a0676

Browse files
author
Dale McDiarmid
committed
Tests for role mapping
1 parent 77612a9 commit a8a0676

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/integration/helpers/serverspec/xpack_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,5 +211,14 @@
211211
it { should contain 'shield.authc.realms.native1.type: native' }
212212
end
213213

214+
#Test contents of role_mapping.yml
215+
describe file('/etc/elasticsearch/shield_node/shield/role_mapping.yml') do
216+
it { should be_owned_by 'elasticsearch' }
217+
it { should contain 'power_user:' }
218+
it { should contain '- cn=admins,dc=example,dc=com' }
219+
it { should contain 'user:' }
220+
it { should contain '- cn=admins,dc=example,dc=com' }
221+
end
222+
214223
end
215224

0 commit comments

Comments
 (0)