|
146 | 146 |
|
147 | 147 | message " Stop containers " |
148 | 148 | docker stop http-echo-tests |
| 149 | +sleep 5 |
149 | 150 |
|
150 | 151 | message " Start container with different internal ports " |
151 | 152 | docker run -d --rm -e HTTP_PORT=8888 -e HTTPS_PORT=9999 --name http-echo-tests -p 8080:8888 -p 8443:9999 -t mendhak/http-https-echo |
|
179 | 180 |
|
180 | 181 | message " Stop containers " |
181 | 182 | docker stop http-echo-tests |
| 183 | +sleep 5 |
182 | 184 |
|
183 | 185 | message " Start container with empty responses " |
184 | 186 | docker run -d --rm -e ECHO_BACK_TO_CLIENT=false --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo |
|
195 | 197 |
|
196 | 198 | message " Stop containers " |
197 | 199 | docker stop http-echo-tests |
| 200 | +sleep 5 |
198 | 201 |
|
199 | 202 | message " Start container with response body only " |
200 | 203 | docker run -d --rm --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo |
|
212 | 215 |
|
213 | 216 | message " Stop containers " |
214 | 217 | docker stop http-echo-tests |
| 218 | +sleep 5 |
215 | 219 |
|
216 | 220 | message " Start container with JWT_HEADER " |
217 | 221 | docker run -d --rm -e JWT_HEADER=Authentication --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo |
|
231 | 235 |
|
232 | 236 | message " Stop containers " |
233 | 237 | docker stop http-echo-tests |
| 238 | +sleep 5 |
234 | 239 |
|
235 | 240 |
|
236 | 241 | message " Start container with LOG_IGNORE_PATH " |
|
268 | 273 |
|
269 | 274 | message " Stop containers " |
270 | 275 | docker stop http-echo-tests |
| 276 | +sleep 5 |
271 | 277 |
|
272 | 278 | message " Start container with LOG_WITHOUT_NEWLINE " |
273 | 279 | docker run -d --rm -e LOG_WITHOUT_NEWLINE=1 --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo |
|
287 | 293 |
|
288 | 294 | message " Stop containers " |
289 | 295 | docker stop http-echo-tests |
| 296 | +sleep 5 |
290 | 297 |
|
291 | 298 | message " Check that container is running as a NON ROOT USER by default" |
292 | 299 | docker run -d --name http-echo-tests --rm mendhak/http-https-echo |
|
303 | 310 |
|
304 | 311 | message " Stop containers " |
305 | 312 | docker stop http-echo-tests |
| 313 | +sleep 5 |
306 | 314 |
|
307 | 315 | message " Check that container is running as user different that the user defined in image" |
308 | 316 | IMAGE_USER="$(docker image inspect mendhak/http-https-echo -f '{{ .ContainerConfig.User }}')" |
|
323 | 331 |
|
324 | 332 | message " Stop containers " |
325 | 333 | docker stop http-echo-tests |
| 334 | +sleep 5 |
326 | 335 |
|
327 | 336 | message " Check that mTLS server responds with client certificate details" |
328 | 337 | # Generate a new self signed cert locally |
|
363 | 372 |
|
364 | 373 | message " Stop containers " |
365 | 374 | docker stop http-echo-tests |
| 375 | +sleep 5 |
366 | 376 |
|
367 | 377 | message " Check that SSL certificate and private key are loaded from custom location" |
368 | 378 | cert_common_name="server.example.net" |
|
396 | 406 |
|
397 | 407 | message " Stop containers " |
398 | 408 | docker stop http-echo-tests |
| 409 | +sleep 5 |
399 | 410 |
|
400 | 411 | message " Check that environment variables returned in response if enabled" |
401 | 412 | docker run -d --rm -e ECHO_INCLUDE_ENV_VARS=1 --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo |
|
412 | 423 |
|
413 | 424 | message " Stop containers " |
414 | 425 | docker stop http-echo-tests |
| 426 | +sleep 5 |
415 | 427 |
|
416 | 428 | message " Check that environment variables are not present in response by default" |
417 | 429 | docker run -d --rm --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo |
|
428 | 440 |
|
429 | 441 | message " Stop containers " |
430 | 442 | docker stop http-echo-tests |
| 443 | +sleep 5 |
431 | 444 |
|
432 | 445 | popd |
433 | 446 | rm -rf testarea |
|
0 commit comments