Skip to content

Commit

Permalink
Adapt OpenSearchJsonLayoutTests for #6569
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Djurdjevic <[email protected]>
  • Loading branch information
djboris9 authored Mar 8, 2023
1 parent f7a177b commit 1c46022
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void testLayout() {
"\"component\": \"%c{1.}\", " +
"\"cluster.name\": \"${sys:opensearch.logs.cluster_name}\", " +
"\"node.name\": \"%node_name\", " +
"\"message\": \"%notEmpty{%enc{%marker}{JSON} }%enc{%.-10000m}{JSON}\"" +
"\"message\": \"%notEmpty{%enc{%marker}{JSON} }%enc{%.-100000m}{JSON}\"" +
"%notEmpty{, %node_and_cluster_id }" +
"%exceptionAsJson }" + System.lineSeparator()));
}
Expand All @@ -81,7 +81,7 @@ public void testLayoutWithAdditionalFields() {
"\"component\": \"%c{1.}\", " +
"\"cluster.name\": \"${sys:opensearch.logs.cluster_name}\", " +
"\"node.name\": \"%node_name\", " +
"\"message\": \"%notEmpty{%enc{%marker}{JSON} }%enc{%.-10000m}{JSON}\"" +
"\"message\": \"%notEmpty{%enc{%marker}{JSON} }%enc{%.-100000m}{JSON}\"" +
"%notEmpty{, \"x-opaque-id\": \"%OpenSearchMessageField{x-opaque-id}\"}" +
"%notEmpty{, \"someOtherField\": \"%OpenSearchMessageField{someOtherField}\"}" +
"%notEmpty{, %node_and_cluster_id }" +
Expand Down

0 comments on commit 1c46022

Please sign in to comment.