mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
silence symlink test on windows
This commit is contained in:
parent
e0708813a9
commit
59d6e59dec
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package org.elasticsearch.bootstrap;
|
package org.elasticsearch.bootstrap;
|
||||||
|
|
||||||
|
import org.apache.lucene.util.Constants;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.test.ElasticsearchTestCase;
|
import org.elasticsearch.test.ElasticsearchTestCase;
|
||||||
@ -207,6 +208,8 @@ public class SecurityTests extends ElasticsearchTestCase {
|
|||||||
|
|
||||||
/** When a configured dir is a symlink, test that permissions work on link target */
|
/** When a configured dir is a symlink, test that permissions work on link target */
|
||||||
public void testSymlinkPermissions() throws IOException {
|
public void testSymlinkPermissions() throws IOException {
|
||||||
|
// see https://github.com/elastic/elasticsearch/issues/12170
|
||||||
|
assumeFalse("windows does not automatically grant permission to the target of symlinks", Constants.WINDOWS);
|
||||||
Path dir = createTempDir();
|
Path dir = createTempDir();
|
||||||
|
|
||||||
Path target = dir.resolve("target");
|
Path target = dir.resolve("target");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user