From 6f498017eb8823600352b97c40d7314c9f672f74 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Tue, 22 Aug 2023 11:35:10 -0700 Subject: [PATCH] Remove the if condition in oboconfig for integ testing Signed-off-by: Ryan Liang --- .../java/org/opensearch/test/framework/OnBehalfOfConfig.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java b/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java index 73ff55392d..63e1544f98 100644 --- a/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java +++ b/src/integrationTest/java/org/opensearch/test/framework/OnBehalfOfConfig.java @@ -40,9 +40,7 @@ public OnBehalfOfConfig encryptionKey(String encryption_key) { @Override public XContentBuilder toXContent(XContentBuilder xContentBuilder, ToXContent.Params params) throws IOException { xContentBuilder.startObject(); - if (oboEnabled) { - xContentBuilder.field("enabled", oboEnabled); - } + xContentBuilder.field("enabled", oboEnabled); xContentBuilder.field("signing_key", signing_key); if (StringUtils.isNoneBlank(encryption_key)) { xContentBuilder.field("encryption_key", encryption_key);