From 853e6734a5ad546a226159c4b86d0ef6ed0ffbc7 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 7 Jul 2020 16:53:54 +0200 Subject: [PATCH] stream curl cant handle -Si flags --- test/test_stream.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_stream.sh b/test/test_stream.sh index 021306bf..2017bbfc 100755 --- a/test/test_stream.sh +++ b/test/test_stream.sh @@ -185,7 +185,9 @@ sleep 1 # Restconf stream subscription RFC8040 Sec 6.3 # Start Subscription w error new "restconf monitor event nonexist stream" -expectwait "curl $CURLOPTS -X GET -H \"Accept: text/event-stream\" -H \"Cache-Control: no-cache\" -H \"Connection: keep-alive\" $RCPROTO://localhost/streams/NOTEXIST" 0 'applicationinvalid-valueerrorNo such stream' 2 +# Note cant use -S or -i here, the former dont know, latter because expectwait cant take +# partial returns like expectpart can +expectwait "curl -sk -X GET -H \"Accept: text/event-stream\" -H \"Cache-Control: no-cache\" -H \"Connection: keep-alive\" $RCPROTO://localhost/streams/NOTEXIST" 0 'applicationinvalid-valueerrorNo such stream' 2 # 2a) start subscription 8s - expect 1-2 notifications new "2a) start subscriptions 8s - expect 1-2 notifications"