Skip to content

Commit 86f083d

Browse files
committed
Test fixes
Signed-off-by: Nils Bandener <[email protected]>
1 parent 088dfbb commit 86f083d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/org/opensearch/security/privileges/PrivilegesEvaluator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public boolean notFailOnForbiddenEnabled() {
145145
}
146146

147147
private OpenSearchSecurityException exception() {
148-
StringBuilder error = new StringBuilder("OpenSearch Security is not initialized");
148+
StringBuilder error = new StringBuilder("OpenSearch Security not initialized");
149149
String reason = this.unavailablityReasonSupplier.get();
150150

151151
if (reason != null) {

src/main/java/org/opensearch/security/user/ThreadContextUserInfo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public ThreadContextUserInfo(
6363
this.privilegesConfiguration = privilegesConfiguration;
6464
if (clusterSettings != null) {
6565
clusterSettings.addSettingsUpdateConsumer(
66-
SecuritySettings.USER_ATTRIBUTE_SERIALIZATION_ENABLED_SETTING,
67-
newIsUserAttributeSerializationEnabled -> {
68-
userAttributeSerializationEnabled = newIsUserAttributeSerializationEnabled;
69-
}
66+
SecuritySettings.USER_ATTRIBUTE_SERIALIZATION_ENABLED_SETTING,
67+
newIsUserAttributeSerializationEnabled -> {
68+
userAttributeSerializationEnabled = newIsUserAttributeSerializationEnabled;
69+
}
7070
);
7171
}
7272
}

0 commit comments

Comments
 (0)