Skip to content

Commit

Permalink
Retry the http requests with fresh jwt token, if the requests fail du…
Browse files Browse the repository at this point in the history
…e to expired JWT token or internal id. (#2065)

Signed-off-by: Pradeep Kumar K J <[email protected]>
Co-authored-by: Pradeep Kumar K J <[email protected]>
  • Loading branch information
PradeepKiruvale and PradeepKiruvale authored Jul 26, 2023
1 parent 293c7ea commit 106b84f
Show file tree
Hide file tree
Showing 14 changed files with 571 additions and 187 deletions.
17 changes: 9 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 47 additions & 19 deletions crates/core/c8y_api/src/http_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,47 @@ use mqtt_channel::StreamExt;
use mqtt_channel::Topic;
use mqtt_channel::TopicFilter;
use reqwest::Url;
use std::collections::HashMap;
use std::time::Duration;
use tedge_config::mqtt_config::MqttConfigBuildError;
use tedge_config::TEdgeConfig;
use tracing::error;
use tracing::info;

#[derive(thiserror::Error, Debug)]
pub enum C8yEndPointError {
#[error("Cumulocity internal id not found for the device: {0}")]
InternalIdNotFound(String),
}

/// Define a C8y endpoint
#[derive(Debug)]
pub struct C8yEndPoint {
pub c8y_host: String,
c8y_host: String,
pub device_id: String,
pub c8y_internal_id: String,
pub token: Option<String>,
devices_internal_id: HashMap<String, String>,
}

impl C8yEndPoint {
pub fn new(c8y_host: &str, device_id: &str, c8y_internal_id: &str) -> C8yEndPoint {
pub fn new(c8y_host: &str, device_id: &str) -> C8yEndPoint {
C8yEndPoint {
c8y_host: c8y_host.into(),
device_id: device_id.into(),
c8y_internal_id: c8y_internal_id.into(),
token: None,
devices_internal_id: HashMap::new(),
}
}

pub fn get_c8y_internal_id(&self) -> &str {
&self.c8y_internal_id
pub fn get_internal_id(&self, device_id: String) -> Result<String, C8yEndPointError> {
match self.devices_internal_id.get(&device_id) {
Some(internal_id) => Ok(internal_id.to_string()),
None => Err(C8yEndPointError::InternalIdNotFound(device_id.clone())),
}
}

pub fn set_c8y_internal_id(&mut self, id: String) {
self.c8y_internal_id = id;
pub fn set_internal_id(&mut self, device_id: String, internal_id: String) {
self.devices_internal_id.insert(device_id, internal_id);
}

fn get_base_url(&self) -> String {
Expand All @@ -47,18 +59,17 @@ impl C8yEndPoint {
url_get_id
}

pub fn get_url_for_sw_list(&self) -> String {
pub fn get_url_for_sw_list(&self, internal_id: String) -> String {
let mut url_update_swlist = self.get_base_url();
url_update_swlist.push_str("/inventory/managedObjects/");
url_update_swlist.push_str(&self.c8y_internal_id);

url_update_swlist.push_str(&internal_id);
url_update_swlist
}

pub fn get_url_for_get_id(&self, device_id: Option<&str>) -> String {
pub fn get_url_for_internal_id(&self, device_id: String) -> String {
let mut url_get_id = self.get_base_url();
url_get_id.push_str("/identity/externalIds/c8y_Serial/");
url_get_id.push_str(device_id.unwrap_or(&self.device_id));
url_get_id.push_str(device_id.as_str());

url_get_id
}
Expand Down Expand Up @@ -178,13 +189,14 @@ pub enum JwtError {

#[cfg(test)]
mod tests {

use super::*;
use test_case::test_case;

#[test]
fn get_url_for_get_id_returns_correct_address() {
let c8y = C8yEndPoint::new("test_host", "test_device", "internal-id");
let res = c8y.get_url_for_get_id(None);
let c8y = C8yEndPoint::new("test_host", "test_device");
let res = c8y.get_url_for_internal_id("test_device".into());

assert_eq!(
res,
Expand All @@ -194,8 +206,11 @@ mod tests {

#[test]
fn get_url_for_sw_list_returns_correct_address() {
let c8y = C8yEndPoint::new("test_host", "test_device", "12345");
let res = c8y.get_url_for_sw_list();
let mut c8y = C8yEndPoint::new("test_host", "test_device");
c8y.devices_internal_id
.insert("test_device".to_string(), "12345".to_string());
let internal_id = c8y.get_internal_id("test_device".to_string()).unwrap();
let res = c8y.get_url_for_sw_list(internal_id);

assert_eq!(res, "https://test_host/inventory/managedObjects/12345");
}
Expand All @@ -210,7 +225,7 @@ mod tests {
#[test_case("https://t1124124.test.com/path/to/file.test")]
#[test_case("https://t1124124.test.com/path/to/file")]
fn url_is_my_tenant_correct_urls(url: &str) {
let c8y = C8yEndPoint::new("test.test.com", "test_device", "internal-id");
let c8y = C8yEndPoint::new("test.test.com", "test_device");
assert!(c8y.url_is_in_my_tenant_domain(url));
}

Expand All @@ -220,7 +235,20 @@ mod tests {
#[test_case("http://test.com:123456")]
#[test_case("http://test.com::12345")]
fn url_is_my_tenant_incorrect_urls(url: &str) {
let c8y = C8yEndPoint::new("test.test.com", "test_device", "internal-id");
let c8y = C8yEndPoint::new("test.test.com", "test_device");
assert!(!c8y.url_is_in_my_tenant_domain(url));
}

#[test]
fn check_non_cached_internal_id_for_a_device() {
let mut c8y = C8yEndPoint::new("test_host", "test_device");
c8y.devices_internal_id
.insert("test_device".to_string(), "12345".to_string());
let end_pt_err = c8y.get_internal_id("test_child".into()).unwrap_err();

assert_eq!(
end_pt_err.to_string(),
"Cumulocity internal id not found for the device: test_child".to_string()
);
}
}
6 changes: 3 additions & 3 deletions crates/core/c8y_api/src/json_c8y.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use time::OffsetDateTime;

const EMPTY_STRING: &str = "";

#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
#[serde(rename_all = "camelCase")]
pub struct C8yCreateEvent {
#[serde(skip_serializing_if = "Option::is_none")]
Expand All @@ -42,7 +42,7 @@ pub struct C8yEventResponse {
pub id: String,
}

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, Default)]
#[serde(rename_all = "camelCase")]
pub struct C8yManagedObject {
pub id: String,
Expand Down Expand Up @@ -98,7 +98,7 @@ impl From<SoftwareModule> for C8ySoftwareModuleItem {
}
}

#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)]
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq, Default)]
#[serde(rename_all = "camelCase")]
pub struct C8yUpdateSoftwareListResponse {
#[serde(rename = "c8y_SoftwareList")]
Expand Down
6 changes: 3 additions & 3 deletions crates/extensions/c8y_config_manager/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async fn test_config_upload_tedge_device() -> Result<(), DynError> {
.assert_received([UploadConfigFile {
config_path: test_config_path.into(),
config_type: test_config_type.to_string(),
child_device_id: None,
device_id,
}])
.await;

Expand Down Expand Up @@ -511,7 +511,7 @@ async fn test_child_device_successful_config_snapshot_response_mapping() -> Resu
.join("config_snapshot")
.join(test_config_type),
config_type: test_config_type.into(),
child_device_id: Some(child_device_id.into()),
device_id: child_device_id.into(),
}])
.await;

Expand Down Expand Up @@ -585,7 +585,7 @@ async fn test_child_config_snapshot_successful_response_without_uploaded_file_ma
.join("config_snapshot")
.join(test_config_type),
config_type: test_config_type.into(),
child_device_id: Some(child_device_id.into()),
device_id: child_device_id.into(),
}])
.await;

Expand Down
8 changes: 4 additions & 4 deletions crates/extensions/c8y_config_manager/src/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl ConfigUploadManager {
self.upload_config_file(
Path::new(config_file_path.as_str()),
&config_upload_request.config_type,
None,
config_upload_request.device,
message_box,
)
.await
Expand Down Expand Up @@ -334,7 +334,7 @@ impl ConfigUploadManager {
.upload_config_file(
Path::new(&uploaded_config_file_path),
&config_response.get_config_type(),
Some(config_response.get_child_id()),
config_response.get_child_id(),
message_box,
)
.await?;
Expand All @@ -357,12 +357,12 @@ impl ConfigUploadManager {
&mut self,
config_file_path: &Path,
config_type: &str,
child_device_id: Option<String>,
device_id: String,
message_box: &mut ConfigManagerMessageBox,
) -> Result<String, ConfigManagementError> {
let url = message_box
.c8y_http_proxy
.upload_config_file(config_file_path, config_type, child_device_id)
.upload_config_file(config_file_path, config_type, device_id)
.await?;
Ok(url)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/extensions/c8y_firmware_manager/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl FirmwareManagerConfig {
let firmware_update_response_topics =
TopicFilter::new_unchecked(FIRMWARE_UPDATE_RESPONSE_TOPICS);

let c8y_end_point = C8yEndPoint::new(&c8y_url, &tedge_device_id, "not used");
let c8y_end_point = C8yEndPoint::new(&c8y_url, &tedge_device_id);

Self {
tedge_device_id,
Expand Down
1 change: 1 addition & 0 deletions crates/extensions/c8y_http_proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repository = { workspace = true }
async-trait = "0.1"
c8y_api = { path = "../../core/c8y_api" }
download = { path = "../../common/download" }
http = "0.2"
log = "0.4"
mqtt_channel = { path = "../../common/mqtt_channel" }
tedge_actors = { path = "../../core/tedge_actors" }
Expand Down
Loading

1 comment on commit 106b84f

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

Passed Tests

Name ⏱️ Duration Suite
Define Child device 1 ID 0.005 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 3.842 s C8Y Child Alarms Rpi
Normal case when the child device already exists 0.742 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 1.158 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 65.146 s C8Y Child Alarms Rpi
Prerequisite Parent 14.208 s Child Conf Mgmt Plugin
Prerequisite Child 0.248 s Child Conf Mgmt Plugin
Child device bootstrapping 12.459 s Child Conf Mgmt Plugin
Snapshot from device 61.613 s Child Conf Mgmt Plugin
Child device config update 62.796 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 42.041 s Inotify Crate
Check lock file existence in default folder 1.5659999999999998 s Lock File
Check PID number in lock file 1.1320000000000001 s Lock File
Check PID number in lock file after restarting the services 1.71 s Lock File
Check starting same service twice 1.097 s Lock File
Switch off lock file creation 2.199 s Lock File
Set configuration when file exists 6.383 s Configuration Operation
Set configuration when file does not exist 5.277 s Configuration Operation
Set configuration with broken url 4.807 s Configuration Operation
Get configuration 5.766 s Configuration Operation
Get non existent configuration file 4.492 s Configuration Operation
Get non existent configuration type 4.477 s Configuration Operation
Update configuration plugin config via cloud 4.177 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace 3.9859999999999998 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite 3.552 s Configuration Operation
Update configuration plugin config via local filesystem copy 2.997 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) 2.857 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) 2.564 s Configuration Operation
Update the custom operation dynamically 50.86 s Dynamically Reload Operation
Custom operation successful 179.814 s Custom Operation
Custom operation fails 53.623 s Custom Operation
Successful firmware operation 59.015 s Firmware Operation
Install with empty firmware name 98.538 s Firmware Operation
Prerequisite Parent 16.08 s Firmware Operation Child Device
Prerequisite Child 7.743 s Firmware Operation Child Device
Child device firmware update 6.696 s Firmware Operation Child Device
Child device firmware update with cache 5.969 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 5.001 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json 0.951 s Inventory Update
Inventory includes the agent fragment with version information 0.988 s Inventory Update
Retrieve a JWT tokens 33.126 s Jwt Request
Mapper recovers and processes output of ongoing software update request 15.699 s Recover And Publish Software Update Message
Check running collectd 1.008 s Monitor Device Collectd
Is collectd publishing MQTT messages? 0.73 s Monitor Device Collectd
Check thin-edge monitoring 3.629 s Monitor Device Collectd
Check grouping of measurements 8.255 s Monitor Device Collectd
Main device registration 1.516 s Device Registration
Child device registration 1.752 s Device Registration
Supports restarting the device 43.614 s Restart Device
Update tedge version from previous using Cumulocity 65.368 s Tedge Self Update
Test if all c8y services are up 28.889 s Service Monitoring
Test if all c8y services are down 96.876 s Service Monitoring
Test if all c8y services are using configured service type 168.195 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 88.572 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 19.753 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 21.313 s Service Monitoring
Check health status of child device service 16.258 s Service Monitoring
Successful shell command with output 3.699 s Shell Operation
Check Successful shell command with literal double quotes output 3.356 s Shell Operation
Execute multiline shell command 3.249 s Shell Operation
Failed shell command 3.167 s Shell Operation
Software list should be populated during startup 34.75 s Software
Install software via Cumulocity 33.867 s Software
tedge-agent should terminate on SIGINT while downloading file 30.696 s Software
Software list should only show currently installed software and not candidates 38.596 s Software
Create and publish the tedge agent supported operations on mapper restart 34.552 s Mapper-Publishing-Agent-Supported-Ops
Agent gets the software list request once it comes up 24.206 s Mapper-Publishing-Agent-Supported-Ops
Child devices support sending simple measurements 1.16 s Child Device Telemetry
Child devices support sending custom measurements 1.065 s Child Device Telemetry
Child devices support sending custom events 1.024 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.002 s Child Device Telemetry
Child devices support sending custom alarms #1699 3.138 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 1.02 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 1.399 s Child Device Telemetry
Check retained alarms 210.118 s Raise Alarms
Thin-edge devices support sending simple measurements 3.27 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type 0.934 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements 0.871 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events 0.906 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type 0.873 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 2.914 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y 1.103 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic 1.02 s Thin-Edge Device Telemetry
thin-edge components support a custom config-dir location via flags 26.262 s Config Dir
Validate updated data path used by tedge-agent 0.171 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 10.071 s Data Path Config
Validate updated data path used by tedge-agent 0.426 s Log Path Config
Check existence of init directories 1.046 s Tedge Init
Tedge init and check creation of folders 1.173 s Tedge Init
Check ownership of the folders 0.772 s Tedge Init
Change user/group and check the change 0.911 s Tedge Init
Tedge init and check if default values are restored 0.914 s Tedge Init
Install thin-edge via apt 44.961 s Install Apt
Install latest via script (from current branch) 25.445 s Install Tedge
Install specific version via script (from current branch) 25.25 s Install Tedge
Install latest tedge via script (from main branch) 23.668 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 42.625 s Install Tedge
Support starting and stopping services 33.839 s Service-Control
Supports a reconnect 50.701 s Test-Commands
Supports disconnect then connect 32.619 s Test-Commands
Update unknown setting 36.223 s Test-Commands
Update known setting 20.541 s Test-Commands
It checks MQTT messages using a pattern 58.833 s Test-Mqtt
Stop c8y-configuration-plugin 0.133 s Health C8Y-Configuration-Plugin
Update the service file 0.132 s Health C8Y-Configuration-Plugin
Reload systemd files 0.318 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.133 s Health C8Y-Configuration-Plugin
Start watchdog service 10.235 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.075 s Health C8Y-Configuration-Plugin
Kill the PID 0.148 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 6.348 s Health C8Y-Configuration-Plugin
Compare PID change 0.003 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.072 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.085 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.11 s Health C8Y-Log-Plugin
Update the service file 0.102 s Health C8Y-Log-Plugin
Reload systemd files 0.351 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.105 s Health C8Y-Log-Plugin
Start watchdog service 10.122 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.113 s Health C8Y-Log-Plugin
Kill the PID 0.154 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 6.665 s Health C8Y-Log-Plugin
Compare PID change 0.013 s Health C8Y-Log-Plugin
Stop watchdog service 0.315 s Health C8Y-Log-Plugin
Remove entry from service file 0.172 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.137 s Health Tedge Mapper C8Y
Update the service file 0.12 s Health Tedge Mapper C8Y
Reload systemd files 0.273 s Health Tedge Mapper C8Y
Start tedge-mapper 0.073 s Health Tedge Mapper C8Y
Start watchdog service 10.167 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.074 s Health Tedge Mapper C8Y
Kill the PID 0.348 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 6.993 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.237 s Health Tedge Mapper C8Y
Remove entry from service file 0.181 s Health Tedge Mapper C8Y
Stop tedge-agent 0.201 s Health Tedge-Agent
Update the service file 0.175 s Health Tedge-Agent
Reload systemd files 0.216 s Health Tedge-Agent
Start tedge-agent 0.1 s Health Tedge-Agent
Start watchdog service 10.113 s Health Tedge-Agent
Check PID of tedge-mapper 0.155 s Health Tedge-Agent
Kill the PID 0.369 s Health Tedge-Agent
Recheck PID of tedge-agent 6.881 s Health Tedge-Agent
Compare PID change 0.001 s Health Tedge-Agent
Stop watchdog service 0.282 s Health Tedge-Agent
Remove entry from service file 0.182 s Health Tedge-Agent
Stop tedge-mapper-az 0.1 s Health Tedge-Mapper-Az
Update the service file 0.072 s Health Tedge-Mapper-Az
Reload systemd files 0.285 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.106 s Health Tedge-Mapper-Az
Start watchdog service 10.093 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.109 s Health Tedge-Mapper-Az
Kill the PID 0.381 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 6.65 s Health Tedge-Mapper-Az
Compare PID change 0 s Health Tedge-Mapper-Az
Stop watchdog service 0.222 s Health Tedge-Mapper-Az
Remove entry from service file 0.197 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.093 s Health Tedge-Mapper-Collectd
Update the service file 0.119 s Health Tedge-Mapper-Collectd
Reload systemd files 0.435 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.176 s Health Tedge-Mapper-Collectd
Start watchdog service 10.216 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.061 s Health Tedge-Mapper-Collectd
Kill the PID 0.127 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 6.323 s Health Tedge-Mapper-Collectd
Compare PID change 0 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.165 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.098 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 6.093 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.525 s MQTT health endpoints
c8y-configuration-plugin health status 5.355 s MQTT health endpoints
Publish on a local insecure broker 0.334 s Basic Pub Sub
Publish on a local secure broker 2.438 s Basic Pub Sub
Publish on a local secure broker with client authentication 2.414 s Basic Pub Sub
Publish events to subscribed topic 0.22 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to unsubscribed topic 5.223 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to subscribed topic 0.371 s Custom Sub Topics Tedge-Mapper-Az
Publish measurements to unsubscribed topic 5.258 s Custom Sub Topics Tedge-Mapper-Az
Publish events to subscribed topic 0.177 s Custom Sub Topics Tedge-Mapper-C8Y
Publish measurements to unsubscribed topic 5.205 s Custom Sub Topics Tedge-Mapper-C8Y
Check remote mqtt broker #1773 2.771 s Remote Mqtt Broker
Apply name filter 0.065 s Filter Packages List Output
Apply maintainer filter 0.081 s Filter Packages List Output
Apply both filters 0.084 s Filter Packages List Output
No filters 0.073 s Filter Packages List Output
Both filters but name filter as empty string 0.081 s Filter Packages List Output
Both filters but maintainer filter as empty string 0.063 s Filter Packages List Output
Both filters as empty string 0.074 s Filter Packages List Output
Wrong package name 0.078 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.086 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.258 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.207 s Tedge Connect Test
tedge_connect_test_negative 0.69 s Tedge Connect Test
tedge_connect_test_sm_services 7.333 s Tedge Connect Test
tedge_disconnect_test_sm_services 60.355 s Tedge Connect Test
Install thin-edge.io 18.835 s Call Tedge
call tedge -V 0.1 s Call Tedge
call tedge -h 0.121 s Call Tedge
call tedge -h -V 0.121 s Call Tedge
call tedge help 0.226 s Call Tedge
tedge config list 0.079 s Call Tedge Config List
tedge config list --all 0.093 s Call Tedge Config List
set/unset device.type 0.285 s Call Tedge Config List
set/unset device.key_path 0.484 s Call Tedge Config List
set/unset device.cert_path 0.39 s Call Tedge Config List
set/unset c8y.root_cert_path 0.282 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.478 s Call Tedge Config List
set/unset c8y.topics 0.475 s Call Tedge Config List
set/unset az.root_cert_path 0.613 s Call Tedge Config List
set/unset az.topics 0.309 s Call Tedge Config List
set/unset aws.topics 0.34 s Call Tedge Config List
set/unset aws.url 0.325 s Call Tedge Config List
set/unset aws.root_cert_path 0.244 s Call Tedge Config List
set/unset aws.mapper.timestamp 0.279 s Call Tedge Config List
set/unset az.mapper.timestamp 0.282 s Call Tedge Config List
set/unset mqtt.bind.address 0.284 s Call Tedge Config List
set/unset mqtt.bind.port 0.39 s Call Tedge Config List
set/unset http.bind.port 0.375 s Call Tedge Config List
set/unset tmp.path 0.503 s Call Tedge Config List
set/unset logs.path 0.363 s Call Tedge Config List
set/unset run.path 0.233 s Call Tedge Config List
set/unset firmware.child.update.timeout 0.302 s Call Tedge Config List
set/unset c8y.url 0.241 s Call Tedge Config List
set/unset az.url 0.236 s Call Tedge Config List
set/unset mqtt.external.bind.port 0.2 s Call Tedge Config List
mqtt.external.bind.address 0.195 s Call Tedge Config List
mqtt.external.bind.interface 0.205 s Call Tedge Config List
set/unset mqtt.external.ca_path 0.223 s Call Tedge Config List
set/unset mqtt.external.cert_file 0.242 s Call Tedge Config List
set/unset mqtt.external.key_file 0.232 s Call Tedge Config List
set/unset software.plugin.default 0.211 s Call Tedge Config List
Get Put Delete 1.345 s Http File Transfer Api
Set keys should return value on stdout 0.093 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.295 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.224 s Tedge Config Get
Set configuration via environment variables 0.522 s Tedge Config Get
Set configuration via environment variables for topics 0.207 s Tedge Config Get
Set unknown configuration via environment variables 0.111 s Tedge Config Get

Please sign in to comment.