tests/979-path-conf-env-override#22436
Conversation
PR Reviewer Guide 🔍(Review updated until commit 9f7c37c)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 9f7c37c Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 1c247d9
Suggestions up to commit fdfeee3
Suggestions up to commit e2d6802
|
|
❌ Gradle check result for e2d6802: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit fdfeee3 |
|
Persistent review updated to latest commit 1c247d9 |
Signed-off-by: Swati Chauhan <swati.chauhan814@gmail.com>
1c247d9 to
9f7c37c
Compare
|
Persistent review updated to latest commit 9f7c37c |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22436 +/- ##
============================================
- Coverage 73.46% 73.42% -0.04%
+ Complexity 76477 76417 -60
============================================
Files 6104 6104
Lines 346568 346568
Branches 49883 49883
============================================
- Hits 254598 254481 -117
- Misses 71693 71765 +72
- Partials 20277 20322 +45 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
Add packaging tests to verify that a pre-set OPENSEARCH_PATH_CONF environment variable is not overridden when opensearch-env is sourced
ArchiveTests.java - test60CustomPathConfOverride: sets OPENSEARCH_PATH_CONF via shell env before starting an archive-based node; asserts the custom config directory (and its node.name) is used instead of the default $OPENSEARCH_HOME/config.
PackageTests.java - test85CustomPathConfViaSystemdDropIn: injects OPENSEARCH_PATH_CONF via a systemd drop-in Environment= directive (the correct mechanism since sh.getEnv() does not propagate into systemd services); asserts the custom config directory is used, not /etc/opensearch.
PackageTests.java - test86DefaultEnvFileSourcedWhenPathConfAbsent: regression guard confirming that when no external override exists, the env file is still sourced and OpenSearch starts normally with the package default config path.
Related Issues
Resolves #[https://github.com//issues/979]
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.