bbfdm/test/python-test-cases/json/ubus_get_method.json
Amin Ben Romdhane 7c81a706e9 Get schema Test
2024-02-19 12:16:41 +01:00

93 lines
2.9 KiB
JSON

{
"object": "bbfdm",
"get": [
{
"description": "Get Value for '' path (proto usp)",
"input": {
"path": "",
"optional": {"format": "raw", "proto": "usp"}
},
"expected_error": 0,
"output": {}
},
{
"description": "Get Value for '' path (proto cwmp)",
"input": {
"path": "",
"optional": {"format": "raw", "proto": "cwmp"}
},
"expected_error": 0,
"output": {}
},
{
"description": "Get Value for 'Device.DeviceInfo.Manufacturer' path (proto usp)",
"input": {
"path": "Device.DeviceInfo.Manufacturer",
"optional": {"format": "raw", "proto": "usp"}
},
"expected_error": 0,
"output": {
"results": [
{
"path": "Device.DeviceInfo.Manufacturer",
"data": "iopsys",
"type": "xsd:string"
}
]
}
},
{
"description": "Get Value for 'Device.DeviceInfo.Manufacturer' path (proto cwmp)",
"input": {
"path": "Device.DeviceInfo.Manufacturer",
"optional": {"format": "raw", "proto": "cwmp"}
},
"expected_error": 0,
"output": {
"results": [
{
"path": "Device.DeviceInfo.Manufacturer",
"data": "iopsys",
"type": "xsd:string"
}
]
}
},
{
"description": "Get Value for 'Device.DeviceInfo.Manufacture' path (proto usp)",
"input": {
"path": "Device.DeviceInfo.Manufacture",
"optional": {"format": "raw", "proto": "usp"}
},
"expected_error": 7026,
"output": {
"results": [
{
"path": "Device.DeviceInfo.Manufacture",
"fault": 7026,
"fault_msg": "Path is not present in the data model schema"
}
]
}
},
{
"description": "Get Value for 'Device.DeviceInfo.Manufacture' path (proto cwmp)",
"input": {
"path": "Device.DeviceInfo.Manufacture",
"optional": {"format": "raw", "proto": "cwmp"}
},
"expected_error": 9005,
"output": {
"results": [
{
"path": "Device.DeviceInfo.Manufacture",
"fault": 9005,
"fault_msg": "Invalid parameter name"
}
]
}
}
]
}