-
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.
Merge pull request #3187 from gligorisaev/mosquitto_bug
test: check publishing of telemetry data whilst mapper is down
- Loading branch information
Showing
2 changed files
with
37 additions
and
6 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
*** Settings *** | ||
Resource ../../resources/common.resource | ||
Library ThinEdgeIO | ||
Library Cumulocity | ||
|
||
Test Setup Setup Test | ||
Test Teardown Get Logs | ||
|
||
|
||
*** Test Cases *** | ||
Publish event whilst mapper is down | ||
[Documentation] The mapper should publish the event to the cloud when it comes back online | ||
${event_type}= Get Random Name | ||
Stop Service tedge-mapper-c8y | ||
Execute Command tedge mqtt pub -q 1 te/device/main///e/${event_type} '{"text":"test message"}' | ||
Start Service tedge-mapper-c8y | ||
Cumulocity.Device Should Have Event/s type=${event_type} expected_text=test message | ||
|
||
|
||
*** Keywords *** | ||
Setup Test | ||
${DEVICE_SN}= Setup | ||
Set Suite Variable $DEVICE_SN | ||
Device Should Exist ${DEVICE_SN} |
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