Skip to content

Commit

Permalink
Spotless and update test to sort in SQL
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Dec 11, 2024
1 parent 201697b commit a61cf3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public void test_cidrmatch() throws IOException {
result =
executeQuery(
String.format(
"source=%s | where cidrmatch(host, '1.2.3.0/24') | fields host", TEST_INDEX_WEBLOG));
"source=%s | where cidrmatch(host, '1.2.3.0/24') | fields host",
TEST_INDEX_WEBLOG));
verifySchema(result, schema("host", null, "ip"));
verifyDataRows(result, rows("1.2.3.4"), rows("1.2.3.5"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void testSortStringField() throws IOException {
@Test
public void testSortIpField() throws IOException {
final JSONObject result =
executeQuery(String.format("source=%s | sort host | fields host", TEST_INDEX_WEBLOG));
executeQuery(String.format("source=%s | fields host | sort host", TEST_INDEX_WEBLOG));
verifyOrder(
result,
rows("::1"),
Expand Down

0 comments on commit a61cf3d

Please sign in to comment.