-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add test to run opensearch benchmark and compare doc counts #369
Conversation
Signed-off-by: Omar Khasawneh <[email protected]>
Signed-off-by: Omar Khasawneh <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #369 +/- ##
============================================
- Coverage 63.64% 63.55% -0.10%
+ Complexity 718 715 -3
============================================
Files 82 82
Lines 3298 3298
Branches 303 303
============================================
- Hits 2099 2096 -3
- Misses 1011 1014 +3
Partials 188 188
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Omar Khasawneh <[email protected]>
Signed-off-by: Omar Khasawneh <[email protected]>
Signed-off-by: Omar Khasawneh <[email protected]>
test/tests.py
Outdated
@@ -200,3 +221,37 @@ def test_0006_invalidIncorrectUri(self): | |||
incorrectUri = "/_cluster/incorrectUri" | |||
response = requests.get(f'{self.proxy_endpoint}{incorrectUri}', auth=self.auth, verify=False) | |||
self.assertEqual(response.status_code, HTTPStatus.METHOD_NOT_ALLOWED) | |||
|
|||
def test_0007_OSB(self): | |||
cmd = "docker ps | grep 'migrations/migration_console:latest' | awk '{print $NF}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend using docker ps --format="{{.ID}}" --filter name=migration-console
and avoiding the pipes. This will give you the container ID.
Signed-off-by: Omar Khasawneh <[email protected]>
Signed-off-by: Omar Khasawneh <[email protected]>
Signed-off-by: Omar Khasawneh <[email protected]>
Description
This PR adds a test to the E2E script where it runs Opensearch Benchmark on the solution then compares the document count on both source and target clusters
Issues Resolved
Migrations-1409
Check List
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.