Github user alopresto commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2983#discussion_r218132155
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/groovy/org/apache/nifi/security/util/crypto/HashServiceTest.groovy
 ---
    @@ -0,0 +1,457 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License") you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.nifi.security.util.crypto
    +
    +import org.apache.nifi.components.AllowableValue
    +import org.bouncycastle.jce.provider.BouncyCastleProvider
    +import org.bouncycastle.util.encoders.Hex
    +import org.junit.After
    +import org.junit.AfterClass
    +import org.junit.Before
    +import org.junit.BeforeClass
    +import org.junit.Test
    +import org.junit.runner.RunWith
    +import org.junit.runners.JUnit4
    +import org.slf4j.Logger
    +import org.slf4j.LoggerFactory
    +
    +import java.nio.charset.Charset
    +import java.nio.charset.StandardCharsets
    +import java.security.Security
    +
    +@RunWith(JUnit4.class)
    +class HashServiceTest extends GroovyTestCase {
    +    private static final Logger logger = 
LoggerFactory.getLogger(HashServiceTest.class)
    +    static private final String LARGE_FILE_PATH = 
"src/test/resources/HashServiceTest/largefile.txt"
    --- End diff --
    
    Thanks Kevin. I think this is a good point. I usually do dynamic test files 
this way, but in this case I had originally planned for the file to be 
persistent. Then when I decided to increase the size to verify the _streaming_ 
methods, I realized it was a waste to check in a large file with static (and 
generateable) text, but I didn't move it. I can make this change. 


---

Reply via email to