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

TestPutSplunkHTTP Test Failures on NonDex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.20.0, 1.19.1
    • NiFi Registry
    • None
    • openjdk version "1.8.0_342";
      OpenJDK Runtime Environment (build 1.8.0_342-8u342-b07-0ubuntu1~20.04-b07);
      OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode);
      Apache Maven 3.6.3;

    Description

      The test
      org.apache.nifi.processors.splunk.TestPutSplunkHTTP.testHappyPathWithCustomQueryParameters and org.apache.nifi.processors.splunk.TestPutSplunkHTTP.testHappyPathWithCustomQueryParametersFromFlowFile passed using normal maven-test, but showed Non-deterministic behavior under NonDex(https://github.com/TestingResearchIllinois/NonDex) and thus failed. Some of the error messages are:

       

       

       

      and after some probing, I found the output from the test is not deterministic as the order of query parameters in the URL changes.

       

      Steps to reproduce the failure:

      Install Nondex(https://github.com/TestingResearchIllinois/NonDex) in the environment. 

      Then cd to nifi repository, and run the following:

      mvn install -pl nifi-nar-bundles/nifi-splunk-bundle/nifi-splunk-processors -am -DskipTests  
      
      mvn -pl nifi-nar-bundles/nifi-splunk-bundle/nifi-splunk-processors edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=org.apache.nifi.processors.splunk.TestPutSplunkHTTP#testHappyPathWithCustomQueryParameters  
      
      mvn -pl nifi-nar-bundles/nifi-splunk-bundle/nifi-splunk-processors edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=org.apache.nifi.processors.splunk.TestPutSplunkHTTP#testHappyPathWithCustomQueryParametersFromFlowFile

      Attachments

        1. image-2022-11-16-15-34-06-074.png
          193 kB
          Priyanka Awatramani
        2. image-2022-11-16-15-36-02-621.png
          202 kB
          Priyanka Awatramani

        Issue Links

          Activity

            People

              priyanka_a Priyanka Awatramani
              priyanka_a Priyanka Awatramani
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m