diff options
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> { |