From issues-return-87540-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Fri Nov 1 17:03:55 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 033AE180675 for ; Fri, 1 Nov 2019 18:03:54 +0100 (CET) Received: (qmail 82333 invoked by uid 500); 1 Nov 2019 17:03:54 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 82015 invoked by uid 99); 1 Nov 2019 17:03:53 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Nov 2019 17:03:53 +0000 From: GitBox To: issues@nifi.apache.org Subject: [GitHub] [nifi] mattyb149 commented on a change in pull request #2861: NIFI-5248 Added new Elasticsearch json and record processors. Message-ID: <157262783321.32436.10349399216494624827.gitbox@gitbox.apache.org> Date: Fri, 01 Nov 2019 17:03:53 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit mattyb149 commented on a change in pull request #2861: NIFI-5248 Added new Elasticsearch json and record processors. URL: https://github.com/apache/nifi/pull/2861#discussion_r341663695 ########## File path: nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-restapi-processors/src/test/groovy/org/apache/nifi/processors/elasticsearch/PutElasticsearchRecordTest.groovy ########## @@ -0,0 +1,262 @@ +/* + * 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.processors.elasticsearch + +import org.apache.avro.Schema +import org.apache.nifi.avro.AvroTypeUtil +import org.apache.nifi.elasticsearch.IndexOperationRequest +import org.apache.nifi.elasticsearch.IndexOperationResponse +import org.apache.nifi.json.JsonRecordSetWriter +import org.apache.nifi.json.JsonTreeReader +import org.apache.nifi.processors.elasticsearch.mock.AbstractMockElasticsearchClient +import org.apache.nifi.processors.elasticsearch.mock.MockBulkLoadClientService +import org.apache.nifi.schema.access.SchemaAccessStrategy +import org.apache.nifi.schema.access.SchemaAccessUtils +import org.apache.nifi.serialization.record.MockSchemaRegistry +import org.apache.nifi.util.TestRunner +import org.apache.nifi.util.TestRunners +import org.junit.Assert +import org.junit.Before +import org.junit.Test + +import static groovy.json.JsonOutput.* Review comment: Groovy unit tests don't appear to be CheckStyle validated, but we should try to keep things consistent (no star imports, e.g.) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services