mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests/e2e: handle cipher suite mismatch error in ubuntu
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
e388a4a1a1
commit
6a16c7974a
@ -55,12 +55,19 @@ func cipherSuiteTestValid(cx ctlCtx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func cipherSuiteTestMismatch(cx ctlCtx) {
|
func cipherSuiteTestMismatch(cx ctlCtx) {
|
||||||
if err := cURLGet(cx.epc, cURLReq{
|
var err error
|
||||||
|
for _, exp := range []string{"alert handshake failure", "failed setting cipher list"} {
|
||||||
|
err = cURLGet(cx.epc, cURLReq{
|
||||||
endpoint: "/metrics",
|
endpoint: "/metrics",
|
||||||
expected: "alert handshake failure",
|
expected: exp,
|
||||||
metricsURLScheme: cx.cfg.metricsURLScheme,
|
metricsURLScheme: cx.cfg.metricsURLScheme,
|
||||||
ciphers: "ECDHE-RSA-DES-CBC3-SHA", // TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
|
ciphers: "ECDHE-RSA-DES-CBC3-SHA", // TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
|
||||||
}); err != nil {
|
})
|
||||||
|
if err == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
cx.t.Fatalf("failed get with curl (%v)", err)
|
cx.t.Fatalf("failed get with curl (%v)", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user