[IOTDM-47] onem2m-simple-config:iplugin-cfg-put rpc shouldn t allow to use non existing plugin-name or plugin-instance Created: 19/Jan/17  Updated: 20/Nov/17  Resolved: 27/Feb/17

Status: Resolved
Project: iotdm
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Miroslav Kovac Assignee: Tomas Janciga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 7592
Priority: Normal

 Description   

Following request shouldn`t work because of plugin-name aaa which doesn`t exist. only Onem2mExample should work in there

POST
http://localhost:8181/restconf/operations/onem2m-simple-config:iplugin-cfg-put

{
"input": {
"plugin-name": "aaa",
"instance-name": "default",
"plugin-simple-config" : {
"key-val-list" : [

{ "cfg-key": "port", "cfg-val": "1000" }

]
}
}
}

neither should this one because of it`s instance name aaa

POST
http://localhost:8181/restconf/operations/onem2m-simple-config:iplugin-cfg-put

{
"input": {
"plugin-name": "Onem2mExample",
"instance-name": "aaa",
"plugin-simple-config" : {
"key-val-list" : [

{ "cfg-key": "port", "cfg-val": "1000" }

]
}
}
}



 Comments   
Comment by Tomas Janciga [ 27/Feb/17 ]

Fixed and added TC in 200_IoTDMInfraPlugins.robot: 9.09 Test onem2m-simple-config:iplugin-cfg-put to add wrong values and expect error

Generated at Wed Feb 07 20:05:02 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.