Skip to content

Commit 08fc285

Browse files
committed
update integration test to test for allow HTTP
1 parent 920e8d3 commit 08fc285

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/integration/test_haproxy_route.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def test_haproxy_route_protocol_https(
132132
"load_balancing_consistent_hashing": True,
133133
"http_server_close": True,
134134
"protocol": "https",
135+
"allow_http": True,
135136
}
136137
]
137138
),
@@ -153,3 +154,11 @@ def test_haproxy_route_protocol_https(
153154
verify=False, # nosec: B501
154155
)
155156
assert response.text == "ok!"
157+
158+
# Make HTTP request to verify allow_http works
159+
response = requests.get(
160+
f"http://{haproxy_ip_address}",
161+
headers={"Host": TEST_EXTERNAL_HOSTNAME_CONFIG},
162+
timeout=5,
163+
)
164+
assert response.text == "ok!"

0 commit comments

Comments
 (0)