@@ -261,6 +261,40 @@ var _ = Describe("Server", func() {
261 expectHTTPListener: false,
261 expectHTTPListener: false,
262 expectTLSListener: true,
262 expectTLSListener: true,
264+ Entry("with an ipv4 valid https bind address, and valid TLS config with CipherSuites", &newServerTableInput{
267+ SecureBindAddress: "127.0.0.1:0",
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",
278+ expectHTTPListener: false,
279+ expectTLSListener: true,
281+ Entry("with an ipv4 valid https bind address, and invalid TLS config with unknown CipherSuites", &newServerTableInput{
284+ SecureBindAddress: "127.0.0.1:0",
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",
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,
264 Entry("with an ipv6 valid http bind address", &newServerTableInput{
298 Entry("with an ipv6 valid http bind address", &newServerTableInput{
265 opts: Opts{
299 opts: Opts{
266 Handler: handler,
300 Handler: handler,
@@ -454,6 +488,40 @@ var _ = Describe("Server", func() {
454 expectHTTPListener: false,
488 expectHTTPListener: false,
455 expectTLSListener: true,
489 expectTLSListener: true,
491+ Entry("with an ipv6 valid https bind address, and valid TLS config with CipherSuites", &newServerTableInput{
494+ SecureBindAddress: "[::1]:0",
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",
505+ expectHTTPListener: false,
506+ expectTLSListener: true,
508+ Entry("with an ipv6 valid https bind address, and invalid TLS config with unknown CipherSuites", &newServerTableInput{
511+ SecureBindAddress: "[::1]:0",
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",
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,