PromucFlow_constructor/deploy/docker/route-tests/spec-3/custom-domain.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

30 lines
623 B
Plaintext

GET http://custom-domain.com
HTTP 302
Location: https://custom-domain.com/
Connection: close
[Asserts]
header "Server" not exists
GET http://custom-domain.com/random/path
HTTP 302
Location: https://custom-domain.com/random/path
Connection: close
[Asserts]
header "Server" not exists
GET https://custom-domain.com
HTTP 200
[Asserts]
header "Server" not exists
certificate "Issuer" == "O = mkcert development CA, OU = root@ar, CN = mkcert root@ar"
GET https://custom-domain.com/random/path
HTTP 200
[Asserts]
header "Server" not exists
GET https://custom-domain.com/static/x
HTTP 404
[Asserts]
header "Server" not exists