mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-04 13:41:18 +02:00
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user