aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api
diff options
context:
space:
mode:
authorNeil Derraugh <neil.derraugh@yoppworks.com>2020-04-17 13:35:30 -0400
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-04-19 07:24:10 +0000
commit28f3de6c698075c2282493309722c8c29e95b523 (patch)
tree4a658083c65fadabc9051e6a43d78aa191932aab /common-app-api
parentd510e7838cace2c343d9ce5430a75455c3a846c8 (diff)
ZipSlip test fails on Mac OS
Mac OS has a symlink in the tmp dir that gets created in the test for ZipSlip. Using real paths prevents the test test from failing by using actual paths instead of a potentially different symlinked path to the canonical path. Issue-ID: SDC-2887 Signed-off-by: neil.derraugh <neil.derraugh@yoppworks.com> Change-Id: Iafb0a84f6ab68276c5782c1ef716c59435aa72f5
Diffstat (limited to 'common-app-api')
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/zip/ZipUtilsTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/zip/ZipUtilsTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/zip/ZipUtilsTest.java
index d5fb3dcc8b..bfd1046000 100644
--- a/common-app-api/src/test/java/org/openecomp/sdc/common/zip/ZipUtilsTest.java
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/zip/ZipUtilsTest.java
@@ -113,8 +113,8 @@ public class ZipUtilsTest {
@Test
public void testUnzipAndZip() throws IOException, ZipException {
- final Path unzipTempPath = Files.createTempDirectory("testUnzip");
- final Path zipTempPath = Files.createTempDirectory("testZip");
+ final Path unzipTempPath = Files.createTempDirectory("testUnzip").toRealPath();
+ final Path zipTempPath = Files.createTempDirectory("testZip").toRealPath();
final Path testZipPath;
try {
try {