* [JSON leaf-list output single element leaf-list does not use array](https://github.com/clicon/clixon/issues/289)

This commit is contained in:
Olof hagsand 2021-11-29 13:43:10 +01:00
parent 339b744835
commit f4b35cb270
5 changed files with 30 additions and 30 deletions

View file

@ -386,7 +386,7 @@ function testrun()
fi
new "restconf get data type json"
expectpart "$(curl $CURLOPTS -X GET $proto://$addr/restconf/data/clixon-example:state/op=42)" 0 '{"clixon-example:op":"42"}'
expectpart "$(curl $CURLOPTS -X GET $proto://$addr/restconf/data/clixon-example:state/op=42)" 0 '{"clixon-example:op":\["42"\]}'
new "restconf get state operation"
# Cant get shell macros to work, inline matching from lib.sh
@ -398,7 +398,7 @@ function testrun()
fi
new "restconf get state operation type json"
expectpart "$(curl $CURLOPTS -X GET $proto://$addr/restconf/data/clixon-example:state/op=42)" 0 '{"clixon-example:op":"42"}'
expectpart "$(curl $CURLOPTS -X GET $proto://$addr/restconf/data/clixon-example:state/op=42)" 0 '{"clixon-example:op":\["42"\]}'
new "restconf get state operation type xml"
# Cant get shell macros to work, inline matching from lib.sh