* [Need an option to disable restconf mandatory action of overwriting startup_db #230](https://github.com/clicon/clixon/issues/230)

* Disable RFC 8040 mandatory copy of running to startup after commit
* Rename CLICON_RESTCONF_INSTALL_DIR -> CLICON_RESTCONF_INSTALLDIR
This commit is contained in:
Olof hagsand 2021-05-25 11:07:41 +02:00
parent 60c9172d21
commit 5b39418e92
8 changed files with 53 additions and 25 deletions

View file

@ -66,16 +66,18 @@ function testrun(){
start_backend -s init -f $cfg -y $fyang $option
fi
new "waiting"
new "wait backend"
wait_backend
new "kill old restconf daemon"
stop_restconf_pre
if [ $RC -ne 0 ]; then
new "kill old restconf daemon"
stop_restconf_pre
new "start restconf daemon"
start_restconf -f $cfg -y $fyang $option
new "start restconf daemon"
start_restconf -f $cfg -y $fyang $option
fi
new "waiting"
new "wait restconf"
wait_restconf
new "restconf put 42"
@ -90,9 +92,11 @@ function testrun(){
new "restconf delete 42"
expectpart "$(curl $CURLOPTS -X DELETE $RCPROTO://localhost/restconf/data/example:x/y=42)" 0 "HTTP/1.1 204 No Content"
new "Kill restconf daemon"
stop_restconf
if [ $RC -ne 0 ]; then
new "Kill restconf daemon"
stop_restconf
fi
if [ $BE -ne 0 ]; then
new "Kill backend"
# Check if premature kill