From 19aea1a260196593c82ac84954b7f844a2fd209b Mon Sep 17 00:00:00 2001 From: Albin Suresh Date: Tue, 12 Apr 2022 17:36:53 +0530 Subject: Issue #1030 Support c8y_UploadConfigFile operation --- crates/core/tedge_mapper/src/c8y/tests.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'crates/core/tedge_mapper/src') 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 { Ok("123".into()) } + + async fn upload_config_file( + &mut self, + _config_path: &Path, + _config_content: &str, + ) -> Result { + Ok("fake/upload/url".into()) + } } async fn start_c8y_mapper(mqtt_port: u16) -> Result, anyhow::Error> { -- cgit v1.2.3