Chris Sampson created NIFI-10043:
------------------------------------

             Summary: Elasticsearch Client Service integration tests broken 
after JUni5 upgrade
                 Key: NIFI-10043
                 URL: https://issues.apache.org/jira/browse/NIFI-10043
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.16.1
            Reporter: Chris Sampson


The ElasticsearchClient_IT integration tests no longer work after the upgrade 
to JUnit 5 for the Elasticsearch Bundle NAR. This appears to be due to some 
methods not being correctly imported into the test class and/or method 
signatures having changed between JUnit versions and not corrected during the 
upgrade.

Running the tests with a command like:
{code:bash}
mvnd -P integration-tests,elasticsearch-default,elasticsearch-7-no-oss clean 
verify
{code}

gives errors:

{code:java}
[ERROR] testUpdateAndUpsert  Time elapsed: 0.061 s  <<< ERROR!
groovy.lang.MissingMethodException:
No signature of method: static org.junit.jupiter.api.Assertions.assertEquals() 
is applicable for argument types: (String, HashMap, LinkedHashMap) values: [Not 
the same, [msg:Buongiorno, mondo], [msg:Buongiorno, mondo]]
Possible solutions: assertEquals(byte, byte), assertEquals(byte, 
java.lang.Byte), assertEquals(char, char), assertEquals(char, 
java.lang.Character), assertEquals(double, double), assertEquals(double, 
java.lang.Double)
        at 
org.apache.nifi.elasticsearch.integration.ElasticSearchClientService_IT.testUpdateAndUpsert(ElasticSearchClientService_IT.groovy:641)

[ERROR] Failures:
[ERROR]   ElasticSearchClientService_IT.testScroll:262 Wrong count ==> 
expected: <15> but was: <16>
[ERROR] Errors:
[ERROR]   ElasticSearchClientService_IT.testDeleteById:481 » MissingMethod No 
signature ...
[ERROR]   ElasticSearchClientService_IT.testGetNotFound:507 » MissingMethod No 
signature...
[ERROR]   ElasticSearchClientService_IT.testPointInTime:404 » MissingMethod No 
signature...
[ERROR]   ElasticSearchClientService_IT.testSearchAfter:348 » MissingMethod No 
signature...
[ERROR]   ElasticSearchClientService_IT.testSearchWarnings:229 » 
MissingProperty No such...
[ERROR]   ElasticSearchClientService_IT.testUpdateAndUpsert:641 » MissingMethod 
No signa...
{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to