-
Notifications
You must be signed in to change notification settings - Fork 277
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
Fix the path join for running integ test #3041
Conversation
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Codecov Report
@@ Coverage Diff @@
## main #3041 +/- ##
=======================================
Coverage 93.17% 93.17%
=======================================
Files 167 167
Lines 4602 4602
=======================================
Hits 4288 4288
Misses 314 314
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -37,6 +37,6 @@ def install_build_dependencies(self, dependency_dict: dict, dest: str) -> None: | |||
""" | |||
os.makedirs(dest, exist_ok=True) | |||
for dependency, version in dependency_dict.items(): | |||
path = f"{self.root_url}/builds/opensearch/plugins/{dependency}-{version}.zip" | |||
path = os.path.join(self.root_url, f"builds/opensearch/plugins/{dependency}-{version}.zip") |
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 think you want to make this Windows compatible too here, I believe os.path.join(self.root_url, 'builds', 'opensearch', ...)
should work.
NM, it's a URL, maybe it should not be called path
:)
Add a unit test? |
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Yes, I just added another unit test for this situation when the URL has ending backslash. |
Signed-off-by: Zelin Hao zelinhao@amazon.com
Description
Fix the path by using
os.path.join
instead of hard connected. This would resolve the issue when there is a need to install dependency plugin for running tests.The origin error for the issue on installing maven artifacts was resolved earlier in this PR. #2892
Issues Resolved
#969
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.