Skip to content

Commit 8a404d3

Browse files
authored
Add comments in all-realms tests (#112627)
1 parent ef3a5a1 commit 8a404d3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

x-pack/plugin/security/qa/smoke-test-all-realms/src/javaRestTest/java/org/elasticsearch/xpack/security/authc/SecurityRealmSmokeTestCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ public abstract class SecurityRealmSmokeTestCase extends ESRestTestCase {
8383
// - AD (configured but won't work because we don't want external fixtures in this test suite)
8484
.setting("xpack.security.authc.realms.active_directory.ad3.order", "3")
8585
.setting("xpack.security.authc.realms.active_directory.ad3.domain_name", "localhost")
86+
// role mappings don't matter, but we need to read the file as part of the test
8687
.setting("xpack.security.authc.realms.active_directory.ad3.files.role_mapping", "ldap_role_mapping.yml")
8788
// - PKI (works)
8889
.setting("xpack.security.authc.realms.pki.pki4.order", "4")
90+
// role mappings don't matter, but we need to read the file as part of the test
8991
.setting("xpack.security.authc.realms.pki.pki4.files.role_mapping", "pki_role_mapping.yml")
9092
// - SAML (configured but won't work because we don't want external fixtures in this test suite)
9193
.setting("xpack.security.authc.realms.saml.saml5.order", "5")

x-pack/plugin/security/qa/smoke-test-all-realms/src/javaRestTest/resources/ldap_role_mapping.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AD Realm Role Mapping
1+
# AD Realm Role Mapping - not actually used, we just want some valid file content.
22
group_role:
33
- "CN=Avengers,CN=users,DC=ad,DC=test,DC=elasticsearch,DC=com"
44
user_role:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Role mappings for PKI tests
1+
# Role mappings for PKI tests - not actually used, we just want some valid file content.
22

33
user:
44
- "CN=Elasticsearch Test Node, OU=elasticsearch, O=org"

0 commit comments

Comments
 (0)