def run(args): with infra.network.network(args.nodes, args.binary_dir, args.debug_nodes, args.perf_nodes, pdb=args.pdb) as network: network.start_and_join(args) # Replace primary repeatedly and check the network still operates LOG.info(f"Retiring primary {args.rotation_retirements} times") for i in range(args.rotation_retirements): LOG.warning(f"Retirement {i}") reconfiguration.test_add_node(network, args) reconfiguration.test_retire_primary(network, args)
def run(args): with infra.network.network(args.nodes, args.binary_dir, args.debug_nodes, args.perf_nodes, pdb=args.pdb) as network: network.start_and_join(args) # Replace primary repeatedly and check the network still operates for _ in range(10): reconfiguration.test_add_node(network, args) reconfiguration.test_retire_primary(network, args) reconfiguration.test_add_node(network, args) # Suspend primary repeatedly and check the network still operates for _ in range(10): test_suspend_primary(network, args)
def run(args): with infra.network.network(args.nodes, args.binary_dir, args.debug_nodes, args.perf_nodes, pdb=args.pdb) as network: network.start_and_join(args) iterations = 10 if args.long_tests else 3 LOG.info(f"Running {iterations} iterations") # Replace primary repeatedly and check the network still operates for _ in range(iterations): reconfiguration.test_add_node(network, args) reconfiguration.test_retire_primary(network, args) reconfiguration.test_add_node(network, args) # Suspend primary repeatedly and check the network still operates for _ in range(iterations): test_suspend_primary(network, args)