Skip to content

Commit

Permalink
Fix tls1.0 test (kubernetes#8632)
Browse files Browse the repository at this point in the history
* Fix tls1.0 test

* fix algorithm
  • Loading branch information
rikatz authored and rchshld committed May 17, 2023
1 parent d885f12 commit 610f99f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions test/e2e/settings/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(), 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() {
Expand Down

0 comments on commit 610f99f

Please sign in to comment.