PromucFlow_constructor/deploy/docker/route-tests/common/index-html-response.hurl
Shrikant Sharat Kandula e6ebfbaea1
fix: Remove Server header and allow all on port 80 (#29585)
Another attempt at #29550, which was reverted. Fallback is not happening
if cert provisioning fails _despite_ having the correct header. But with
the changes in this PR, since we'll listen on `:80`, fallback _will_
happen when cert provisioning fails due to incorrect domain
configuration.

We're also adding [Hurl](https://hurl.dev) based tests. They're not run
in any CI yet. That'll come in soon.
2023-12-18 09:44:31 +05:30

42 lines
863 B
Plaintext

GET http://localhost
HTTP 200
Content-Type: text/html; charset=utf-8
[Asserts]
header "Server" not exists
body == "index.html body"
GET http://127.0.0.1
HTTP 200
Content-Type: text/html; charset=utf-8
[Asserts]
header "Server" not exists
body == "index.html body"
GET http://local.com
HTTP 200
Content-Type: text/html; charset=utf-8
[Asserts]
header "Server" not exists
body == "index.html body"
GET http://localhost/some/non/handled/path
HTTP 200
Content-Type: text/html; charset=utf-8
[Asserts]
header "Server" not exists
body == "index.html body"
GET http://127.0.0.1/some/non/handled/path
HTTP 200
Content-Type: text/html; charset=utf-8
[Asserts]
header "Server" not exists
body == "index.html body"
GET http://local.com/some/non/handled/path
HTTP 200
Content-Type: text/html; charset=utf-8
[Asserts]
header "Server" not exists
body == "index.html body"