diff --git a/kuksa_databroker/README.md b/kuksa_databroker/README.md index 801a52ad..08d12c72 100644 --- a/kuksa_databroker/README.md +++ b/kuksa_databroker/README.md @@ -118,7 +118,7 @@ Currently, to run databroker-cli (see below), you do need to change the port it ## Test the Databroker using CLI -The databroker supports both of ```sdv.databroker.v1``` and ```kuksa.val.v1``` as an API. Per default the databroker-cli uses the ```sdv.databroker.v1``` interface. To change it use ```--protocol``` option when starting. Chosse eihter one of ```kuksa-val-v1``` and ```sdv-databroker-v1```. +The databroker supports both of ```sdv.databroker.v1``` and ```kuksa.val.v1``` as an API. Per default the databroker-cli uses the ```sdv.databroker.v1``` interface. To change it use ```--protocol``` option when starting. Chosse either one of ```kuksa-val-v1``` and ```sdv-databroker-v1```. Run the cli with: diff --git a/kuksa_databroker/databroker-cli/src/kuksa_cli.rs b/kuksa_databroker/databroker-cli/src/kuksa_cli.rs index 478cd0c6..ff550785 100644 --- a/kuksa_databroker/databroker-cli/src/kuksa_cli.rs +++ b/kuksa_databroker/databroker-cli/src/kuksa_cli.rs @@ -1190,22 +1190,23 @@ mod test { #[test] fn test_entry_path_completion() { #[allow(unused_mut, unused_assignments)] - let mut metadata = Vec::new(); - metadata.push(proto::v1::DataEntry { - path: "Vehicle.Test.Test1".into(), - value: None, - actuator_target: None, - metadata: Some(proto::v1::Metadata { - data_type: proto::v1::DataType::Boolean.into(), - entry_type: proto::v1::EntryType::Sensor.into(), - comment: None, - deprecation: None, - unit: None, - value_restriction: None, - entry_specific: None, - description: Some("".to_string()), - }), - }); + let mut metadata = vec![ + proto::v1::DataEntry { + path: "Vehicle.Test.Test1".into(), + value: None, + actuator_target: None, + metadata: Some(proto::v1::Metadata { + data_type: proto::v1::DataType::Boolean.into(), + entry_type: proto::v1::EntryType::Sensor.into(), + comment: None, + deprecation: None, + unit: None, + value_restriction: None, + entry_specific: None, + description: Some("".to_string()), + }), + } + ]; metadata.push(proto::v1::DataEntry { path: "Vehicle.AnotherTest.AnotherTest1".into(), value: None,