bbfdm/test/python-test-cases/json/ubus_add_method.json
2024-02-25 15:17:40 +01:00

107 lines
3.2 KiB
JSON

{
"object": "bbfdm",
"add": [
{
"description": "Add Object for '' path (proto usp)",
"input": {
"path": "",
"optional": {"format": "raw", "proto": "usp"}
},
"expected_error": 7026,
"output": {
"results": [
{
"path": "",
"fault": 7026,
"fault_msg": "Path is not present in the data model schema"
}
]
}
},
{
"description": "Add Object for '' path (proto cwmp)",
"input": {
"path": "",
"optional": {"format": "raw", "proto": "cwmp"}
},
"expected_error": 9005,
"output": {
"results": [
{
"path": "",
"fault": 9005,
"fault_msg": "Invalid parameter name"
}
]
}
},
{
"description": "Add Object for 'Device.ATM.' path (proto usp)",
"input": {
"path": "Device.ATM.",
"optional": {"format": "raw", "proto": "usp"}
},
"expected_error": 7026,
"output": {
"results": [
{
"path": "Device.ATM.",
"fault": 7026,
"fault_msg": "Path is not present in the data model schema"
}
]
}
},
{
"description": "Add Object for 'Device.ATM.' path (proto cwmp)",
"input": {
"path": "Device.ATM.",
"optional": {"format": "raw", "proto": "cwmp"}
},
"expected_error": 9005,
"output": {
"results": [
{
"path": "Device.ATM.",
"fault": 9005,
"fault_msg": "Invalid parameter name"
}
]
}
},
{
"description": "Add Object for 'Device.ATM.Link.' path (proto usp)",
"input": {
"path": "Device.ATM.Link.",
"optional": {"format": "raw", "proto": "usp"}
},
"expected_error": 0,
"output": {
"results": [
{
"path": "Device.ATM.Link.",
"data": "2"
}
]
}
},
{
"description": "Add Object for 'Device.ATM.Link.' path (proto cwmp)",
"input": {
"path": "Device.ATM.Link.",
"optional": {"format": "raw", "proto": "cwmp"}
},
"expected_error": 0,
"output": {
"results": [
{
"path": "Device.ATM.Link.",
"data": "3"
}
]
}
}
]
}