1
0
Fork 0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-05-06 15:46:09 +02:00

tests: display container version

This commit is contained in:
Nicolas Duchon 2022-01-11 22:53:39 +01:00
parent fbf37456d0
commit e22ae4a6fd
No known key found for this signature in database
GPG Key ID: EA3151C66A4D79E7
2 changed files with 7 additions and 2 deletions

View File

@ -6,10 +6,10 @@ build-webserver:
docker build -t web test/requirements/web
build-nginx-proxy-test-debian:
docker build -t nginxproxy/nginx-proxy:test .
docker build --build-arg NGINX_PROXY_VERSION="test" -t nginxproxy/nginx-proxy:test .
build-nginx-proxy-test-alpine:
docker build -f Dockerfile.alpine -t nginxproxy/nginx-proxy:test .
docker build --build-arg NGINX_PROXY_VERSION="test" -f Dockerfile.alpine -t nginxproxy/nginx-proxy:test .
test-debian: build-webserver build-nginx-proxy-test-debian
test/pytest.sh

View File

@ -22,3 +22,8 @@ def test_forwards_to_web2(docker_compose, nginxproxy):
def test_ipv6_is_disabled_by_default(docker_compose, nginxproxy):
with pytest.raises(ConnectionError):
nginxproxy.get("http://nginx-proxy/port", ipv6=True)
def test_container_version_is_displayed(docker_compose, nginxproxy):
conf = nginxproxy.get_conf().decode('ASCII')
assert "# nginx-proxy version : test" in conf