Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmittag committed Nov 3, 2023
1 parent 9591865 commit 0f7a7f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion kuksa_databroker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
33 changes: 17 additions & 16 deletions kuksa_databroker/databroker-cli/src/kuksa_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0f7a7f6

Please sign in to comment.