mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-02 23:05:46 +00:00
test: fix: Rename new test files
This commit is contained in:
committed by
Nicolas Duchon
parent
2509fc1076
commit
7ede0fa4b9
14
test/test_internal/test_internal-per-vpath.py
Normal file
14
test/test_internal/test_internal-per-vpath.py
Normal file
@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
|
||||
def test_network_web1(docker_compose, nginxproxy):
|
||||
r = nginxproxy.get("http://nginx-proxy.local/web1/port")
|
||||
assert r.status_code == 200
|
||||
assert r.text == "answer from port 81\n"
|
||||
assert "X-network" in r.headers
|
||||
assert "internal" == r.headers["X-network"]
|
||||
|
||||
def test_network_web2(docker_compose, nginxproxy):
|
||||
r = nginxproxy.get("http://nginx-proxy.local/web2/port")
|
||||
assert r.status_code == 200
|
||||
assert r.text == "answer from port 82\n"
|
||||
assert "X-network" not in r.headers
|
Reference in New Issue
Block a user