test_docker_compose.py: Test the port publish feature
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 13 May 2021 21:03:52 +0000 (23:03 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 14 May 2021 20:59:58 +0000 (22:59 +0200)
commit4915b692c84711aa9b7b2d5ea436e4b53d7215bc
tree9c7803346c799cd95ba5c8cb18a2bbb451dc035b
parent2fd33900f50f6df058263582fba0b0e7c0367996
test_docker_compose.py: Test the port publish feature

Extend docker_test() to expose a random (8888) port to verify that doesn't
fail, and extend the docker-compose test to run the busybox httpd in the
background, expose that as port 80 and verify that /etc/resolv.conf could be
fetched by wget.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/testing/conf/docker-compose.yml
support/testing/tests/package/test_docker_compose.py