diff options
author | Harald Musum <musum@yahooinc.com> | 2022-06-01 11:04:32 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-06-08 11:45:23 +0200 |
commit | 73c8f9fdecc97af76ca6918910768a33a1ecb84f (patch) | |
tree | dd1a39b0b305a706f0ac99d96676b2130436eb6b | |
parent | ec3d9fb0563e40a7598be36fd88ed15f766ecbc9 (diff) |
Remove test (toplevel application dir support has been removed)
-rw-r--r-- | configserver/src/test/java/com/yahoo/vespa/config/server/application/CompressedApplicationInputStreamTest.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/application/CompressedApplicationInputStreamTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/application/CompressedApplicationInputStreamTest.java index c7662ac9ee4..d3927309f65 100644 --- a/configserver/src/test/java/com/yahoo/vespa/config/server/application/CompressedApplicationInputStreamTest.java +++ b/configserver/src/test/java/com/yahoo/vespa/config/server/application/CompressedApplicationInputStreamTest.java @@ -77,35 +77,6 @@ public class CompressedApplicationInputStreamTest { } @Test - public void require_that_valid_tar_application_in_subdir_can_be_unpacked() throws IOException { - File outFile = Files.createTempFile(temporaryFolder.getRoot().toPath(), "testapp", ".tar.gz").toFile(); - ArchiveOutputStream archiveOutputStream = new TarArchiveOutputStream(new GZIPOutputStream(new FileOutputStream(outFile))); - - File app = new File("src/test/resources/deploy/validapp"); - - File file = new File(app, "services.xml"); - archiveOutputStream.putArchiveEntry(archiveOutputStream.createArchiveEntry(file, "application/" + file.getName())); - ByteStreams.copy(new FileInputStream(file), archiveOutputStream); - archiveOutputStream.closeArchiveEntry(); - file = new File(app, "hosts.xml"); - archiveOutputStream.putArchiveEntry(archiveOutputStream.createArchiveEntry(file, "application/" + file.getName())); - ByteStreams.copy(new FileInputStream(file), archiveOutputStream); - archiveOutputStream.closeArchiveEntry(); - file = new File(app, "deployment.xml"); - archiveOutputStream.putArchiveEntry(archiveOutputStream.createArchiveEntry(file, "application/" + file.getName())); - ByteStreams.copy(new FileInputStream(file), archiveOutputStream); - archiveOutputStream.closeArchiveEntry(); - - archiveOutputStream.close(); - - try (CompressedApplicationInputStream unpacked = streamFromTarGz(outFile)) { - File outApp = unpacked.decompress(); - assertEquals("application", outApp.getName()); // gets the name of the subdir - assertTestApp(outApp); - } - } - - @Test public void require_that_valid_zip_application_can_be_unpacked() throws IOException { File outFile = createZipFile(temporaryFolder.getRoot().toPath()); try (CompressedApplicationInputStream unpacked = streamFromZip(outFile)) { |