Skip to content

Commit

Permalink
Merge pull request #2374 from reubenmiller/fix-pr-2640-merge-error
Browse files Browse the repository at this point in the history
fix placement of assertions due to a git merging error
  • Loading branch information
reubenmiller authored Oct 26, 2023
2 parents 4d4367e + 641da0c commit c2107d9
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,19 @@ Thin-edge device supports sending inventory data via tedge topic to root fragmen
Should Be Equal ${mo["subtype"]} LinuxDeviceA
Should Be Equal ${mo["type"]} thin-edge.io
Should Be Equal ${mo["name"]} ${DEVICE_SN}

# Validate clearing of fragments
Execute Command tedge mqtt pub --retain "te/device/main///twin/subtype" ''
Managed Object Should Not Have Fragments subtype

# Validate `name` and `type` can't be cleared
Execute Command tedge mqtt pub --retain "te/device/main///twin/type" ''
Execute Command tedge mqtt pub --retain "te/device/main///twin/name" ''
Sleep 5s reason=Wait a minimum period before checking that the fragment has not changed (as it was previously set)
${mo}= Device Should Have Fragments type
Should Be Equal ${mo["type"]} thin-edge.io
Should Be Equal ${mo["name"]} ${DEVICE_SN}

#
# Services
#
Expand Down Expand Up @@ -220,17 +233,6 @@ Send events to a registered service
Execute Command tedge mqtt pub te/device/main/service/app6/e/event_002 '{"text": "test event"}'
Device Should Have Event/s expected_text=test event type=event_002 minimum=1 maximum=1

# Validate clearing of fragments
Execute Command tedge mqtt pub --retain "te/device/main///twin/subtype" ''
Managed Object Should Not Have Fragments subtype

# Validate `name` and `type` can't be cleared
Execute Command tedge mqtt pub --retain "te/device/main///twin/type" ''
Execute Command tedge mqtt pub --retain "te/device/main///twin/name" ''
${mo}= Device Should Have Fragments type
Should Be Equal ${mo["type"]} thin-edge.io
Should Be Equal ${mo["name"]} ${DEVICE_SN}

*** Keywords ***

Custom Setup
Expand Down

1 comment on commit c2107d9

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
341 0 3 341 100 55m9.887s

Please sign in to comment.