solution: allows to disable upstream validation

This commit is contained in:
Igor Artamonov
2019-08-13 16:33:44 -04:00
parent 9f211232fd
commit 3957b8cf42
8 changed files with 110 additions and 32 deletions

View File

@@ -96,6 +96,22 @@ class UpstreamsConfigReaderSpec extends Specification {
}
}
def "Parse config with options"() {
setup:
def config = this.class.getClassLoader().getResourceAsStream("upstreams-options.yaml")
when:
def act = reader.read(config)
then:
act != null
act.upstreams.size() == 2
with(act.upstreams.get(0)) {
options.minPeers == 7
}
with(act.upstreams.get(1)) {
options.disableValidation == true
}
}
def "Post process for usual strings"() {
expect:
s == reader.postProcess(s)