You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/11/29 03:09:00 UTC

[jira] [Commented] (NIFI-10834) TestPutSplunkHTTP Test Failures on NonDex

    [ https://issues.apache.org/jira/browse/NIFI-10834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17640351#comment-17640351 ] 

ASF subversion and git services commented on NIFI-10834:
--------------------------------------------------------

Commit 830a64b8e95c1ff2baaa3b47234a5ba6c9a5d0de in nifi's branch refs/heads/main from priyanka-28
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=830a64b8e9 ]

NIFI-10834 Updated TestPutSplunkHTTP to avoid non-deterministic tests

This closes #6672

Signed-off-by: David Handermann <ex...@apache.org>


>  TestPutSplunkHTTP Test Failures on NonDex
> ------------------------------------------
>
>                 Key: NIFI-10834
>                 URL: https://issues.apache.org/jira/browse/NIFI-10834
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: NiFi Registry
>         Environment: 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;
>            Reporter: Priyanka Awatramani
>            Priority: Trivial
>         Attachments: image-2022-11-16-15-34-06-074.png, image-2022-11-16-15-36-02-621.png
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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:
>  
> !image-2022-11-16-15-34-06-074.png!
>  
> !image-2022-11-16-15-36-02-621.png!
>  
> 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:
> {code:java}
> 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{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)