-
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 on demand system test (not run by default in ci)
- Loading branch information
1 parent
ba7ab9d
commit 8ee9b20
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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
31 changes: 31 additions & 0 deletions
31
tests/RobotFramework/tests/cumulocity/registration/cumulocity_ca.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,31 @@ | ||
*** Settings *** | ||
Resource ../../../../resources/common.resource | ||
Library Cumulocity | ||
Library ThinEdgeIO | ||
Library String | ||
|
||
Test Setup Custom Setup | ||
|
||
Test Tags theme:c8y test:on_demand | ||
|
||
|
||
*** Test Cases *** | ||
Register Device Using Cumulocity CA | ||
${credentials}= Bulk Register Device With Cumulocity CA ${DEVICE_SN} | ||
${DOMAIN}= Get Cumulocity Domain | ||
Execute Command tedge config set c8y.url "${DOMAIN}" | ||
Execute Command tedge cert download c8y --device-id "${DEVICE_SN}" --token "${credentials.password}" | ||
Execute Command tedge connect c8y | ||
|
||
|
||
*** Keywords *** | ||
Get Cumulocity Domain | ||
${DOMAIN}= Replace String Using Regexp ${C8Y_CONFIG.host} ^.*:// ${EMPTY} | ||
${DOMAIN}= Strip String ${DOMAIN} characters=/ | ||
RETURN ${DOMAIN} | ||
|
||
Custom Setup | ||
${DEVICE_SN}= Setup skip_bootstrap=${True} | ||
Execute Command test -f ./bootstrap.sh && ./bootstrap.sh --no-bootstrap --no-connect || true | ||
|
||
Set Test Variable $DEVICE_SN |