solution: configuration for Websocket proxy
This commit is contained in:
@@ -30,6 +30,7 @@ class ProxyConfigReaderSpec extends Specification {
|
||||
|
||||
then:
|
||||
act.enabled
|
||||
act.websocketEnabled
|
||||
act.port == 8080
|
||||
act.host == '127.0.0.1'
|
||||
act.routes.size() == 1
|
||||
@@ -39,6 +40,17 @@ class ProxyConfigReaderSpec extends Specification {
|
||||
}
|
||||
}
|
||||
|
||||
def "Read proxy config with websocket disabled"() {
|
||||
setup:
|
||||
def config = this.class.getClassLoader().getResourceAsStream("dshackle-proxy-no-ws.yaml")
|
||||
when:
|
||||
def act = reader.read(config)
|
||||
|
||||
then:
|
||||
act.enabled
|
||||
!act.websocketEnabled
|
||||
}
|
||||
|
||||
def "Read proxy config with two elements"() {
|
||||
setup:
|
||||
def config = this.class.getClassLoader().getResourceAsStream("dshackle-proxy-two.yaml")
|
||||
|
||||
6
src/test/resources/dshackle-proxy-no-ws.yaml
Normal file
6
src/test/resources/dshackle-proxy-no-ws.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
proxy:
|
||||
port: 8080
|
||||
websocket: false
|
||||
routes:
|
||||
- id: ethereum
|
||||
blockchain: ethereum
|
||||
Reference in New Issue
Block a user