From a5659a86d004b43de5961e0917595f257bf36574 Mon Sep 17 00:00:00 2001 From: Didier Wenzek Date: Wed, 10 Nov 2021 13:12:38 +0000 Subject: [CIT 515] Fix the tests of the MQTT component. (#561) * Add a test helper to except a message on MQTT * Fix doc string Signed-off-by: Wenzek * Move the test_mqtt_server in a dev-dependency * The tests of the agent are not dependent of MQTT * Working around sub ack * Refactor the test message logger * Add test helper functions * Make test clearer * Use test helper functions to simplify the tests * Rename module * Launch the test MQTT broker just once * Encapsulate the port of the MQTT test broker * Display the first 30 bytes of the messages recieved by the test MQTT broker * Make serial the agent tests * Upgrade to rumqtt latest * Fix mqtt test broker log * Reproduce the issue with lost messages when the sm_mapper is down * Cargo fmt * Addressing comments * Update test * Remove test_serial attribute * Ignore test `tedge_agent_check_no_multiple_instances_running` * Run commit-workflow tests with no-fail-fast * ignore test requesting sudo * Make helper functions method of the test broker handler * Cargo fmt * Wait for the mapper under test to start Co-authored-by: Wenzek --- tedge/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tedge/Cargo.toml') diff --git a/tedge/Cargo.toml b/tedge/Cargo.toml index 11598278..99e57d7b 100644 --- a/tedge/Cargo.toml +++ b/tedge/Cargo.toml @@ -19,7 +19,7 @@ futures = "0.3" hyper = { version = "0.14", default-features = false } reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls-tls", "stream"] } rpassword = "5.0" -rumqttc = "0.8" +rumqttc = "0.10" rustls = "0.19" serde = { version = "1.0", features = ["derive"] } structopt = "0.3" -- cgit v1.2.3