reversed logic

This commit is contained in:
chriss-de 2023-01-26 16:12:07 +01:00
parent 23dac1d95d
commit 621f8923ca
2 changed files with 2 additions and 2 deletions

View file

@ -473,7 +473,7 @@ http {
ssl_certificate {{ $cfg.DefaultSSLCertificate.PemFileName }}; ssl_certificate {{ $cfg.DefaultSSLCertificate.PemFileName }};
ssl_certificate_key {{ $cfg.DefaultSSLCertificate.PemFileName }}; ssl_certificate_key {{ $cfg.DefaultSSLCertificate.PemFileName }};
{{ if and (gt (len $cfg.CustomHTTPErrors) 0) (not $cfg.ProxyInterceptErrors) }} {{ if and $cfg.CustomHTTPErrors (not $cfg.DisableProxyInterceptErrors) }}
proxy_intercept_errors on; proxy_intercept_errors on;
{{ end }} {{ end }}

View file

@ -51,7 +51,7 @@ var _ = framework.DescribeAnnotation("disable-proxy-intercept-errors", func() {
return strings.Contains(serverConfig, fmt.Sprintf("server_name %s", host)) return strings.Contains(serverConfig, fmt.Sprintf("server_name %s", host))
}) })
ginkgo.By("turning on proxy_intercept_errors directive") ginkgo.By("turning off proxy_intercept_errors directive")
assert.NotContains(ginkgo.GinkgoT(), serverConfig, "proxy_intercept_errors on;") assert.NotContains(ginkgo.GinkgoT(), serverConfig, "proxy_intercept_errors on;")
}) })