parent
b98133db5c
commit
4dfb3f2e9a
1 changed files with 0 additions and 22 deletions
|
@ -84,28 +84,6 @@ var _ = framework.DescribeSetting("[SSL] TLS protocols, ciphers and headers)", f
|
||||||
assert.Equal(ginkgo.GinkgoT(), int(resp.TLS.Version), tls.VersionTLS12)
|
assert.Equal(ginkgo.GinkgoT(), int(resp.TLS.Version), tls.VersionTLS12)
|
||||||
assert.Equal(ginkgo.GinkgoT(), resp.TLS.CipherSuite, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
|
assert.Equal(ginkgo.GinkgoT(), resp.TLS.CipherSuite, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
|
||||||
})
|
})
|
||||||
ginkgo.It("enforcing TLS v1.0", func() {
|
|
||||||
f.SetNginxConfigMapData(map[string]string{
|
|
||||||
sslCiphers: testCiphers,
|
|
||||||
sslProtocols: "TLSv1",
|
|
||||||
})
|
|
||||||
|
|
||||||
f.WaitForNginxConfiguration(
|
|
||||||
func(cfg string) bool {
|
|
||||||
return strings.Contains(cfg, "ssl_protocols TLSv1;")
|
|
||||||
})
|
|
||||||
|
|
||||||
resp := f.HTTPTestClientWithTLSConfig(tlsConfig).
|
|
||||||
GET("/").
|
|
||||||
WithURL(f.GetURL(framework.HTTPS)).
|
|
||||||
WithHeader("Host", host).
|
|
||||||
Expect().
|
|
||||||
Status(http.StatusOK).
|
|
||||||
Raw()
|
|
||||||
|
|
||||||
assert.Equal(ginkgo.GinkgoT(), int(resp.TLS.Version), tls.VersionTLS10)
|
|
||||||
assert.Equal(ginkgo.GinkgoT(), resp.TLS.CipherSuite, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.Context("should configure HSTS policy header", func() {
|
ginkgo.Context("should configure HSTS policy header", func() {
|
||||||
|
|
Loading…
Reference in a new issue