You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2022/12/16 03:41:18 UTC

[nifi] branch main updated: NIFI-10989 Removed SHA-1 and MD5 from TestHashContent

This is an automated email from the ASF dual-hosted git repository.

mattyb149 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new a8974253ce NIFI-10989 Removed SHA-1 and MD5 from TestHashContent
a8974253ce is described below

commit a8974253ce3b3441756bac9f7584b651c1ac01ac
Author: exceptionfactory <ex...@apache.org>
AuthorDate: Thu Dec 15 20:14:17 2022 -0600

    NIFI-10989 Removed SHA-1 and MD5 from TestHashContent
    
    - Removed methods to avoid intermittent failures due to lack of Bouncy Castle Security Provider registration
    
    Signed-off-by: Matthew Burgess <ma...@apache.org>
    
    This closes #6790
---
 .../apache/nifi/processors/standard/TestHashContent.java    | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestHashContent.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestHashContent.java
index b5e0a2e9e6..ed31b4e6f1 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestHashContent.java
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestHashContent.java
@@ -29,24 +29,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 @SuppressWarnings("deprecation")
 public class TestHashContent {
 
-    @Test
-    public void testMD5() throws IOException {
-        // Expected hash value obtained by running Linux md5sum against the file
-        test("MD5", "65a8e27d8879283831b664bd8b7f0ad4");
-    }
-
     @Test
     public void testSHA256() throws IOException {
-        // Expected hash value obtained by running Linux sha256sum against the file
         test("SHA-256", "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f");
     }
 
-    @Test
-    public void testSHA1() throws IOException {
-        // Expected hash value obtained by running Linux sha1sum against the file
-        test("SHA-1", "0a0a9f2a6772942557ab5355d76af442f8f65e01");
-    }
-
     private void test(final String hashAlgorithm, final String expectedHash) throws IOException {
         final TestRunner runner = TestRunners.newTestRunner(new HashContent());
         runner.setProperty(org.apache.nifi.processors.standard.HashContent.ATTRIBUTE_NAME, "hash");