Skip to content

Commit

Permalink
Fixed vulnerabile apache commons compress dependency + fixed a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome-netguardians committed Jul 24, 2019
1 parent 1619f26 commit 6f0ab7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eskimo-ce.iml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.10" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.18" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.13-beta-3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: net.sourceforge.htmlunit:htmlunit:2.35.0" level="project" />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Software.
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.10</version>
<version>1.18</version>
</dependency>

<!-- test dependencies -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public void testInstallService() throws Exception {
assertTrue(testSSHCommandScript.toString().startsWith("rm -Rf /tmp/zookeeper\n" +
"rm -f /tmp/zookeeper.tgz\n"));

assertTrue(testSSHCommandScript.toString().endsWith(
assertTrue(testSSHCommandScript.toString().contains(
"tar xfz /tmp/zookeeper.tgz --directory=/tmp/\n" +
"chmod 755 /tmp/zookeeper/setup.sh\n" +
"mv docker_template_zookeeper.tar.gz /tmp/zookeeper/ \n" +
"chmod 755 /tmp/zookeeper/setup.sh\n"));
assertTrue(testSSHCommandScript.toString().contains(
"bash /tmp/zookeeper/setup.sh localhost \n" +
"rm -Rf /tmp/zookeeper\n" +
"rm -f /tmp/zookeeper.tgz\n"));
Expand Down

0 comments on commit 6f0ab7f

Please sign in to comment.