Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Resource usage case test #3417

Closed
wants to merge 1 commit into from

Conversation

peternied
Copy link
Member

Description

Execute with ./gradlew integrationTest --tests org.opensearch.security.ResourceFocusedTests -i

Test case output in build/reports/tests/integrationTest/classes/org.opensearch.security.ResourceFocusedTests.html is best for reviewing the memory utilization stats.

Issues Resolved

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Execute with `./gradlew integrationTest --tests \
  org.opensearch.security.ResourceFocusedTests -i`

Test case output in
build/reports/tests/integrationTest/classes/org.opensearch.security.ResourceFocusedTests.html
is best for reviewing the memory utilization stats.

Signed-off-by: Peter Nied <petern@amazon.com>
try (final TestRestClient client = cluster.getRestClient(new BasicHeader("Content-Encoding", "gzip"))) {

printStats();
final HttpPost post = new HttpPost(client.getHttpServerUri() + "/*/_search");
Copy link
Member Author

@peternied peternied Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI - Uncompressed this request looks like the following:

POST /*/_search
{
"items": [
    {"a": 123, "b":123, ...},
    {"a": 123, "b":123, ...},
    ... repeated many times ...
]

@peternied
Copy link
Member Author

This was merged as part of #3418

@peternied peternied closed this Oct 12, 2023
@peternied peternied deleted the resource-tester branch October 12, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant