Skip to content

Commit

Permalink
test: add system test for optional tedge url in config snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Piotrowski <[email protected]>
  • Loading branch information
Ruadhri17 committed Apr 18, 2024
1 parent af921cd commit 4456e02
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ Manual config_snapshot operation request
... expected_status=successful
... c8y_fragment=c8y_UploadConfigFile

Config_snapshot operation request with the tedgeUrl created by agent
Set Device Context ${PARENT_SN}
${timestamp}= Get Unix Timestamp
Publish and Verify Local Command
... topic=te/device/main///cmd/config_snapshot/tedge-configuration-plugin-1111
... payload={"status":"init","type":"tedge-configuration-plugin"}
... expected_status=successful
... c8y_fragment=c8y_UploadConfigFile

${messages}= Should Have MQTT Messages
... te/device/main///cmd/config_snapshot/tedge-configuration-plugin-1111
... message_contains=http://${PARENT_IP}:8000/tedge/file-transfer/main/config_snapshot/tedge-configuration-plugin-1111
... date_from=${timestamp}

ThinEdgeIO.File Should Exist /var/tedge/file-transfer/main/config_snapshot/tedge-configuration-plugin-1111

Manual config_update operation request
Set Device Context ${PARENT_SN}
# Don't worry about the command failing, that is expected since the tedgeUrl path does not exist
Expand Down

0 comments on commit 4456e02

Please sign in to comment.