Uncertainty unit test cases in apm java agent

Hi Team,

i enable the unit test cases for java agent 1.10.0 version, but there is uncertinity sometime some test pass and some time same test fails.

Kibana version:

Elasticsearch version:

APM Server version:

APM Agent language and version: Java agent 1.10.0

Browser version:

Original install method (e.g. download page, yum, deb, from source, etc.) and version:

Fresh install or upgraded from other version?

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):

Steps to reproduce:
1.
2.
3.

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):
Failed tests:
JBossIT>AbstractServletContainerIntegrationTest.testAllScenarios:244->AbstractServletContainerIntegrationTest.getAllReported:312
Expected size:<2> but was:<1> in:
<[{"timestamp":1576579175880010,"name":"GET /hello-world.jsp","id":"a20b18b7c5e2de2e","trace_id":"59744ed704b1e76e39cc842c2ec0b5d6","parent_id":"ca0e8378307d7fd3","type":"request","duration":84.776,"result":"HTTP 2xx","context":{"service":{"name":"Simple Web App"},"request":{"method":"GET","headers":{"elastic-apm-traceparent":"00-59744ed704b1e76e39cc842c2ec0b5d6-ca0e8378307d7fd3-01","cache-control":"no-cache","pragma":"no-cache","user-agent":"Java/1.8.0_232","host":"172.19.0.3:8080","accept":"text/html, image/gif, image/jpeg, *; q=.2, /; q=.2","connection":"keep-alive"},"url":{"full":"http://172.19.0.3:8080/simple-webapp/hello-world.jsp","hostname":"172.19.0.3","port":"8080","pathname":"/simple-webapp/hello-world.jsp","protocol":"http"},"socket":{"encrypted":false,"remote_address":"172.19.0.3"},"http_version":"1.1"},"response":{"headers":{"X-Powered-By":"JSP/2.2","Set-Cookie":"[REDACTED]"},"finished":true,"headers_sent":false,"status_code":200},"tags":{}},"span_count":{"dropped":0,"started":0},"sampled":true}]>

Tests run: 27, Failures: 1, Errors: 0, Skipped: 1

Yeah, the integration tests are known to be a bit flaky.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.