restconf dont support patch and put fully
This commit is contained in:
parent
7bda16eed5
commit
072cdb6bb0
1 changed files with 6 additions and 5 deletions
|
|
@ -56,13 +56,14 @@ $'
|
||||||
new "Re-Delete eth0 using none should generate error"
|
new "Re-Delete eth0 using none should generate error"
|
||||||
expectfn 'curl -sX DELETE http://localhost/restconf/data/interfaces/interface=eth0' "Not Found"
|
expectfn 'curl -sX DELETE http://localhost/restconf/data/interfaces/interface=eth0' "Not Found"
|
||||||
|
|
||||||
return
|
if false; then # XXX restconf dont support patch and put fully
|
||||||
|
|
||||||
new "restconf PATCH config"
|
new "restconf PATCH config"
|
||||||
expectfn 'curl -sX PATCH -d {"type":"eth"} http://localhost/restconf/data/interfaces/interface=eth4' ""
|
expectfn 'curl -sX PATCH -d {"type":"eth"} http://localhost/restconf/data/interfaces/interface=eth4' ""
|
||||||
|
|
||||||
new "restconf PUT"
|
new "restconf PUT"
|
||||||
expectfn 'curl -sX PUT -d {"type":"eth"} http://localhost/restconf/data/interfaces/interface=eth5' ""
|
expectfn 'curl -sX PUT -d {"type":"eth"} http://localhost/restconf/data/interfaces/interface=eth5' ""
|
||||||
|
fi
|
||||||
|
|
||||||
new "Kill restconf daemon"
|
new "Kill restconf daemon"
|
||||||
#sudo pkill -u www-data clixon_restconf
|
#sudo pkill -u www-data clixon_restconf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue