use http RPC provider for clients in validation integration tests

This commit is contained in:
Marcin Czenko 2024-10-16 22:34:45 +02:00
parent c020faa8f2
commit a8234821b7
No known key found for this signature in database
GPG Key ID: 33DEA0C8E30937C0
1 changed files with 19 additions and 19 deletions

View File

@ -24,18 +24,19 @@ marketplacesuite "Validation":
clients: clients:
CodexConfigs.init(nodes=1) CodexConfigs.init(nodes=1)
# .debug() # uncomment to enable console log output .withEthProvider("http://localhost:8545")
.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 # .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
# .withLogTopics("node", "marketplace", "clock") # .withLogTopics("node", "marketplace", "clock")
# .withLogTopics("node", "purchases", "slotqueue", "market") .withLogTopics("node", "purchases", "slotqueue", "market")
.some, .some,
providers: providers:
CodexConfigs.init(nodes=1) CodexConfigs.init(nodes=1)
.withSimulateProofFailures(idx=0, failEveryNProofs=1) .withSimulateProofFailures(idx=0, failEveryNProofs=1)
# .debug() # uncomment to enable console log output .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 .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", "clock", "slotsbuilder") .withLogTopics("marketplace", "sales", "reservations", "node", "clock", "slotsbuilder")
.some, .some,
validators: validators:
@ -43,9 +44,9 @@ marketplacesuite "Validation":
.withValidationGroups(groups = 2) .withValidationGroups(groups = 2)
.withValidationGroupIndex(idx = 0, groupIndex = 0) .withValidationGroupIndex(idx = 0, groupIndex = 0)
.withValidationGroupIndex(idx = 1, groupIndex = 1) .withValidationGroupIndex(idx = 1, groupIndex = 1)
# .debug() # uncomment to enable console log output .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 .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
# .withLogTopics("validator") # each topic as a separate string argument .withLogTopics("validator") # each topic as a separate string argument
.some .some
): ):
let client0 = clients()[0].client let client0 = clients()[0].client
@ -100,18 +101,18 @@ marketplacesuite "Validation":
clients: clients:
CodexConfigs.init(nodes=1) CodexConfigs.init(nodes=1)
# .debug() # uncomment to enable console log output .withEthProvider("http://localhost:8545")
# .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("node", "marketplace", "clock") .withLogFile() # uncomment to output log file to tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
# .withLogTopics("node", "purchases", "slotqueue", "market") .withLogTopics("node", "purchases", "slotqueue", "market")
.some, .some,
providers: providers:
CodexConfigs.init(nodes=1) CodexConfigs.init(nodes=1)
.withSimulateProofFailures(idx=0, failEveryNProofs=1) .withSimulateProofFailures(idx=0, failEveryNProofs=1)
# .debug() # uncomment to enable console log output .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 .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", "clock", "slotsbuilder") .withLogTopics("marketplace", "sales", "reservations", "node", "clock", "slotsbuilder")
.some .some
): ):
let client0 = clients()[0].client let client0 = clients()[0].client
@ -152,10 +153,9 @@ marketplacesuite "Validation":
.withValidationGroups(groups = 2) .withValidationGroups(groups = 2)
.withValidationGroupIndex(idx = 0, groupIndex = 0) .withValidationGroupIndex(idx = 0, groupIndex = 0)
.withValidationGroupIndex(idx = 1, groupIndex = 1) .withValidationGroupIndex(idx = 1, groupIndex = 1)
# .debug() # uncomment to enable console log output .debug() # uncomment to enable console log output
# .withLogFile() # uncomment to output log file to: .withLogFile() # uncomment to output log file to: # tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log
# tests/integration/logs/<start_datetime> <suite_name>/<test_name>/<node_role>_<node_idx>.log .withLogTopics("validator") # each topic as a separate string argument
# .withLogTopics("validator") # each topic as a separate string argument
failAndTeardownOnError "failed to start validator nodes": failAndTeardownOnError "failed to start validator nodes":
for config in validators.configs.mitems: for config in validators.configs.mitems: