Skip to content

Commit

Permalink
Add http request test to annotaion ssl cipher test (#7431)
Browse files Browse the repository at this point in the history
Signed-off-by: Bhumij Gupta <[email protected]>
  • Loading branch information
bhumijgupta authored Aug 5, 2021
1 parent 3a1ab7c commit eb5c38d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/e2e/annotations/sslciphers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package annotations

import (
"net/http"
"strings"

"github.com/onsi/ginkgo"
Expand Down Expand Up @@ -46,5 +47,11 @@ var _ = framework.DescribeAnnotation("ssl-ciphers", func() {
return strings.Contains(server, "ssl_ciphers ALL:!aNULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;") &&
strings.Contains(server, "ssl_prefer_server_ciphers off;")
})
f.HTTPTestClient().
GET("/something").
WithURL(f.GetURL(framework.HTTPS)).
WithHeader("Host", host).
Expect().
Status(http.StatusOK)
})
})

0 comments on commit eb5c38d

Please sign in to comment.