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

    https://github.com/apache/nifi/pull/2778#discussion_r194241356
  
    --- Diff: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/test/java/org/apache/nifi/processors/mongodb/PutMongoRecordIT.java
 ---
    @@ -191,4 +197,33 @@ public void testInsertNestedRecords() throws Exception 
{
             assertEquals(4, collection.count());
             //assertEquals(doc, collection.find().first());
         }
    +
    +    @Test
    +    public void testArrayConversion() throws Exception {
    +        TestRunner runner = init(PutMongoRecord.class);
    +        MockSchemaRegistry registry = new MockSchemaRegistry();
    +        String rawSchema = 
"{\"type\":\"record\",\"name\":\"Test\",\"fields\":[{\"name\":\"nom\",\"type\":\"string\","
 +
    --- End diff --
    
    Let's get rid of the "doc" fields here, I'm sure just pasted from from the 
example use case that illustrated the bug, but still quite unnecessary and 
tends to clutter up the test.


---

Reply via email to