File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -317,11 +317,30 @@ else
317
317
fi
318
318
319
319
320
+ message " Stop containers "
321
+ docker stop http-echo-tests
322
+ sleep 5
323
+
324
+ message " Start container with LOG_IGNORE_PATH (ignore all paths) "
325
+ docker run -d --rm -e LOG_IGNORE_PATH=" .*" --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:testing
326
+ sleep 5
327
+ curl -s -k -X POST -d " banana" https://localhost:8443/ > /dev/null
328
+
329
+ if [ $( docker logs http-echo-tests | wc -l) == 2 ] && \
330
+ ! [ $( docker logs http-echo-tests | grep banana) ]
331
+ then
332
+ passed " LOG_IGNORE_PATH ignored all paths"
333
+ else
334
+ failed " LOG_IGNORE_PATH failed"
335
+ docker logs http-echo-tests
336
+ exit 1
337
+ fi
320
338
321
339
message " Stop containers "
322
340
docker stop http-echo-tests
323
341
sleep 5
324
342
343
+
325
344
message " Start container with DISABLE_REQUEST_LOGS "
326
345
docker run -d --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:testing
327
346
sleep 5
You can’t perform that action at this time.
0 commit comments