Add a JWT file that must be present on the file system for the test suite to succeed
The problem is that the Confutils handlers for handling InputFile parameters have automatic checks that the supplied file must exist.
This commit is contained in:
parent
3615606914
commit
287ae79c87
|
@ -0,0 +1 @@
|
||||||
|
e59c86b378f1acd987a2598a53716082f6f2eb23b4ed4fcacc16d64e8dcb1884
|
|
@ -53,12 +53,12 @@ suite "EL Configuration":
|
||||||
url1Final2.get.roles == defaultEngineApiRoles
|
url1Final2.get.roles == defaultEngineApiRoles
|
||||||
|
|
||||||
let url2 = EngineApiUrlConfigValue.parseCmdArg(
|
let url2 = EngineApiUrlConfigValue.parseCmdArg(
|
||||||
"https://eth-node.io:2020#jwt-secret-file=jwt.hex")
|
"https://eth-node.io:2020#jwt-secret-file=tests/media/jwt.hex")
|
||||||
check:
|
check:
|
||||||
url2.url == "https://eth-node.io:2020"
|
url2.url == "https://eth-node.io:2020"
|
||||||
url2.roles.isNone
|
url2.roles.isNone
|
||||||
url2.jwtSecret.isNone
|
url2.jwtSecret.isNone
|
||||||
url2.jwtSecretFile.get.string == "jwt.hex"
|
url2.jwtSecretFile.get.string == "tests/media/jwt.hex"
|
||||||
|
|
||||||
let url3 = EngineApiUrlConfigValue.parseCmdArg(
|
let url3 = EngineApiUrlConfigValue.parseCmdArg(
|
||||||
"http://localhost/#roles=sync-deposits&jwt-secret=ee95565a2cc95553d4bf2185f58658939ba3074ce5695cbabfab4a1eaf7098ba")
|
"http://localhost/#roles=sync-deposits&jwt-secret=ee95565a2cc95553d4bf2185f58658939ba3074ce5695cbabfab4a1eaf7098ba")
|
||||||
|
@ -125,7 +125,7 @@ suite "EL Configuration":
|
||||||
|
|
||||||
[[el]]
|
[[el]]
|
||||||
url = "http://localhost:8585"
|
url = "http://localhost:8585"
|
||||||
jwt-secret-file = "jwt.hex"
|
jwt-secret-file = "tests/media/jwt.hex"
|
||||||
|
|
||||||
[[el]]
|
[[el]]
|
||||||
url = "eth-data.io"
|
url = "eth-data.io"
|
||||||
|
@ -143,7 +143,7 @@ suite "EL Configuration":
|
||||||
cfg.el[0].url == "http://localhost:8585"
|
cfg.el[0].url == "http://localhost:8585"
|
||||||
cfg.el[0].roles.isNone
|
cfg.el[0].roles.isNone
|
||||||
cfg.el[0].jwtSecret.isNone
|
cfg.el[0].jwtSecret.isNone
|
||||||
cfg.el[0].jwtSecretFile.get.string == "jwt.hex"
|
cfg.el[0].jwtSecretFile.get.string == "tests/media/jwt.hex"
|
||||||
|
|
||||||
cfg.el[1].url == "eth-data.io"
|
cfg.el[1].url == "eth-data.io"
|
||||||
cfg.el[1].roles == some({DepositSyncing, BlockProduction})
|
cfg.el[1].roles == some({DepositSyncing, BlockProduction})
|
||||||
|
|
Loading…
Reference in New Issue