From 59c756c72b756a497003cc59020de229bd45260f Mon Sep 17 00:00:00 2001 From: M Tien <56892372+mtien-apache@users.noreply.github.com> Date: Mon, 6 Apr 2020 18:26:32 -0700 Subject: [PATCH] =?UTF-8?q?NIFI-7126=20Increased=20test=20iterations=20to?= =?UTF-8?q?=2010,000=20in=20Argon2SecureHasherTe=E2=80=A6=20(#4187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * NIFI-7126 Increased test iterations to 10,000 in Argon2SecureHasherTest#testDefaultCostParamsShouldBeSufficient to avoid JVM warmup issues. Signed-off-by: Andy LoPresto --- .../nifi/security/util/crypto/Argon2SecureHasherTest.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nifi-commons/nifi-security-utils/src/test/groovy/org/apache/nifi/security/util/crypto/Argon2SecureHasherTest.groovy b/nifi-commons/nifi-security-utils/src/test/groovy/org/apache/nifi/security/util/crypto/Argon2SecureHasherTest.groovy index 9a8b1ae319..2a02a1c992 100644 --- a/nifi-commons/nifi-security-utils/src/test/groovy/org/apache/nifi/security/util/crypto/Argon2SecureHasherTest.groovy +++ b/nifi-commons/nifi-security-utils/src/test/groovy/org/apache/nifi/security/util/crypto/Argon2SecureHasherTest.groovy @@ -209,10 +209,11 @@ class Argon2SecureHasherTest extends GroovyTestCase { * This test can have the minimum time threshold updated to determine if the performance * is still sufficient compared to the existing threat model. */ + @Ignore("Long running test") @Test void testDefaultCostParamsShouldBeSufficient() { // Arrange - int testIterations = 10 + int testIterations = 10_000 byte[] inputBytes = "This is a sensitive value".bytes Argon2SecureHasher a2sh = new Argon2SecureHasher()