We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 920e8d3 commit 08fc285Copy full SHA for 08fc285
1 file changed
tests/integration/test_haproxy_route.py
@@ -132,6 +132,7 @@ def test_haproxy_route_protocol_https(
132
"load_balancing_consistent_hashing": True,
133
"http_server_close": True,
134
"protocol": "https",
135
+ "allow_http": True,
136
}
137
]
138
),
@@ -153,3 +154,11 @@ def test_haproxy_route_protocol_https(
153
154
verify=False, # nosec: B501
155
)
156
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