integration: update use of nodeconfigs in testproofs

This commit is contained in:
Mark Spanbroek 2024-02-27 11:32:55 +01:00
parent 489ef2360c
commit 59a4f648de
No known key found for this signature in database
GPG Key ID: FBE3E9548D427C00
1 changed files with 25 additions and 24 deletions

View File

@ -7,6 +7,7 @@ import ../contracts/deployment
import ../codex/helpers
import ../examples
import ./marketplacesuite
import ./nodeconfigs
export chronicles
@ -21,18 +22,18 @@ marketplacesuite "Hosts submit regular proofs":
# hardhat: HardhatConfig().withLogFile(),
clients:
CodexConfig()
.nodes(1)
CodexConfigs.init(nodes=1)
# .debug() # uncomment to enable console log output
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("node"),
.withLogTopics("node")
.some,
providers:
CodexConfig()
.nodes(1)
CodexConfigs.init(nodes=1)
# .debug() # uncomment to enable console log output
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("marketplace", "sales", "reservations", "node"),
.withLogTopics("marketplace", "sales", "reservations", "node")
.some,
):
let client0 = clients()[0].client
let totalPeriods = 50
@ -73,26 +74,26 @@ marketplacesuite "Simulate invalid proofs":
# hardhat: HardhatConfig().withLogFile(),
clients:
CodexConfig()
.nodes(1)
CodexConfigs.init(nodes=1)
# .debug() # uncomment to enable console log output
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("node"),
.withLogTopics("node")
.some,
providers:
CodexConfig()
.nodes(1)
.simulateProofFailuresFor(providerIdx=0, failEveryNProofs=1)
CodexConfigs.init(nodes=1)
.withSimulateProofFailures(idx=0, failEveryNProofs=1)
# .debug() # uncomment to enable console log output
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("marketplace", "sales", "reservations", "node"),
.withLogTopics("marketplace", "sales", "reservations", "node")
.some,
validators:
CodexConfig()
.nodes(1)
CodexConfigs.init(nodes=1)
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
# .debug() # uncomment to enable console log output
.withLogTopics("validator", "onchain", "ethers")
.some
):
let client0 = clients()[0].client
let totalPeriods = 50
@ -129,26 +130,26 @@ marketplacesuite "Simulate invalid proofs":
# hardhat: HardhatConfig().withLogFile(),
clients:
CodexConfig()
.nodes(1)
CodexConfigs.init(nodes=1)
# .debug() # uncomment to enable console log output
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("node"),
.withLogTopics("node")
.some,
providers:
CodexConfig()
.nodes(1)
.simulateProofFailuresFor(providerIdx=0, failEveryNProofs=3)
CodexConfigs.init(nodes=1)
.withSimulateProofFailures(idx=0, failEveryNProofs=3)
# .debug() # uncomment to enable console log output
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("marketplace", "sales", "reservations", "node"),
.withLogTopics("marketplace", "sales", "reservations", "node")
.some,
validators:
CodexConfig()
.nodes(1)
CodexConfigs.init(nodes=1)
# .debug()
.withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
.withLogTopics("validator", "onchain", "ethers")
.some
):
let client0 = clients()[0].client
let totalPeriods = 25