Skip to content

Commit

Permalink
Merge pull request #2133 from reubenmiller/chore-add-maintainer-scripts
Browse files Browse the repository at this point in the history
chore: add maintainer scripts from existing debian packages for later comparison
  • Loading branch information
reubenmiller authored Aug 7, 2023
2 parents ab4e078 + bed460c commit 9518ad2
Show file tree
Hide file tree
Showing 22 changed files with 817 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh

set -e

# Automatically added by cargo-deb
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper unmask c8y-firmware-plugin.service >/dev/null || true

# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet was-enabled c8y-firmware-plugin.service; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper enable c8y-firmware-plugin.service >/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper update-state c8y-firmware-plugin.service >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by cargo-deb
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action c8y-firmware-plugin.service >/dev/null || true
fi
fi
# End automatically added section

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
set -e
# Automatically added by cargo-deb
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by cargo-deb
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask c8y-firmware-plugin.service >/dev/null || true
fi
fi

if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge c8y-firmware-plugin.service >/dev/null || true
deb-systemd-helper unmask c8y-firmware-plugin.service >/dev/null || true
fi
fi
# End automatically added section
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

set -e

# Stop the service only if systemctl is available
if command -v systemctl >/dev/null; then
if systemctl is-active --quiet c8y-firmware-plugin.service; then
systemctl stop c8y-firmware-plugin.service
fi
fi

# Automatically added by cargo-deb
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop c8y-firmware-plugin.service >/dev/null || true
fi
# End automatically added section

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh

set -e

# Deprecate: Remove symlink in 1.x release
if [ ! -e /usr/bin/c8y_log_plugin ]; then
ln -s /usr/bin/c8y-log-plugin /usr/bin/c8y_log_plugin
fi

# Automatically added by cargo-deb
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper unmask c8y-log-plugin.service >/dev/null || true

# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet was-enabled c8y-log-plugin.service; then
# Enables the unit on first installation, creates new
# symlinks on upgrades if the unit file has changed.
deb-systemd-helper enable c8y-log-plugin.service >/dev/null || true
else
# Update the statefile to add new symlinks (if any), which need to be
# cleaned up on purge. Also remove old symlinks.
deb-systemd-helper update-state c8y-log-plugin.service >/dev/null || true
fi
fi
# End automatically added section
# Automatically added by cargo-deb
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
_dh_action=restart
else
_dh_action=start
fi
deb-systemd-invoke $_dh_action c8y-log-plugin.service >/dev/null || true
fi
fi
# End automatically added section

21 changes: 21 additions & 0 deletions configuration/package_scripts/_generated/c8y-log-plugin/deb/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
set -e
# Automatically added by cargo-deb
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by cargo-deb
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask c8y-log-plugin.service >/dev/null || true
fi
fi

if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge c8y-log-plugin.service >/dev/null || true
deb-systemd-helper unmask c8y-log-plugin.service >/dev/null || true
fi
fi
# End automatically added section
21 changes: 21 additions & 0 deletions configuration/package_scripts/_generated/c8y-log-plugin/deb/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

set -e

# Stop the service only if systemctl is available
if command -v systemctl >/dev/null; then
if systemctl is-active --quiet c8y-log-plugin.service; then
systemctl stop c8y-log-plugin.service
fi
fi

if [ -e /usr/bin/c8y_log_plugin ]; then
rm -f /usr/bin/c8y_log_plugin
fi

# Automatically added by cargo-deb
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop c8y-log-plugin.service >/dev/null || true
fi
# End automatically added section

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e

### Create supported operation files
c8y-remote-access-plugin --init
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e

### Remove supported operation files
c8y-remote-access-plugin --cleanup
71 changes: 71 additions & 0 deletions configuration/package_scripts/_generated/tedge-agent/deb/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/sh

set -e

# Deprecate: Remove symlink in 1.x release
if [ ! -e /usr/bin/tedge_agent ]; then
ln -s /usr/bin/tedge-agent /usr/bin/tedge_agent
fi

# Use service manager agnostic tools (e.g. ps or pgrep) to determine if a process is running or not
process_running() {
name="$1"
if command -v ps >/dev/null 2>&1; then
if ps -C "$name" >/dev/null; then
return 0
fi
elif command -v pgrep >/dev/null 2>&1; then
if pgrep -x "$name" >/dev/null; then
return 0
fi
fi
# Assume process is not running
return 1
}

# Initialize the agent __only__ if not when agent is running.
# Indeed, during an OTA self-update, the previous version of the `agent` is kept running
# to monitor the installation of the new version up to completion.
# Note: Check for both tedge-agent and tedge_agent for backwards compatibility
if ! (process_running tedge-agent || process_running tedge_agent); then
# Flock file should be removed as `tedge-agent --init` must run as root
# although the flockfile is owned by `tedge`. rm will ignore the files if they don't exist
rm -f /run/lock/tedge_agent.lock
rm -f /run/lock/tedge-agent.lock
fi

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if deb-systemd-helper debian-installed tedge-agent.service; then
# This will only remove masks created by d-s-h on package removal.
deb-systemd-helper unmask tedge-agent.service >/dev/null || true

if deb-systemd-helper --quiet was-enabled tedge-agent.service; then
# Create new symlinks, if any.
deb-systemd-helper enable tedge-agent.service >/dev/null || true
fi
fi

# Update the statefile to add new symlinks (if any), which need to be cleaned
# up on purge. Also remove old symlinks.
deb-systemd-helper update-state tedge-agent.service >/dev/null || true
fi

# Enable the services only if systemctl is available
if command -v systemctl >/dev/null; then
# Start the agent __only__ if not already running.
# Indeed, during an OTA self-update, the previous version of the `agent` is kept running
# to monitor the installation of the new version up to completion.
if [ -f "/etc/tedge/mosquitto-conf/c8y-bridge.conf" ] && ! systemctl is-active --quiet tedge-agent ; then
deb-systemd-helper enable tedge-agent.service >/dev/null || true
if [ -d /run/systemd/system ]; then
deb-systemd-invoke start tedge-agent.service >/dev/null || true
fi
fi
fi

if [ -f /var/lib/dpkg/info/tedge_agent.postrm ]; then
# Prevent purge from deleting files related to the package
rm -f /var/lib/dpkg/info/tedge_agent.postrm
fi

# Do not use DEBHELPER: for OTA self-update one needs a fine-control over the deb options
60 changes: 60 additions & 0 deletions configuration/package_scripts/_generated/tedge-agent/deb/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/sh

set -e

purge_agent_directory() {
if [ -d "/etc/tedge/.agent" ]; then
rm -rf /etc/tedge/.agent
fi
}

purge_agent_lock() {
# remove old lock file path
if [ -f "/run/lock/tedge_agent.lock" ]; then
rm -rf /run/lock/tedge_agent.lock
fi

if [ -f "/run/lock/tedge-agent.lock" ]; then
rm -rf /run/lock/tedge-agent.lock
fi
}

purge_agent_logs() {
if [ -d "/var/log/tedge/agent" ]; then
rm -rf /var/log/tedge/agent
fi
}

purge_var_data_directory() {
if [ -d "/var/tedge" ]; then
rm -rf /var/tedge
fi
}

case "$1" in
purge)
purge_agent_directory
purge_agent_lock
purge_var_data_directory
purge_agent_logs
;;
esac

if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi

if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask tedge-agent.service >/dev/null || true
fi
fi

if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge tedge-agent.service >/dev/null || true
deb-systemd-helper unmask tedge-agent.service >/dev/null || true
fi
fi

# Do not use DEBHELPER: for OTA self-update one needs a fine-control over the deb options
13 changes: 13 additions & 0 deletions configuration/package_scripts/_generated/tedge-agent/deb/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
set -e

if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop tedge-agent.service >/dev/null || true
fi

# Deprecate: Remove symlink in 1.x release
if [ -e /usr/bin/tedge_agent ]; then
rm -f /usr/bin/tedge_agent
fi

# Do not use DEBHELPER: for OTA self-update one needs a fine-control over the deb options
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

set -e

DIR=/etc/tedge/sm-plugins

if [ ! -d "$DIR" ];
then
mkdir /etc/tedge/sm-plugins
fi

# Create a symlink to apt plugin
if [ ! -e /etc/tedge/sm-plugins/apt ]; then
ln -s /usr/bin/tedge-apt-plugin /etc/tedge/sm-plugins/apt
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

rm -f /etc/tedge/sm-plugins/apt
Loading

1 comment on commit 9518ad2

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

Passed Tests

Name ⏱️ Duration Suite
Prerequisite Parent 15.071 s Child Conf Mgmt Plugin
Prerequisite Child 0.543 s Child Conf Mgmt Plugin
Child device bootstrapping 15.257 s Child Conf Mgmt Plugin
Snapshot from device 61.815 s Child Conf Mgmt Plugin
Child device config update 61.182 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 56.365 s Inotify Crate
Check lock file existence in default folder 1.565 s Lock File
Check PID number in lock file 1.315 s Lock File
Check PID number in lock file after restarting the services 1.617 s Lock File
Check starting same service twice 0.966 s Lock File
Switch off lock file creation 1.544 s Lock File
Set configuration when file exists 7.031 s Configuration Operation
Set configuration when file does not exist 5.585 s Configuration Operation
Set configuration with broken url 5.477 s Configuration Operation
Get configuration 6.479 s Configuration Operation
Get non existent configuration file 4.9 s Configuration Operation
Get non existent configuration type 4.686 s Configuration Operation
Update configuration plugin config via cloud 5.306 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace 2.564 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite 4.529 s Configuration Operation
Update configuration plugin config via local filesystem copy 5.056 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) 3.26 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) 4.185 s Configuration Operation
Update the custom operation dynamically 61.687 s Dynamically Reload Operation
Custom operation successful 73.583 s Custom Operation
Custom operation fails 70.369 s Custom Operation
Successful firmware operation 70.192 s Firmware Operation
Install with empty firmware name 110.633 s Firmware Operation
Prerequisite Parent 17.209 s Firmware Operation Child Device
Prerequisite Child 8.029 s Firmware Operation Child Device
Child device firmware update 6.513 s Firmware Operation Child Device
Child device firmware update with cache 6.29 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 4.899 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json 1.212 s Inventory Update
Inventory includes the agent fragment with version information 1.111 s Inventory Update
Retrieve a JWT tokens 39.254 s Jwt Request
Mapper recovers and processes output of ongoing software update request 15.884 s Recover And Publish Software Update Message
Check running collectd 1.038 s Monitor Device Collectd
Is collectd publishing MQTT messages? 2.745 s Monitor Device Collectd
Check thin-edge monitoring 3.489 s Monitor Device Collectd
Check grouping of measurements 8.26 s Monitor Device Collectd
Main device registration 1.6600000000000001 s Device Registration
Child device registration 1.7890000000000001 s Device Registration
Supports restarting the device 46.702 s Restart Device
Update tedge version from previous using Cumulocity 71.98 s Tedge Self Update
Test if all c8y services are up 96.264 s Service Monitoring
Test if all c8y services are down 101.964 s Service Monitoring
Test if all c8y services are using configured service type 168.891 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 206.348 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 20.281 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 21.761 s Service Monitoring
Check health status of child device service 16.379 s Service Monitoring
Successful shell command with output 3.8040000000000003 s Shell Operation
Check Successful shell command with literal double quotes output 3.209 s Shell Operation
Execute multiline shell command 3.36 s Shell Operation
Failed shell command 3.577 s Shell Operation
Software list should be populated during startup 31.574 s Software
Install software via Cumulocity 45.873 s Software
tedge-agent should terminate on SIGINT while downloading file 31.084 s Software
Software list should only show currently installed software and not candidates 36.535 s Software
Create and publish the tedge agent supported operations on mapper restart 29.44 s Mapper-Publishing-Agent-Supported-Ops
Agent gets the software list request once it comes up 32.949 s Mapper-Publishing-Agent-Supported-Ops
Define Child device 1 ID 0.026 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 3.858 s C8Y Child Alarms Rpi
Normal case when the child device already exists 0.684 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 1.166 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 65.336 s C8Y Child Alarms Rpi
Child devices support sending simple measurements 1.35 s Child Device Telemetry
Child devices support sending custom measurements 1.183 s Child Device Telemetry
Child devices support sending custom events 1.045 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.393 s Child Device Telemetry
Child devices support sending custom alarms #1699 1.018 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 0.856 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 1.242 s Child Device Telemetry
Check retained alarms 216.642 s Raise Alarms
Thin-edge devices support sending simple measurements 1.408 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type 0.904 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements 0.885 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events 0.84 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type 0.961 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 1.094 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y 1.197 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic 1.065 s Thin-Edge Device Telemetry
thin-edge components support a custom config-dir location via flags 26.983 s Config Dir
Validate updated data path used by tedge-agent 0.255 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 10.235 s Data Path Config
Validate updated data path used by tedge-agent 0.352 s Log Path Config
Check existence of init directories 0.604 s Tedge Init
Tedge init and check creation of folders 0.801 s Tedge Init
Check ownership of the folders 0.671 s Tedge Init
Change user/group and check the change 0.741 s Tedge Init
Tedge init and check if default values are restored 0.974 s Tedge Init
Install thin-edge via apt 46.134 s Install Apt
Install latest via script (from current branch) 60.548 s Install Tedge
Install specific version via script (from current branch) 26.615 s Install Tedge
Install latest tedge via script (from main branch) 29.882 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 47.422 s Install Tedge
Support starting and stopping services 33.976 s Service-Control
Supports a reconnect 50.351 s Test-Commands
Supports disconnect then connect 32.735 s Test-Commands
Update unknown setting 38.187 s Test-Commands
Update known setting 29.537 s Test-Commands
It checks MQTT messages using a pattern 62.519 s Test-Mqtt
Stop c8y-configuration-plugin 0.143 s Health C8Y-Configuration-Plugin
Update the service file 0.13 s Health C8Y-Configuration-Plugin
Reload systemd files 0.23 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.074 s Health C8Y-Configuration-Plugin
Start watchdog service 10.293 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.091 s Health C8Y-Configuration-Plugin
Kill the PID 0.226 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 6.49 s Health C8Y-Configuration-Plugin
Compare PID change 0.001 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.112 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.067 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.128 s Health C8Y-Log-Plugin
Update the service file 0.087 s Health C8Y-Log-Plugin
Reload systemd files 0.365 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.111 s Health C8Y-Log-Plugin
Start watchdog service 10.124 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.093 s Health C8Y-Log-Plugin
Kill the PID 0.247 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 6.524 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.214 s Health C8Y-Log-Plugin
Remove entry from service file 0.119 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.124 s Health Tedge Mapper C8Y
Update the service file 0.108 s Health Tedge Mapper C8Y
Reload systemd files 0.408 s Health Tedge Mapper C8Y
Start tedge-mapper 0.128 s Health Tedge Mapper C8Y
Start watchdog service 10.115 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.066 s Health Tedge Mapper C8Y
Kill the PID 0.198 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 6.672 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.202 s Health Tedge Mapper C8Y
Remove entry from service file 0.205 s Health Tedge Mapper C8Y
Stop tedge-agent 0.108 s Health Tedge-Agent
Update the service file 0.15 s Health Tedge-Agent
Reload systemd files 0.254 s Health Tedge-Agent
Start tedge-agent 0.114 s Health Tedge-Agent
Start watchdog service 10.138 s Health Tedge-Agent
Check PID of tedge-mapper 0.229 s Health Tedge-Agent
Kill the PID 0.313 s Health Tedge-Agent
Recheck PID of tedge-agent 6.912 s Health Tedge-Agent
Compare PID change 0.001 s Health Tedge-Agent
Stop watchdog service 0.493 s Health Tedge-Agent
Remove entry from service file 0.227 s Health Tedge-Agent
Stop tedge-mapper-az 0.074 s Health Tedge-Mapper-Az
Update the service file 0.091 s Health Tedge-Mapper-Az
Reload systemd files 0.26 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.066 s Health Tedge-Mapper-Az
Start watchdog service 10.1 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.14 s Health Tedge-Mapper-Az
Kill the PID 0.431 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 7.015 s Health Tedge-Mapper-Az
Compare PID change 0.015 s Health Tedge-Mapper-Az
Stop watchdog service 0.223 s Health Tedge-Mapper-Az
Remove entry from service file 0.228 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.336 s Health Tedge-Mapper-Collectd
Update the service file 0.126 s Health Tedge-Mapper-Collectd
Reload systemd files 0.486 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.12 s Health Tedge-Mapper-Collectd
Start watchdog service 10.148 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.09 s Health Tedge-Mapper-Collectd
Kill the PID 0.361 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 6.541 s Health Tedge-Mapper-Collectd
Compare PID change 0.001 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.127 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.155 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 6.054 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.548 s MQTT health endpoints
c8y-configuration-plugin health status 5.775 s MQTT health endpoints
Publish on a local insecure broker 0.223 s Basic Pub Sub
Publish on a local secure broker 4.496 s Basic Pub Sub
Publish on a local secure broker with client authentication 2.723 s Basic Pub Sub
Publish events to subscribed topic 0.306 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to unsubscribed topic 5.257 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to subscribed topic 0.393 s Custom Sub Topics Tedge-Mapper-Az
Publish measurements to unsubscribed topic 5.25 s Custom Sub Topics Tedge-Mapper-Az
Publish events to subscribed topic 0.212 s Custom Sub Topics Tedge-Mapper-C8Y
Publish measurements to unsubscribed topic 5.318 s Custom Sub Topics Tedge-Mapper-C8Y
Check remote mqtt broker #1773 3.194 s Remote Mqtt Broker
Apply name filter 0.111 s Filter Packages List Output
Apply maintainer filter 0.178 s Filter Packages List Output
Apply both filters 0.159 s Filter Packages List Output
No filters 0.171 s Filter Packages List Output
Both filters but name filter as empty string 0.164 s Filter Packages List Output
Both filters but maintainer filter as empty string 0.148 s Filter Packages List Output
Both filters as empty string 0.133 s Filter Packages List Output
Wrong package name 0.134 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.178 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.324 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.288 s Tedge Connect Test
tedge_connect_test_negative 1.071 s Tedge Connect Test
tedge_connect_test_sm_services 7.174 s Tedge Connect Test
tedge_disconnect_test_sm_services 0.83 s Tedge Connect Test
Install thin-edge.io 20.512 s Call Tedge
call tedge -V 0.078 s Call Tedge
call tedge -h 0.106 s Call Tedge
call tedge -h -V 0.087 s Call Tedge
call tedge help 0.115 s Call Tedge
tedge config list 0.07 s Call Tedge Config List
tedge config list --all 0.079 s Call Tedge Config List
set/unset device.type 0.249 s Call Tedge Config List
set/unset device.key_path 0.432 s Call Tedge Config List
set/unset device.cert_path 0.426 s Call Tedge Config List
set/unset c8y.root_cert_path 0.314 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.349 s Call Tedge Config List
set/unset c8y.topics 0.481 s Call Tedge Config List
set/unset az.root_cert_path 0.443 s Call Tedge Config List
set/unset az.topics 0.366 s Call Tedge Config List
set/unset aws.topics 0.257 s Call Tedge Config List
set/unset aws.url 0.255 s Call Tedge Config List
set/unset aws.root_cert_path 0.304 s Call Tedge Config List
set/unset aws.mapper.timestamp 0.31 s Call Tedge Config List
set/unset az.mapper.timestamp 0.357 s Call Tedge Config List
set/unset mqtt.bind.address 0.37 s Call Tedge Config List
set/unset mqtt.bind.port 0.633 s Call Tedge Config List
set/unset http.bind.port 0.684 s Call Tedge Config List
set/unset tmp.path 0.324 s Call Tedge Config List
set/unset logs.path 0.439 s Call Tedge Config List
set/unset run.path 0.569 s Call Tedge Config List
set/unset firmware.child.update.timeout 0.411 s Call Tedge Config List
set/unset c8y.url 0.338 s Call Tedge Config List
set/unset az.url 0.273 s Call Tedge Config List
set/unset mqtt.external.bind.port 0.33 s Call Tedge Config List
mqtt.external.bind.address 0.268 s Call Tedge Config List
mqtt.external.bind.interface 0.273 s Call Tedge Config List
set/unset mqtt.external.ca_path 0.226 s Call Tedge Config List
set/unset mqtt.external.cert_file 0.228 s Call Tedge Config List
set/unset mqtt.external.key_file 0.244 s Call Tedge Config List
set/unset software.plugin.default 0.292 s Call Tedge Config List
set/unset apt.name 0.235 s Call Tedge Config List
set/unset apt.maintainer 0.222 s Call Tedge Config List
Get Put Delete 1.345 s Http File Transfer Api
Set keys should return value on stdout 0.095 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.157 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.261 s Tedge Config Get
Set configuration via environment variables 0.829 s Tedge Config Get
Set configuration via environment variables for topics 0.27 s Tedge Config Get
Set unknown configuration via environment variables 0.102 s Tedge Config Get

Please sign in to comment.