Skip to content

Commit

Permalink
Improve documentation of handlePage
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasas993 committed Jan 10, 2025
1 parent 8f4ce34 commit 187442d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public static <T> T getNestedObject(Map<String, Object> map, String key, Class<T
}

/**
* Iterates over search results, updating their status field to {@link Status#FAILURE} if their
* delivery timestamps are older than the current time, and submitting them to the destination
* Iterates over search results, updating their status field to {@link Status#FAILURE}
* if their delivery timestamps are earlier than the current time
*
* @param searchResponse The search results page
* @throws IllegalStateException Rethrown from setSentStatus()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
/*
* Copyright (C) 2024, Wazuh Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.wazuh.commandmanager;

import org.opensearch.test.OpenSearchTestCase;

public class CommandManagerTests extends OpenSearchTestCase {
public void testPost_badUri() {}
public void testPost_badPayload() {}

public void testPost_badPayload() {}
}

0 comments on commit 187442d

Please sign in to comment.