emqx/apps/emqx_bridge/test
Kjell Winblad 917474f694 fix: action config update would sometimes not be reflected in connector
Before this commit the following happened sometimes:

1. action status is connected
2. action config is updated to something that should change the status to
   disconnected
3. action status is still connected and the old config is being used by
   the connector even though the config has been correctly updated.

The reason for this bug is that the post_config_hook runs before the
global EMQX config is updated. The post config hook is adding the new
config to the connector. Since the new config causes the action to get
status disconnected, the adding of the action to the connector is
retried when the health check runs but this time the config will be
loaded from the global config which could cause the old config to be
loaded (this happens when the global config has not had time to get
updated).

The above problem has been fixed in this commit by only reading action
configs from the global config when the connector starts/restarts and
instead store the latest configs for the actions in the connector.

Fixes:
https://emqx.atlassian.net/browse/EMQX-12376
2024-05-22 12:15:04 +02:00
..
data/certs fix: fix obsolete SSL files aren't deleted after the bridge configuration update 2022-11-23 23:49:43 +01:00
emqx_bridge_api_SUITE.erl feat(resource): non-blocking channel health checks 2024-04-04 16:13:30 -03:00
emqx_bridge_compatible_config_tests.erl chore: update copyright-year 2024-02-23 08:21:06 +01:00
emqx_bridge_resource_tests.erl chore: update copyright-year 2024-02-23 08:21:06 +01:00
emqx_bridge_SUITE.erl chore: update copyright-year 2024-02-23 08:21:06 +01:00
emqx_bridge_testlib.erl test(apply rule trace): add test case for republish and console print 2024-05-03 15:02:37 +02:00
emqx_bridge_v1_compatibility_layer_SUITE.erl chore: update copyright-year 2024-02-23 08:21:06 +01:00
emqx_bridge_v2_api_SUITE.erl refactor(emqx_connector_info): remove code that is no longer needed 2024-03-21 11:58:54 +01:00
emqx_bridge_v2_dummy_connector.erl chore: update copyright-year 2024-02-23 08:21:06 +01:00
emqx_bridge_v2_SUITE.erl fix: action config update would sometimes not be reflected in connector 2024-05-22 12:15:04 +02:00
emqx_bridge_v2_test_connector.erl chore: update copyright-year 2024-02-23 08:21:06 +01:00
emqx_bridge_v2_testlib.erl fix(http connector): deobfuscate sensitive headers 2024-04-29 15:20:46 -03:00
emqx_bridge_v2_tests.erl chore: update copyright-year 2024-02-23 08:21:06 +01:00