@@ -261,6 +261,40 @@ var _ = Describe("Server", func() {
261261 expectHTTPListener: false,
262262 expectTLSListener: true,
263263 }),
264+ Entry("with an ipv4 valid https bind address, and valid TLS config with CipherSuites", &newServerTableInput{
265+ opts: Opts{
266+ Handler: handler,
267+ SecureBindAddress: "127.0.0.1:0",
268+ TLS: &options.TLS{
269+ Key: &ipv4KeyDataSource,
270+ Cert: &ipv4CertDataSource,
271+ CipherSuites: []string{
272+ "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
273+ "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
274+ },
275+ },
276+ },
277+ expectedErr: nil,
278+ expectHTTPListener: false,
279+ expectTLSListener: true,
280+ }),
281+ Entry("with an ipv4 valid https bind address, and invalid TLS config with unknown CipherSuites", &newServerTableInput{
282+ opts: Opts{
283+ Handler: handler,
284+ SecureBindAddress: "127.0.0.1:0",
285+ TLS: &options.TLS{
286+ Key: &ipv4KeyDataSource,
287+ Cert: &ipv4CertDataSource,
288+ CipherSuites: []string{
289+ "TLS_RSA_WITH_RC4_64_SHA",
290+ "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
291+ },
292+ },
293+ },
294+ expectedErr: errors.New("error setting up TLS listener: could not parse cipher suites: unknown TLS cipher suite name specified \"TLS_RSA_WITH_RC4_64_SHA\""),
295+ expectHTTPListener: false,
296+ expectTLSListener: true,
297+ }),
264298 Entry("with an ipv6 valid http bind address", &newServerTableInput{
265299 opts: Opts{
266300 Handler: handler,
@@ -454,6 +488,40 @@ var _ = Describe("Server", func() {
454488 expectHTTPListener: false,
455489 expectTLSListener: true,
456490 }),
491+ Entry("with an ipv6 valid https bind address, and valid TLS config with CipherSuites", &newServerTableInput{
492+ opts: Opts{
493+ Handler: handler,
494+ SecureBindAddress: "[::1]:0",
495+ TLS: &options.TLS{
496+ Key: &ipv4KeyDataSource,
497+ Cert: &ipv4CertDataSource,
498+ CipherSuites: []string{
499+ "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
500+ "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
501+ },
502+ },
503+ },
504+ expectedErr: nil,
505+ expectHTTPListener: false,
506+ expectTLSListener: true,
507+ }),
508+ Entry("with an ipv6 valid https bind address, and invalid TLS config with unknown CipherSuites", &newServerTableInput{
509+ opts: Opts{
510+ Handler: handler,
511+ SecureBindAddress: "[::1]:0",
512+ TLS: &options.TLS{
513+ Key: &ipv4KeyDataSource,
514+ Cert: &ipv4CertDataSource,
515+ CipherSuites: []string{
516+ "TLS_RSA_WITH_RC4_64_SHA",
517+ "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
518+ },
519+ },
520+ },
521+ expectedErr: errors.New("error setting up TLS listener: could not parse cipher suites: unknown TLS cipher suite name specified \"TLS_RSA_WITH_RC4_64_SHA\""),
522+ expectHTTPListener: false,
523+ expectTLSListener: true,
524+ }),
457525 )
458526 })
459527