remove test code from config/options_test.go (#5423)

This commit is contained in:
Joe Kralicky 2025-01-14 14:00:38 -05:00 committed by GitHub
parent 6502d68162
commit e5ede2d167
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -978,17 +978,6 @@ func TestOptions_ApplySettings(t *testing.T) {
})
}
func TestXXX(t *testing.T) {
dir, _ := os.MkdirTemp("", "asdf")
t.Log(dir)
for i := 1; i <= 100; i++ {
crt, _ := cryptutil.GenerateCertificate(nil, fmt.Sprintf("route%d.localhost.pomerium.io", i))
crtBytes, keyBytes, _ := cryptutil.EncodeCertificate(crt)
os.WriteFile(fmt.Sprintf("%s/%d.crt", dir, i), crtBytes, 0o644)
os.WriteFile(fmt.Sprintf("%s/%d.key", dir, i), keyBytes, 0o600)
}
}
func TestOptions_GetSetResponseHeaders(t *testing.T) {
t.Run("lax", func(t *testing.T) {
options := NewDefaultOptions()