Skip to content

Commit

Permalink
add on demand system test (not run by default in ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Dec 3, 2024
1 parent ba7ab9d commit 8ee9b20
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/RobotFramework/requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dateparser~=1.2.0
paho-mqtt~=1.6.1
python-dotenv~=1.0.0
robotframework~=7.0.0
robotframework-c8y @ git+https://github.com/thin-edge/robotframework-c8y.git@0.37.2
robotframework-c8y @ git+https://github.com/thin-edge/robotframework-c8y.git@0.38.1
robotframework-aws @ git+https://github.com/thin-edge/robotframework-aws.git@0.0.9
robotframework-debuglibrary~=2.5.0
robotframework-jsonlibrary~=0.5
Expand Down
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

0 comments on commit 8ee9b20

Please sign in to comment.