Skip to content

Commit

Permalink
fix duplicate child device serial number bug in test (#1821)
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
  • Loading branch information
reubenmiller authored Mar 17, 2023
1 parent 30c6311 commit 8b4755e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Check health status of child device service
# Create the child device by sending the service status on tedge/health/<child-id>/<service-id
# Verify if the service status is updated
Set Device ${DEVICE_SN}
Set Suite Variable $CHILD_SN external-sensor
Execute Command tedge mqtt pub 'tedge/health/external-sensor/childservice' '{"type":"systemd","status":"unknown"}'
Set Suite Variable $CHILD_SN ${DEVICE_SN}_external-sensor
Execute Command tedge mqtt pub 'tedge/health/${CHILD_SN}/childservice' '{"type":"systemd","status":"unknown"}'

Should Be A Child Device Of Device ${CHILD_SN}

Expand Down

1 comment on commit 8b4755e

@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 %
152 0 5 152 100

Passed Tests

Name ⏱️ Duration Suite
Define Child device 1 ID 0.009 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 4.349 s C8Y Child Alarms Rpi
Normal case when the child device already exists 0.821 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 1.589 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 5.75 s C8Y Child Alarms Rpi
Prerequisite Parent 18.871 s Child Conf Mgmt Plugin
Prerequisite Child 0.247 s Child Conf Mgmt Plugin
Child device bootstrapping 14.28 s Child Conf Mgmt Plugin
Snapshot from device 21.645 s Child Conf Mgmt Plugin
Child device config update 19.102 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 47.798 s Inotify Crate
Child devices support sending simple measurements 49.643 s Child Device Telemetry
Child devices support sending custom measurements 52.572 s Child Device Telemetry
Child devices support sending custom events 41.101 s Child Device Telemetry
Child devices support sending custom events overriding the type 42.694 s Child Device Telemetry
Child devices support sending custom alarms #1699 35.36 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 22.762 s Child Device Telemetry
Main device support sending inventory data via c8y topic 23.621 s Child Device Telemetry
Successful firmware operation 60.697 s Firmware Operation
Install with empty firmware name 56.909 s Firmware Operation
Prerequisite Parent 20.573 s Firmware Operation Child Device
Prerequisite Child 7.984 s Firmware Operation Child Device
Child device firmware update 6.362 s Firmware Operation Child Device
Child device firmware update with cache 6.12 s Firmware Operation Child Device
Retrieve a JWT tokens 44.786 s Jwt Request
Supports restarting the device 78.579 s Restart Device
Update tedge version from previous using Cumulocity 89.639 s Tedge Self Update
Test if all c8y services are up 66.267 s Service Monitoring
Test if all c8y services are down 49.58 s Service Monitoring
Test if all c8y services are using configured service type 52.95 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 50.773 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 25.916 s Service Monitoring
Check health status of child device service 23.34 s Service Monitoring
Successful shell command with output 3.636 s Shell Operation
Check Successful shell command with literal double quotes output 3.347 s Shell Operation
Execute multiline shell command 3.384 s Shell Operation
Failed shell command 3.556 s Shell Operation
Software list should be populated during startup 52.163 s Software
Install software via Cumulocity 58.413 s Software
Software list should only show currently installed software and not candidates 39.643 s Software
Stop tedge-agent service 0.353 s Log Path Config
Customize the log path 0.109 s Log Path Config
Initialize tedge-agent 0.158 s Log Path Config
Check created folders 0.097 s Log Path Config
Remove created custom folders 0.192 s Log Path Config
Install thin-edge via apt 38.037 s Install Apt
Install latest via script (from current branch) 28.038 s Install Tedge
Install specific version via script (from current branch) 19.425 s Install Tedge
Install latest tedge via script (from main branch) 22.316 s Install Tedge
Support starting and stopping services 39.11 s Service-Control
Supports a reconnect 53.063 s Test-Commands
Supports disconnect then connect 44.134 s Test-Commands
Update unknown setting 36.036 s Test-Commands
Update known setting 22.034 s Test-Commands
Stop c8y-configuration-plugin 0.206 s Health C8Y-Configuration-Plugin
Update the service file 0.17 s Health C8Y-Configuration-Plugin
Reload systemd files 0.905 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.286 s Health C8Y-Configuration-Plugin
Start watchdog service 10.216 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.114 s Health C8Y-Configuration-Plugin
Kill the PID 0.144 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 2.194 s Health C8Y-Configuration-Plugin
Compare PID change 0 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.134 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.14 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.287 s Health C8Y-Log-Plugin
Update the service file 0.238 s Health C8Y-Log-Plugin
Reload systemd files 0.699 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.136 s Health C8Y-Log-Plugin
Start watchdog service 10.246 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.146 s Health C8Y-Log-Plugin
Kill the PID 0.183 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 2.303 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.098 s Health C8Y-Log-Plugin
Remove entry from service file 0.192 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.24 s Health Tedge Mapper C8Y
Update the service file 0.274 s Health Tedge Mapper C8Y
Reload systemd files 1.029 s Health Tedge Mapper C8Y
Start tedge-mapper 0.23 s Health Tedge Mapper C8Y
Start watchdog service 10.386 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.108 s Health Tedge Mapper C8Y
Kill the PID 0.231 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 2.2560000000000002 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.242 s Health Tedge Mapper C8Y
Remove entry from service file 0.295 s Health Tedge Mapper C8Y
Stop tedge-agent 0.28 s Health Tedge-Agent
Update the service file 0.127 s Health Tedge-Agent
Reload systemd files 0.574 s Health Tedge-Agent
Start tedge-agent 0.11 s Health Tedge-Agent
Start watchdog service 10.274000000000001 s Health Tedge-Agent
Check PID of tedge-mapper 0.146 s Health Tedge-Agent
Kill the PID 0.165 s Health Tedge-Agent
Recheck PID of tedge-agent 2.223 s Health Tedge-Agent
Compare PID change 0 s Health Tedge-Agent
Stop watchdog service 0.208 s Health Tedge-Agent
Remove entry from service file 0.186 s Health Tedge-Agent
Stop tedge-mapper-az 0.207 s Health Tedge-Mapper-Az
Update the service file 0.159 s Health Tedge-Mapper-Az
Reload systemd files 0.414 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.125 s Health Tedge-Mapper-Az
Start watchdog service 10.253 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.131 s Health Tedge-Mapper-Az
Kill the PID 0.095 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 2.198 s Health Tedge-Mapper-Az
Compare PID change 0 s Health Tedge-Mapper-Az
Stop watchdog service 0.188 s Health Tedge-Mapper-Az
Remove entry from service file 0.16 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.095 s Health Tedge-Mapper-Collectd
Update the service file 0.071 s Health Tedge-Mapper-Collectd
Reload systemd files 0.292 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.173 s Health Tedge-Mapper-Collectd
Start watchdog service 10.247 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.097 s Health Tedge-Mapper-Collectd
Kill the PID 0.157 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 2.2560000000000002 s Health Tedge-Mapper-Collectd
Compare PID change 0.001 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.143 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.158 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.691 s MQTT health endpoints
c8y-configuration-plugin health status 6.036 s MQTT health endpoints
Wrong package name 0.386 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.373 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.469 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 1.027 s Tedge Connect Test
tedge_connect_test_negative 2.45 s Tedge Connect Test
tedge_connect_test_sm_services 8.679 s Tedge Connect Test
tedge_disconnect_test_sm_services 1.18 s Tedge Connect Test
Install thin-edge.io 18.026 s Call Tedge
call tedge -V 0.107 s Call Tedge
call tedge -h 0.175 s Call Tedge
call tedge -h -V 0.142 s Call Tedge
call tedge help 0.126 s Call Tedge
tedge config list 0.075 s Call Tedge Config List
tedge config list --all 0.066 s Call Tedge Config List
set/unset device.type 0.325 s Call Tedge Config List
set/unset device.key.path 0.274 s Call Tedge Config List
set/unset device.cert.path 0.278 s Call Tedge Config List
set/unset c8y.root.cert.path 0.284 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.283 s Call Tedge Config List
set/unset az.root.cert.path 0.301 s Call Tedge Config List
set/unset az.mapper.timestamp 0.25 s Call Tedge Config List
set/unset mqtt.bind_address 0.25 s Call Tedge Config List
set/unset mqtt.port 0.263 s Call Tedge Config List
set/unset tmp.path 0.27 s Call Tedge Config List
set/unset logs.path 0.345 s Call Tedge Config List
set/unset run.path 0.337 s Call Tedge Config List
Get Put Delete 4.114 s Http File Transfer Api
Set keys should return value on stdout 0.328 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.528 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.361 s Tedge Config Get

Please sign in to comment.