Skip to content

Commit 95803ec

Browse files
committed
add system test to verify publishing a retained message to aws
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
1 parent 094ab8b commit 95803ec

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/RobotFramework/requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ paho-mqtt~=1.6.1
22
python-dotenv~=1.0.0
33
robotframework~=7.0.0
44
robotframework-c8y @ git+https://github.com/thin-edge/robotframework-c8y.git@0.46.2
5-
robotframework-aws @ git+https://github.com/thin-edge/robotframework-aws.git@0.0.10
5+
robotframework-aws @ git+https://github.com/thin-edge/robotframework-aws.git@0.0.11
66
robotframework-debuglibrary~=2.5.0
77
robotframework-jsonlibrary~=0.5
88
robotframework-pabot~=2.18.0

tests/RobotFramework/tests/aws/aws_server_certificates.robot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ Connect using certificates generated by AWS
5252
${messages}= AWS.Should Have MQTT Messages topic=${cloud_topic} min_count=1
5353
Should Not Be Empty ${messages}
5454

55+
# Check publishing a retained message
56+
Execute Command tedge mqtt pub --retain aws/td/some/custom/message '{"text":"publishing directly to aws"}'
57+
${messages}= AWS.Should Have MQTT Messages topic=thinedge/${DEVICE_SN}/td/some/custom/message min_count=1
58+
Should Not Be Empty ${messages}
59+
ThinEdgeIO.Service Health Status Should Be Up tedge-mapper-aws
60+
5561
# Send data to thin-edge.io
5662
${cloud_cmd_topic}= AWS.Get Cloud Command Topic ${DEVICE_SN} topic_suffix=foo/bar
5763
AWS.Publish MQTT Message ${cloud_cmd_topic} {"some":"payload"}

0 commit comments

Comments
 (0)