Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1651

nifi-kite-processors unit tests broken on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.5.0, 0.5.1
    • 0.6.0
    • Extensions
    • None
    • windows 10

    Description

      Failed tests:
        TestInferAvroSchema.inferAvroSchemaFromCSVFile:133 FlowFile content differs from input at byte 1 with input having value 10 and FlowFile having value 13
        TestInferAvroSchema.inferAvroSchemaFromHeaderDefinitionOfCSVFile:77 FlowFile content differs from input at byte 1 with input having value 10 and FlowFile having value 13
        TestInferAvroSchema.inferAvroSchemaFromHeaderDefinitionOfCSVTabDelimitedFile:194 FlowFile content differs from input at byte 1 with input having value 10 and FlowFile having value 13
        TestInferAvroSchema.inferAvroSchemaFromJSONFile:105 expected:<{[
        "type" : "record",
        "name" : "contact",
        "namespace" : "com.jeremydyer",
        "fields" : [ {
          "name" : "shapes",
          "type" : {
            "type" : "array",
            "items" : {
              "type" : "record",
              "name" : "shapes",
              "namespace" : "",
              "fields" : [ {
                "name" : "shape",
                "type" : "string",
                "doc" : "Type inferred from '\"circle\"'"
              }, {
                "name" : "color",
                "type" : "string",
                "doc" : "Type inferred from '\"red\"'"
              }, {
                "name" : "width",
                "type" : "int",
                "doc" : "Type inferred from '100'"
              }, {
                "name" : "height",
                "type" : "int",
                "doc" : "Type inferred from '100'"
              } ]
            }
          },
          "doc" : "Type inferred from '[{\"shape\":\"circle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"square\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"sphere\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"triangle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"rectangle\",\"color\":\"red\",\"width\":100,\"height\":100}]'"
      ] } ]
      }> but was:<{[
        "type" : "record",
        "name" : "contact",
        "namespace" : "com.jeremydyer",
        "fields" : [ {
          "name" : "shapes",
          "type" : {
            "type" : "array",
            "items" : {
              "type" : "record",
              "name" : "shapes",
              "namespace" : "",
              "fields" : [ {
                "name" : "shape",
                "type" : "string",
                "doc" : "Type inferred from '\"circle\"'"
              }, {
                "name" : "color",
                "type" : "string",
                "doc" : "Type inferred from '\"red\"'"
              }, {
                "name" : "width",
                "type" : "int",
                "doc" : "Type inferred from '100'"
              }, {
                "name" : "height",
                "type" : "int",
                "doc" : "Type inferred from '100'"
              } ]
            }
          },
          "doc" : "Type inferred from '[{\"shape\":\"circle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"square\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"sphere\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"triangle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"rectangle\",\"color\":\"red\",\"width\":100,\"height\":100}]'"
        } ]]
      }>
      

      Attachments

        Activity

          People

            tkurc Tony Kurc
            tkurc Tony Kurc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: