diff options
author | Albin Suresh <albin.suresh@softwareag.com> | 2022-04-12 17:36:53 +0530 |
---|---|---|
committer | Albin Suresh <albin.suresh@softwareag.com> | 2022-04-12 18:02:39 +0530 |
commit | 19aea1a260196593c82ac84954b7f844a2fd209b (patch) | |
tree | 79f85e4414a840605ef706fcad52263bace2cb49 /crates/core/tedge_mapper/src | |
parent | 6ff7da30dc2d1979b237ac9b014f741b65bfef88 (diff) |
Issue #1030 Support c8y_UploadConfigFile operation
Diffstat (limited to 'crates/core/tedge_mapper/src')
-rw-r--r-- | crates/core/tedge_mapper/src/c8y/tests.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/core/tedge_mapper/src/c8y/tests.rs b/crates/core/tedge_mapper/src/c8y/tests.rs index bafe2b84..849c7563 100644 --- a/crates/core/tedge_mapper/src/c8y/tests.rs +++ b/crates/core/tedge_mapper/src/c8y/tests.rs @@ -18,7 +18,7 @@ use mqtt_channel::{Message, Topic}; use mqtt_tests::test_mqtt_server::MqttProcessHandler; use serde_json::json; use serial_test::serial; -use std::time::Duration; +use std::{path::Path, time::Duration}; use test_case::test_case; use tokio::task::JoinHandle; @@ -828,6 +828,14 @@ impl C8YHttpProxy for FakeC8YHttpProxy { ) -> Result<String, SMCumulocityMapperError> { Ok("123".into()) } + + async fn upload_config_file( + &mut self, + _config_path: &Path, + _config_content: &str, + ) -> Result<String, SMCumulocityMapperError> { + Ok("fake/upload/url".into()) + } } async fn start_c8y_mapper(mqtt_port: u16) -> Result<JoinHandle<()>, anyhow::Error> { |