1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 09:48:14 +00:00
nginx-proxy/test/test_virtual-proto/test_virtual-proto.py

9 lines
317 B
Python
Raw Normal View History

2025-01-18 21:45:39 +01:00
import pytest
@pytest.mark.parametrize('subdomain', ['web1', 'web2', 'web3'])
def test_upstream_with_https_virtual_proto(docker_compose, nginxproxy, subdomain):
r = nginxproxy.get(f"http://{subdomain}.nginx-proxy.tld")
assert r.status_code == 200
assert r.text == f"This is {subdomain}.nginx-proxy.tld"