- test: split perf_restconf into one with http/1 and one https/2

- typo: removed exit in test
This commit is contained in:
Olof hagsand 2022-02-13 14:24:37 +01:00
parent 10886a31a2
commit b7c0113331
5 changed files with 308 additions and 5 deletions

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
# Scaling/ performance tests
# CLI/Netconf/Restconf
# Scaling/ performance tests for non-ssl RESTCONF
# Lists (and leaf-lists)
# Add, get and delete entries
# Override default to use http/1.1
# Override default to use http/1.1, comment to use https/2
HAVE_LIBNGHTTP2=false
RCPROTO=http
# Magic line must be first in script (see README.md)
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
@ -127,7 +127,6 @@ expectpart "$(time -p ls)" 0
new "restconf write large config"
expectpart "$(time -p curl $CURLOPTS -X POST -H "Content-Type: application/yang-data+xml" $RCPROTO://localhost/restconf/data -d @$fdataxml )" 0 "HTTP/$HVER 201"
exit
new "Check running-db contents"
curl $CURLOPTS -X GET -H "Accept: application/yang-data+xml" $RCPROTO://localhost/restconf/data?content=config > $foutput
@ -261,6 +260,8 @@ rm -rf $dir
# Set by restconf_config
unset RESTCONFIG
unset HAVE_LIBNGHTTP2
unset RCPROTO
# unset conditional parameters
unset format