Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
Also removing links to the obsolete vehicle-model-python repository

Fixes things that seems to be obviously wrong,
resulting in that "velocitas init" fail or that
Removing dead config
  • Loading branch information
erikbosch committed Sep 6, 2024
1 parent bb166e5 commit 8a0c4f7
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 50 deletions.
2 changes: 1 addition & 1 deletion examples/array-datatype/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp
Expand Down
2 changes: 1 addition & 1 deletion examples/atomic-set/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"vehicleapp/setValue/request"
],
"writes": [
"vehicleapp/setValue/response",
"vehicleapp/setValue/response"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/atomic-set/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp, subscribe_topic
Expand Down
2 changes: 1 addition & 1 deletion examples/datapoint-set/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"vehicleapp/setSensor/request"
],
"writes": [
"vehicleapp/setValue/response",
"vehicleapp/setValue/response"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/datapoint-set/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp, subscribe_topic
Expand Down
38 changes: 0 additions & 38 deletions examples/dog-mode/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,6 @@
"manifestVersion": "v3",
"name": "dogmode",
"interfaces": [
{
"type": "vehicle-signal-interface",
"config": {
"src": "https://github.com/COVESA/vehicle_signal_specification/releases/download/v3.0/vss_rel_3.0.json",
"datapoints": {
"required": [
{
"path": "Vehicle.Cabin.AmbientAirTemperature",
"access": "read"
},
{
"path": "Vehicle.Cabin.DogMode",
"access": "read"
},
{
"path": "Vehicle.Cabin.DogModeTemperature",
"access": "read"
},
{
"path": "Vehicle.Powertrain.Battery.StateOfCharge.Current",
"access": "read"
}
]
}
}
},
{
"type": "grpc-interface",
"config": {
"src": "https://github.com/eclipse/kuksa.val.services/blob/v0.2.0/hvac_service/proto/sdv/edge/comfort/hvac/v1/hvac.proto",
"required": {
"methods": [
"SetAcStatus",
"SetTemperature"
]
}
}
},
{
"type": "pubsub",
"config": {
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic-rule/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk import config
from velocitas_sdk.config import Config, MiddlewareType
Expand Down
2 changes: 1 addition & 1 deletion examples/performance-subscribe/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import signal
from datetime import datetime

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.model import DataPoint
from velocitas_sdk.util.log import ( # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion examples/static-rule/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
]
}
}
},
}
]
}
2 changes: 1 addition & 1 deletion examples/static-rule/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp, subscribe_data_points
Expand Down
2 changes: 1 addition & 1 deletion examples/vdb-queries/AppManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
]
}
}
},
}
]
}
2 changes: 1 addition & 1 deletion examples/vdb-queries/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import logging
import signal

from sdv_model import Vehicle, vehicle # type: ignore
from vehicle import Vehicle, vehicle # type: ignore

from velocitas_sdk.vdb.subscriptions import DataPointReply
from velocitas_sdk.vehicle_app import VehicleApp
Expand Down
2 changes: 1 addition & 1 deletion requirements-links.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
git+https://github.com/eclipse-velocitas/vehicle-model-python.git@v0.3.0
# Pip dependencies specified by github links

0 comments on commit 8a0c4f7

Please sign in to comment.