You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2023/08/16 09:35:00 UTC
[jira] [Created] (CAMEL-19751) camel-xchange: tests keep hitting the binance API
Otavio Rodolfo Piske created CAMEL-19751:
--------------------------------------------
Summary: camel-xchange: tests keep hitting the binance API
Key: CAMEL-19751
URL: https://issues.apache.org/jira/browse/CAMEL-19751
Project: Camel
Issue Type: Task
Components: camel-xchange
Reporter: Otavio Rodolfo Piske
Fix For: 3.20.7, 3.22.0, 4.0.1, 4.1.0
The camel-xchange tests keep hitting the address https://fapi.binance.com/fapi/v1/exchangeInfo which both abuse the owner of the address and contribute to their flakiness.
To reproduce:
1. Run the tests locally: they are likely to pass
2. Block the binance API address (see below)
3. Repeat the tests: they should fail with {{"org.knowm.xchange.exceptions.ExchangeException: Failed to initialize: Connection refused"}}
To block the address, you can add the following line to {{/etc/hosts}}:
{code:java}
127.0.0.1 fapi.binance.com
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)