Skip to content

Commit 66836f0

Browse files
authored
Grant access to testclusters dir for tests (#19085)
* Grant access to testclusters dir for tests Signed-off-by: Craig Perkins <cwperx@amazon.com> * Fix CHANGELOG Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent 63b2b25 commit 66836f0

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1919
- Fix NullPointerException in segment replicator ([#18997](https://github.com/opensearch-project/OpenSearch/pull/18997))
2020
- Ensure that plugins that utilize dumpCoverage can write to jacoco.dir when tests.security.manager is enabled ([#18983](https://github.com/opensearch-project/OpenSearch/pull/18983))
2121
- Fix OOM due to large number of shard result buffering ([#19066](https://github.com/opensearch-project/OpenSearch/pull/19066))
22+
- Fix flaky tests in CloseIndexIT by addressing cluster state synchronization issues ([#18878](https://github.com/opensearch-project/OpenSearch/issues/18878))
23+
- [Tiered Caching] Handle query execution exception ([#19000](https://github.com/opensearch-project/OpenSearch/issues/19000))
24+
- Grant access to testclusters dir for tests ([#19085](https://github.com/opensearch-project/OpenSearch/issues/19085))
2225

2326
### Dependencies
2427
- Bump `com.netflix.nebula.ospackage-base` from 12.0.0 to 12.1.0 ([#19019](https://github.com/opensearch-project/OpenSearch/pull/19019))
@@ -34,10 +37,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3437
### Removed
3538
- Enable backward compatibility tests on Mac ([#18983](https://github.com/opensearch-project/OpenSearch/pull/18983))
3639

37-
### Fixed
38-
- Fix flaky tests in CloseIndexIT by addressing cluster state synchronization issues ([#18878](https://github.com/opensearch-project/OpenSearch/issues/18878))
39-
- [Tiered Caching] Handle query execution exception ([#19000](https://github.com/opensearch-project/OpenSearch/issues/19000))
40-
4140
### Security
4241

4342
[Unreleased 3.x]: https://github.com/opensearch-project/OpenSearch/compare/3.1...main

test/framework/src/main/java/org/opensearch/bootstrap/BootstrapForTesting.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ public class BootstrapForTesting {
158158
false
159159
);
160160
}
161+
String testclustersDir = System.getProperty("testclusters.dir");
162+
if (testclustersDir != null) {
163+
FilePermissionUtils.addDirectoryPath(
164+
perms,
165+
"testclusters.dir",
166+
PathUtils.get(testclustersDir),
167+
"read,readlink,write,delete",
168+
false
169+
);
170+
}
161171
// custom test config file
162172
String testConfigFile = System.getProperty("tests.config");
163173
if (Strings.hasLength(testConfigFile)) {

0 commit comments

Comments
 (0)