mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-04 06:03:12 +00:00
fix: refactor client node flags
This commit is contained in:
parent
04f2f1ad85
commit
201f72097d
@ -10,7 +10,7 @@ nomos_cli = {
|
|||||||
},
|
},
|
||||||
"client_node": {
|
"client_node": {
|
||||||
"image": NOMOS_IMAGE,
|
"image": NOMOS_IMAGE,
|
||||||
"flags": [],
|
"flags": [{"tail": [], "-f": [], "/dev/null": []}],
|
||||||
"volumes": [],
|
"volumes": [],
|
||||||
"ports": [],
|
"ports": [],
|
||||||
"entrypoint": "",
|
"entrypoint": "",
|
||||||
|
|||||||
@ -47,14 +47,15 @@ class NomosCli:
|
|||||||
self._port_map = {}
|
self._port_map = {}
|
||||||
|
|
||||||
if self._command == "client_node":
|
if self._command == "client_node":
|
||||||
cmd = ["tail", "-f", "/dev/null"]
|
cmd = []
|
||||||
else:
|
else:
|
||||||
cmd = [NOMOS_CLI, self._command]
|
cmd = [NOMOS_CLI, self._command]
|
||||||
for flag in nomos_cli[self._command]["flags"]:
|
|
||||||
for f, indexes in flag.items():
|
for flag in nomos_cli[self._command]["flags"]:
|
||||||
cmd.append(f)
|
for f, indexes in flag.items():
|
||||||
for j in indexes:
|
cmd.append(f)
|
||||||
cmd.append(input_values[j])
|
for j in indexes:
|
||||||
|
cmd.append(input_values[j])
|
||||||
|
|
||||||
logger.debug(f"NomosCli command to run {cmd}")
|
logger.debug(f"NomosCli command to run {cmd}")
|
||||||
|
|
||||||
@ -109,7 +110,6 @@ class NomosCli:
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
def set_rest_api(self, host, port):
|
def set_rest_api(self, host, port):
|
||||||
logger.debug(f"Setting rest API object to host {host} port {port}")
|
|
||||||
self._api = REST(port, host)
|
self._api = REST(port, host)
|
||||||
|
|
||||||
@retry(stop=stop_after_delay(5), wait=wait_fixed(0.1), reraise=True)
|
@retry(stop=stop_after_delay(5), wait=wait_fixed(0.1), reraise=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user