From 08c4a424cae470866bc53a04e8521604729f58cc Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Fri, 1 May 2020 21:51:53 +0200 Subject: [PATCH] remove enabled --- test/test_perf_state_only.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_perf_state_only.sh b/test/test_perf_state_only.sh index 8752abaa..7356f271 100755 --- a/test/test_perf_state_only.sh +++ b/test/test_perf_state_only.sh @@ -127,7 +127,7 @@ $TIMEFN $clixon_cli -1f $cfg show state xml 2>&1 | awk '/real/ {print $2}' new "netconf get test single req" sel="/ex:interfaces/ex:a[ex:name='foo']/ex:b/ex:interface[ex:name='e1']" msg="]]>]]>" -time -p expecteof "$clixon_netconf -qf $cfg" 0 "$msg" '^fooe1ex:ethtrueup]]>]]>$' +time -p expecteof "$clixon_netconf -qf $cfg" 0 "$msg" '^fooe1ex:ethup]]>]]>$' new "netconf get $perfreq single reqs" { time -p for (( i=0; i<$perfreq; i++ )); do @@ -139,7 +139,7 @@ done | $clixon_netconf -qf $cfg > /dev/null; } 2>&1 | awk '/real/ {print $2}' # RESTCONF get #echo "curl -s -X GET http://localhost/restconf/data/example:interfaces/a=foo/b/interface=e1" new "restconf get test single req" -time -p expecteq "$(curl -s -X GET http://localhost/restconf/data/example:interfaces/a=foo/b/interface=e1)" 0 '{"example:interface":[{"name":"e1","type":"ex:eth","enabled":true,"status":"up"}]} +time -p expecteq "$(curl -s -X GET http://localhost/restconf/data/example:interfaces/a=foo/b/interface=e1)" 0 '{"example:interface":[{"name":"e1","type":"ex:eth","status":"up"}]} ' | awk '/real/ {print $2}' new "restconf get $perfreq single reqs" @@ -157,7 +157,6 @@ new "cli get test single req" expectfn "$clixon_cli -1 -1f $cfg -l o show state xml interfaces a foo b interface e1" 0 '^ e1 eth - true up $'