solution: support Basic Auth
This commit is contained in:
@@ -40,9 +40,11 @@ class UpstreamsConfigReaderSpec extends Specification {
|
||||
connection instanceof UpstreamsConfig.EthereumConnection
|
||||
with((UpstreamsConfig.EthereumConnection)connection) {
|
||||
rpc.url == new URI("https://mainnet.infura.io/v3/fa28c968191849c1aff541ad1d8511f2")
|
||||
rpc.auth != null
|
||||
rpc.auth instanceof UpstreamsConfig.BasicAuth
|
||||
with((UpstreamsConfig.BasicAuth)rpc.auth) {
|
||||
key == "4fc258fe41a68149c199ad8f281f2015"
|
||||
username == "4fc258fe41a68149c199ad8f281f2015"
|
||||
password == "1a68f20154fc258fe4149c199ad8f281"
|
||||
}
|
||||
ws == null
|
||||
}
|
||||
|
||||
@@ -25,4 +25,5 @@ upstreams:
|
||||
url: "https://mainnet.infura.io/v3/fa28c968191849c1aff541ad1d8511f2"
|
||||
auth:
|
||||
type: basic
|
||||
key: 4fc258fe41a68149c199ad8f281f2015
|
||||
username: 4fc258fe41a68149c199ad8f281f2015
|
||||
password: 1a68f20154fc258fe4149c199ad8f281
|
||||
Reference in New Issue
Block a user