1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-08-24 08:21:55 +00:00

tests: virtual proto

This commit is contained in:
Nicolas Duchon
2025-01-18 21:45:39 +01:00
parent a25b7ea1ef
commit 34a33a2255
6 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
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"