You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,6 +64,9 @@ var _ = Describe("Test the creation of Backend http settings from Ingress defini
63
64
ServiceList: []*v1.Service{service},
64
65
DefaultAddressPoolID: to.StringPtr("xx"),
65
66
DefaultHTTPSettingsID: to.StringPtr("yy"),
67
+
EnvVariables: environment.EnvVariables{
68
+
SetDefaultHTTPSettingProbePortTo443: true,
69
+
},
66
70
}
67
71
68
72
// Action
@@ -72,8 +76,8 @@ var _ = Describe("Test the creation of Backend http settings from Ingress defini
72
76
73
77
for_, setting:=rangehttpSettings {
74
78
if*setting.Name==DefaultBackendHTTPSettingsName {
75
-
Expect(setting.Protocol).To(Equal(n.ApplicationGatewayProtocolHTTP), "default backend %s should have %s", *setting.Name, n.ApplicationGatewayProtocolHTTP)
76
-
Expect(probes[utils.GetLastChunkOfSlashed(*setting.Probe.ID)].Protocol).To(Equal(n.ApplicationGatewayProtocolHTTP), "default probe should have http")
79
+
Expect(setting.Protocol).To(Equal(n.ApplicationGatewayProtocolHTTPS), "default backend %s should have %s", *setting.Name, n.ApplicationGatewayProtocolHTTPS)
80
+
Expect(probes[utils.GetLastChunkOfSlashed(*setting.Probe.ID)].Protocol).To(Equal(n.ApplicationGatewayProtocolHTTPS), "default probe should have http")
77
81
continue
78
82
}
79
83
@@ -105,6 +109,9 @@ var _ = Describe("Test the creation of Backend http settings from Ingress defini
105
109
ServiceList: []*v1.Service{service},
106
110
DefaultAddressPoolID: to.StringPtr("xx"),
107
111
DefaultHTTPSettingsID: to.StringPtr("yy"),
112
+
EnvVariables: environment.EnvVariables{
113
+
SetDefaultHTTPSettingProbePortTo443: true,
114
+
},
108
115
}
109
116
110
117
// Action
@@ -114,8 +121,8 @@ var _ = Describe("Test the creation of Backend http settings from Ingress defini
114
121
115
122
for_, setting:=rangehttpSettings {
116
123
if*setting.Name==DefaultBackendHTTPSettingsName {
117
-
Expect(setting.Protocol).To(Equal(n.ApplicationGatewayProtocolHTTP), "default backend %s should have %s", *setting.Name, n.ApplicationGatewayProtocolHTTP)
118
-
Expect(probes[utils.GetLastChunkOfSlashed(*setting.Probe.ID)].Protocol).To(Equal(n.ApplicationGatewayProtocolHTTP), "default probe should have http")
124
+
Expect(setting.Protocol).To(Equal(n.ApplicationGatewayProtocolHTTPS), "default backend %s should have %s", *setting.Name, n.ApplicationGatewayProtocolHTTP)
125
+
Expect(probes[utils.GetLastChunkOfSlashed(*setting.Probe.ID)].Protocol).To(Equal(n.ApplicationGatewayProtocolHTTPS), "default probe should have http")
119
126
continue
120
127
}
121
128
@@ -142,6 +149,9 @@ var _ = Describe("Test the creation of Backend http settings from Ingress defini
142
149
ServiceList: []*v1.Service{service},
143
150
DefaultAddressPoolID: to.StringPtr("xx"),
144
151
DefaultHTTPSettingsID: to.StringPtr("yy"),
152
+
EnvVariables: environment.EnvVariables{
153
+
SetDefaultHTTPSettingProbePortTo443: true,
154
+
},
145
155
}
146
156
147
157
configBuilder.mem=memoization{}
@@ -154,7 +164,7 @@ var _ = Describe("Test the creation of Backend http settings from Ingress defini
154
164
155
165
for_, setting:=rangehttpSettings {
156
166
if*setting.Name==DefaultBackendHTTPSettingsName {
157
-
Expect(int32(80)).To(Equal(*setting.Port), "default backend port %d should be 80", *setting.Port)
167
+
Expect(int32(443)).To(Equal(*setting.Port), "default backend port %d should be 80", *setting.Port)
0 commit comments