Skip to content

Commit 7adb281

Browse files
committed
Test fixes
Signed-off-by: Nils Bandener <[email protected]>
1 parent 0c52218 commit 7adb281

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/integrationTest/java/org/opensearch/security/rest/WhoAmITests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class WhoAmITests {
7777

7878
protected final String expectedAuthorizedBody = "{\"dn\":null,\"is_admin\":false,\"is_node_certificate_request\":false}";
7979
protected final String expectedUnuauthorizedBody =
80-
"no permissions for [security:whoamiprotected] and User [name=who_am_i_user_no_perm, backend_roles=[], requestedTenant=null]";
80+
"no permissions for [any of [cluster:admin/opendistro_security/whoamiprotected, security:whoamiprotected]] and User [name=who_am_i_user_no_perm, backend_roles=[], requestedTenant=null]";
8181

8282
public static final String WHOAMI_ENDPOINT = "_plugins/_security/whoami";
8383
public static final String WHOAMI_PROTECTED_ENDPOINT = "_plugins/_security/whoamiprotected";

src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ private static String singleEntryConfigToJson(CType configType, String configura
11151115
builder.field("config_version", 2);
11161116
builder.endObject();
11171117

1118-
builder.field(configType.toLCString(), config);
1118+
builder.field(configurationRoot, config);
11191119

11201120
builder.endObject();
11211121

0 commit comments

Comments
 (0)