fix: static upstream tests

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig
2026-03-26 22:24:21 +01:00
parent 4a14ad0d34
commit da14399e03
+12 -12
View File
@@ -206,12 +206,12 @@ var _ = Describe("Legacy Options", func() {
URI: "",
Static: ptr.To(true),
StaticCode: &validStaticCode,
InsecureSkipTLSVerify: ptr.To(DefaultUpsteamInsecureSkipTLSVerify),
PassHostHeader: ptr.To(DefaultStaticPassHostHeader),
ProxyWebSockets: ptr.To(DefaultStaticProxyWebSockets),
FlushInterval: ptr.To(DefaultUpstreamFlushInterval),
Timeout: ptr.To(DefaultUpstreamTimeout),
DisableKeepAlives: ptr.To(DefaultUpstreamDisableKeepAlives),
InsecureSkipTLSVerify: ptr.To(false),
PassHostHeader: nil,
ProxyWebSockets: nil,
FlushInterval: nil,
Timeout: nil,
DisableKeepAlives: ptr.To(false),
}
invalidStatic := "static://abc"
@@ -222,12 +222,12 @@ var _ = Describe("Legacy Options", func() {
URI: "",
Static: ptr.To(true),
StaticCode: &invalidStaticCode,
InsecureSkipTLSVerify: ptr.To(DefaultUpsteamInsecureSkipTLSVerify),
PassHostHeader: ptr.To(DefaultStaticPassHostHeader),
ProxyWebSockets: ptr.To(DefaultStaticProxyWebSockets),
FlushInterval: ptr.To(DefaultUpstreamFlushInterval),
Timeout: ptr.To(DefaultUpstreamTimeout),
DisableKeepAlives: ptr.To(DefaultUpstreamDisableKeepAlives),
InsecureSkipTLSVerify: ptr.To(false),
PassHostHeader: nil,
ProxyWebSockets: nil,
FlushInterval: nil,
Timeout: nil,
DisableKeepAlives: ptr.To(false),
}
invalidHTTP := ":foo"