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

    https://github.com/apache/nifi/pull/1686#discussion_r112966396
  
    --- Diff: 
nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/test/groovy/org/apache/nifi/provenance/EncryptedWriteAheadProvenanceRepositoryTest.groovy
 ---
    @@ -0,0 +1,395 @@
    +/*
    + * 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.provenance
    +
    +import org.apache.nifi.events.EventReporter
    +import org.apache.nifi.flowfile.FlowFile
    +import org.apache.nifi.provenance.serialization.RecordReaders
    +import org.apache.nifi.reporting.Severity
    +import org.apache.nifi.util.file.FileUtils
    +import org.bouncycastle.jce.provider.BouncyCastleProvider
    +import org.junit.After
    +import org.junit.AfterClass
    +import org.junit.Before
    +import org.junit.BeforeClass
    +import org.junit.ClassRule
    +import org.junit.Test
    +import org.junit.rules.TemporaryFolder
    +import org.junit.runner.RunWith
    +import org.junit.runners.JUnit4
    +import org.slf4j.Logger
    +import org.slf4j.LoggerFactory
    +
    +import javax.crypto.Cipher
    +import java.security.Security
    +import java.util.concurrent.TimeUnit
    +import java.util.concurrent.atomic.AtomicLong
    +
    +import static org.apache.nifi.provenance.TestUtil.createFlowFile
    +
    +@RunWith(JUnit4.class)
    +class EncryptedWriteAheadProvenanceRepositoryTest {
    +    private static final Logger logger = 
LoggerFactory.getLogger(EncryptedWriteAheadProvenanceRepositoryTest.class)
    +
    +    private static final String KEY_HEX_128 = 
"0123456789ABCDEFFEDCBA9876543210"
    +    private static final String KEY_HEX_256 = KEY_HEX_128 * 2
    +    private static final String KEY_HEX = 
isUnlimitedStrengthCryptoAvailable() ? KEY_HEX_256 : KEY_HEX_128
    +    private static final int IV_LENGTH = 16
    +    private static final String KEY_ID = "K1"
    +
    +    private static final String TRANSIT_URI = "nifi://unit-test"
    +    private static final String PROCESSOR_TYPE = "Mock Processor"
    +    private static final String COMPONENT_ID = "1234"
    +
    +    private static final AtomicLong recordId = new AtomicLong()
    +
    +//    @Rule
    --- End diff --
    
    There are a handful of places here where lines of code are commented out. 
Should probably remove.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to