Set scheme to https with BackendTLSPolicy

Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
Romain 2025-03-07 16:56:04 +01:00 committed by GitHub
parent 474ab23fe9
commit 3c99135bf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 100 additions and 98 deletions

View file

@ -2284,10 +2284,10 @@ func TestLoadHTTPRoutes(t *testing.T) {
LoadBalancer: &dynamic.ServersLoadBalancer{
Servers: []dynamic.Server{
{
URL: "http://10.10.0.1:80",
URL: "https://10.10.0.1:80",
},
{
URL: "http://10.10.0.2:80",
URL: "https://10.10.0.2:80",
},
},
PassHostHeader: ptr.To(true),
@ -2355,10 +2355,10 @@ func TestLoadHTTPRoutes(t *testing.T) {
LoadBalancer: &dynamic.ServersLoadBalancer{
Servers: []dynamic.Server{
{
URL: "http://10.10.0.1:80",
URL: "https://10.10.0.1:80",
},
{
URL: "http://10.10.0.2:80",
URL: "https://10.10.0.2:80",
},
},
PassHostHeader: ptr.To(true),