OpenSearch/qa/os/src/test/java/org/elasticsearch/packaging
Ryan Ernst d702cb0ad9
Consolidate temp dir handling in packaging tests (#58292)
The packaging tests currently have a couple different ways of deciding
where temp files should be placed, and then sometimes used fixed file
or directory names within that dir. This commit conslidates some of that
temp dir handling by making it more compatible with the handling that
exists within the bats tests, where /tmp is not always appropriate due
to how systemd interacts with it. This commit also adds a utility
methhod for creating temp dirs, so as to ensure the new directory is
created as if a umask of 022 were used, which is not the case when using
Files.createTempDirectory without a set of permissions (it assumes 077).
2020-06-18 11:35:11 -07:00
..
test Consolidate temp dir handling in packaging tests (#58292) 2020-06-18 11:35:11 -07:00
util Consolidate temp dir handling in packaging tests (#58292) 2020-06-18 11:35:11 -07:00