-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: SslConfiguration::setProtocol (#9118)
* bug: SslConfiguration::setProtocol * test: Deflake the BinaryWebSocketSpec (#8725) --------- Co-authored-by: Tim Yates <tim.yates@gmail.com>
- Loading branch information
Showing
5 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
http/src/test/groovy/io/micronaut/http/ssl/SslConfigurationSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.micronaut.http.ssl | ||
|
||
import spock.lang.Specification | ||
|
||
class SslConfigurationSpec extends Specification { | ||
|
||
void "setProtocol should override protocol"() { | ||
given: | ||
SslConfiguration configuration = new SslConfiguration() | ||
|
||
expect: | ||
configuration.protocol.isPresent() | ||
"TLS" == configuration.protocol.get() | ||
|
||
when: | ||
configuration.protocol = "foo" | ||
|
||
then: | ||
configuration.protocol.isPresent() | ||
"foo" == configuration.protocol.get() | ||
} | ||
|
||
} |