crossplane: Add test to 'proxy_hide_header' directive (#11687)

Signed-off-by: Gabriel M. Dutra <me@dutralabs.xyz>
This commit is contained in:
Gabriel M. Dutra 2024-07-26 20:10:19 -03:00 committed by Ricardo Katz
parent 37ff5cee73
commit 2ef94a9e71

View file

@ -71,6 +71,7 @@ func TestCrossplaneTemplate(t *testing.T) {
t.Run("it should be able to marshall and unmarshall the default configuration", func(t *testing.T) {
tplConfig.Cfg.DefaultSSLCertificate = defaultCertificate
tplConfig.Cfg.EnableBrotli = true
tplConfig.Cfg.HideHeaders = []string{"x-fake-header", "x-another-fake-header"}
tpl.SetMimeFile(mimeFile.Name())
content, err := tpl.Write(tplConfig)