-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add system test for connection test using built-in bridge
Signed-off-by: Reuben Miller <[email protected]>
- Loading branch information
1 parent
2a9eed4
commit e790772
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
tests/RobotFramework/tests/cumulocity/bridge_config/builtin_bridge.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |