Fix tests according HTTPS for origin urls

This commit is contained in:
Artem Bilan
2019-03-20 11:24:44 -04:00
parent fd30d1b48b
commit c9e5f99de5
5 changed files with 9 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
handshake-handler="handshakeHandler"
handshake-interceptors="handshakeInterceptor"
decorator-factories="decoratorFactory"
allowed-origins="http://www.foo.com/">
allowed-origins="https://foo.com">
<int-websocket:sockjs client-library-url="https://foo.sock.js"
disconnect-delay="4000"
heartbeat-time="30000"

View File

@@ -159,7 +159,7 @@ public class WebSocketParserTests {
assertThat(TestUtils.getPropertyValue(this.serverWebSocketContainer, "sendTimeLimit")).isEqualTo(100);
assertThat(TestUtils.getPropertyValue(this.serverWebSocketContainer, "sendBufferSizeLimit")).isEqualTo(100000);
assertThat(TestUtils.getPropertyValue(this.serverWebSocketContainer, "origins", String[].class))
.isEqualTo(new String[] { "http://foo.com" });
.isEqualTo(new String[] { "https://foo.com" });
WebSocketHandlerDecoratorFactory[] decoratorFactories =
TestUtils.getPropertyValue(this.serverWebSocketContainer, "decoratorFactories",