From 5e27e2b0ae88257b294ba6ff4bf8df29126fb1a3 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Tue, 30 Jul 2024 20:26:36 +0200 Subject: [PATCH] add system test for connection test using built-in bridge Signed-off-by: Reuben Miller --- .../bridge_config/builtin_bridge.robot | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/RobotFramework/tests/cumulocity/bridge_config/builtin_bridge.robot diff --git a/tests/RobotFramework/tests/cumulocity/bridge_config/builtin_bridge.robot b/tests/RobotFramework/tests/cumulocity/bridge_config/builtin_bridge.robot new file mode 100644 index 00000000000..0fac5334489 --- /dev/null +++ b/tests/RobotFramework/tests/cumulocity/bridge_config/builtin_bridge.robot @@ -0,0 +1,24 @@ +*** Settings *** +Resource ../../../resources/common.resource +Library ThinEdgeIO + +Test Setup Custom Setup +Test Teardown Get Logs + +*** Test Cases *** + +Connection test + [Documentation] Repeatedly test the cloud connection + FOR ${attempt} IN RANGE 0 10 1 + ${output}= Execute Command tedge connect c8y --test timeout=10 + Should Not Contain ${output} connection check failed + END + + +*** Keywords *** + +Custom Setup + ${DEVICE_SN}= Setup + Set Suite Variable ${DEVICE_SN} + Execute Command tedge config set mqtt.bridge.built_in true + Execute Command tedge reconnect c8y