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

TestParseCEF.testCustomValidator is a flaky test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.19.0
    • NiFi Registry
    • None
    • Apache Maven 3.6.0;
      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);

    Description

      org.apache.nifi.processors.standard.TestParseCEF.testCustomValidator 

      This is the flaky test.  it can pass maven-test while testing failed under [NonDex|https://github.com/TestingResearchIllinois/NonDex].

      This is the log for the result.

      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.46 s <<< FAILURE! - in org.apache.nifi.processors.standard.TestParseCEF
      org.apache.nifi.processors.standard.TestParseCEF.testCustomValidator  Time elapsed: 0.391 s  <<< FAILURE!
      org.opentest4j.AssertionFailedError: Processor appears to be valid but expected it to be invalid ==> expected: <false> but was: <true> 

      Steps to reproduce the failure:

      1.intall Nondex

      2.Run the command in nifi:

      mvn install -pl nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors -am -DskipTests 
      mvn -pl nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=org.apache.nifi.processors.standard.TestParseCEF#testCustomValidator
      
      

      Attachments

        Activity

          People

            TheGreatRandall Haoran Jiang
            TheGreatRandall Haoran Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0h
                0h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m