File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ curl -s -k -X POST -d "banana" https://localhost:8443/ping > /dev/null
142142if [ $( docker logs http-echo-tests | wc -l) == 1 ] && \
143143 ! [ $( docker logs http-echo-tests | grep banana) ]
144144then
145- passed " LOG_IGNORE_PATH ignored"
145+ passed " LOG_IGNORE_PATH ignored the /ping path "
146146else
147- failed " LOG_IGNORE_PATH was not ignored "
147+ failed " LOG_IGNORE_PATH failed "
148148 docker logs http-echo-tests
149149 exit 1
150150fi
153153message " Stop containers "
154154docker stop http-echo-tests
155155
156+ message " Start container with LOG_WITHOUT_NEWLINE "
157+ docker run -d --rm -e LOG_WITHOUT_NEWLINE=1 --name http-echo-tests -p 8080:80 -p 8443:443 -t mendhak/http-https-echo
158+ sleep 5
159+ curl -s -k -X POST -d " tiramisu" https://localhost:8443/ > /dev/null
160+
161+ if [ $( docker logs http-echo-tests | wc -l) == 3 ] && \
162+ [ $( docker logs http-echo-tests | grep tiramisu) ]
163+ then
164+ passed " LOG_WITHOUT_NEWLINE logged output in single line"
165+ else
166+ failed " LOG_WITHOUT_NEWLINE failed"
167+ docker logs http-echo-tests
168+ exit 1
169+ fi
170+
171+
172+ message " Stop containers "
173+ docker stop http-echo-tests
174+
175+
156176
157177popd
158178rm -rf testarea
You can’t perform that action at this time.
0 commit comments