Skip to content

Commit

Permalink
Adapt test for new wrapper JAR checksum
Browse files Browse the repository at this point in the history
Changes to ZipSlip renamed PathTraversalChecker impact the JAR as this
code is present in the wrapper.
  • Loading branch information
ljacomet committed Jun 30, 2023
1 parent 0a5e9fc commit 7874860
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class WrapperGenerationIntegrationTest extends AbstractIntegrationSpec {
executer.inDirectory(file("second")).withTasks("wrapper").run()

then: "the checksum should be constant (unless there are code changes)"
Hashing.sha256().hashFile(file("first/gradle/wrapper/gradle-wrapper.jar")) == HashCode.fromString("c5a643cf80162e665cc228f7b16f343fef868e47d3a4836f62e18b7e17ac018a")
Hashing.sha256().hashFile(file("first/gradle/wrapper/gradle-wrapper.jar")) == HashCode.fromString("14dfa961b6704bb3decdea06502781edaa796a82e6da41cd2e1962b14fbe21a3")

and:
file("first/gradle/wrapper/gradle-wrapper.jar").md5Hash == file("second/gradle/wrapper/gradle-wrapper.jar").md5Hash
Expand Down

0 comments on commit 7874860

Please sign in to comment.