From 402b4865892bb590e497347c11543497db2dfe59 Mon Sep 17 00:00:00 2001 From: BulatSaif Date: Wed, 20 Nov 2024 16:31:18 +0300 Subject: [PATCH] fix ci 3 --- tests/balance_utils_test.py | 4 ++-- tests/node_utils_test.py | 2 +- tests/session_keys_test.py | 2 +- tests/stash_account_test.py | 2 +- tests/substrate_test.py | 2 +- tests/validator_manager_pos_test.py | 4 ++-- tests/validator_manager_test.py | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/balance_utils_test.py b/tests/balance_utils_test.py index bb76500..40fe044 100644 --- a/tests/balance_utils_test.py +++ b/tests/balance_utils_test.py @@ -13,7 +13,7 @@ class BalanceUtilsTest(unittest.TestCase): def setUp(self): # Start Alice validator self.alice_validator = DockerContainer('parity/polkadot:latest') - self.alice_validator.with_command(f'--chain rococo-local --validator --unsafe-force-node-key-generation --alice {RPC_DEV_FLAGS}') + self.alice_validator.with_command(f'--chain rococo-local --validator --insecure-validator-i-know-what-i-do --alice {RPC_DEV_FLAGS}') self.alice_validator.with_exposed_ports(9944) self.alice_validator.start() self.alice_validator_rpc_ws_url = 'ws://{}:{}'.format(self.alice_validator.get_container_host_ip(), @@ -21,7 +21,7 @@ def setUp(self): # Start Bob validator self.bob_validator = DockerContainer('parity/polkadot:latest') - self.bob_validator.with_command(f'--chain rococo-local --validator --unsafe-force-node-key-generation --bob {RPC_DEV_FLAGS}') + self.bob_validator.with_command(f'--chain rococo-local --validator --insecure-validator-i-know-what-i-do --bob {RPC_DEV_FLAGS}') self.bob_validator.with_exposed_ports(9944) self.bob_validator.start() self.bob_validator_http_url = 'http://{}:{}'.format(self.bob_validator.get_container_host_ip(), diff --git a/tests/node_utils_test.py b/tests/node_utils_test.py index 3d5d993..cb5b084 100644 --- a/tests/node_utils_test.py +++ b/tests/node_utils_test.py @@ -15,7 +15,7 @@ class NodeUtilsTest(unittest.TestCase): def setUp(self): self.polkadot = DockerContainer('parity/polkadot:latest') - self.polkadot.with_command(f'--dev --validator --node-key 4b067400ba508d783ccf86b73aa825ebafea96c95ebdff3f307ab6dd854f0852 {RPC_DEV_FLAGS}') + self.polkadot.with_command(f'--dev --validator --insecure-validator-i-know-what-i-do --node-key 4b067400ba508d783ccf86b73aa825ebafea96c95ebdff3f307ab6dd854f0852 {RPC_DEV_FLAGS}') self.polkadot.with_exposed_ports(9944) self.polkadot.start() self.polkadot_rpc_http_url = 'http://{}:{}'.format(self.polkadot.get_container_host_ip(), self.polkadot.get_exposed_port(9944)) diff --git a/tests/session_keys_test.py b/tests/session_keys_test.py index 50cf966..d9208e9 100644 --- a/tests/session_keys_test.py +++ b/tests/session_keys_test.py @@ -12,7 +12,7 @@ class NodeSessionKeysTest(unittest.TestCase): def setUp(self): self.polkadot = DockerContainer('parity/polkadot:latest') - self.polkadot.with_command(f'--dev --validator {RPC_DEV_FLAGS}') + self.polkadot.with_command(f'--dev --validator --insecure-validator-i-know-what-i-do {RPC_DEV_FLAGS}') self.polkadot.with_exposed_ports(9944) self.polkadot.start() self.polkadot_rpc_http_url = 'http://{}:{}'.format(self.polkadot.get_container_host_ip(), self.polkadot.get_exposed_port(9944)) diff --git a/tests/stash_account_test.py b/tests/stash_account_test.py index 087a8f9..0dc33be 100644 --- a/tests/stash_account_test.py +++ b/tests/stash_account_test.py @@ -12,7 +12,7 @@ class StashAccountTest(unittest.TestCase): def setUp(self): self.polkadot = DockerContainer('parity/polkadot:latest') - self.polkadot.with_command(f'--dev --validator {RPC_DEV_FLAGS}') + self.polkadot.with_command(f'--dev --validator --insecure-validator-i-know-what-i-do {RPC_DEV_FLAGS}') self.polkadot.with_exposed_ports(9944) self.polkadot.start() diff --git a/tests/substrate_test.py b/tests/substrate_test.py index 0112c88..47a05e5 100644 --- a/tests/substrate_test.py +++ b/tests/substrate_test.py @@ -15,7 +15,7 @@ class SubstrateTest(unittest.TestCase): def setUp(self): self.polkadot = DockerContainer('parity/polkadot:latest') - self.polkadot.with_command(f'--dev --validator {RPC_DEV_FLAGS}') + self.polkadot.with_command(f'--dev --validator --insecure-validator-i-know-what-i-do {RPC_DEV_FLAGS}') self.polkadot.with_exposed_ports(9944) self.polkadot.start() self.polkadot_rpc_http_url = 'http://{}:{}'.format(self.polkadot.get_container_host_ip(), self.polkadot.get_exposed_port(9944)) diff --git a/tests/validator_manager_pos_test.py b/tests/validator_manager_pos_test.py index 6b0ffa2..e68e585 100644 --- a/tests/validator_manager_pos_test.py +++ b/tests/validator_manager_pos_test.py @@ -16,7 +16,7 @@ class ValidatorManagerTestPoS(unittest.TestCase): def setUp(self): # Start Alice validator self.alice_validator = DockerContainer('parity/polkadot:latest') - self.alice_validator.with_command(f'--chain westend-local --validator --unsafe-force-node-key-generation --alice {RPC_DEV_FLAGS}') + self.alice_validator.with_command(f'--chain westend-local --validator --insecure-validator-i-know-what-i-do--alice {RPC_DEV_FLAGS}') self.alice_validator.with_exposed_ports(9944, 10333) self.alice_validator.start() @@ -24,7 +24,7 @@ def setUp(self): # Start Bob validator and connect it to Alice self.bob_validator = DockerContainer('parity/polkadot:latest') - self.bob_validator.with_command(f'-chain westend-local --validator --unsafe-force-node-key-generation --bob --unsafe-rpc-external {RPC_DEV_FLAGS} --bootnodes /ip4/127.0.0.1/tcp/{self.alice_validator.get_exposed_port(10333)}/p2p/12D3KooWAvdwXzjmRpkHpz8PzUTaX1o23SdpgAWVyTGMSQ68QXK6') + self.bob_validator.with_command(f'-chain westend-local --validator --insecure-validator-i-know-what-i-do --bob --unsafe-rpc-external {RPC_DEV_FLAGS} --bootnodes /ip4/127.0.0.1/tcp/{self.alice_validator.get_exposed_port(10333)}/p2p/12D3KooWAvdwXzjmRpkHpz8PzUTaX1o23SdpgAWVyTGMSQ68QXK6') self.bob_validator.with_exposed_ports(9944) self.bob_validator.start() self.bob_validator_http_url = f'http://{self.bob_validator.get_container_host_ip()}:{self.bob_validator.get_exposed_port(9944)}' diff --git a/tests/validator_manager_test.py b/tests/validator_manager_test.py index def4332..3f2f77e 100644 --- a/tests/validator_manager_test.py +++ b/tests/validator_manager_test.py @@ -14,7 +14,7 @@ class ValidatorManagerTest(unittest.TestCase): def setUp(self): # Start Alice validator self.alice_validator = DockerContainer('parity/polkadot:latest') - self.alice_validator.with_command(f'--chain rococo-local --validator --unsafe-force-node-key-generation --alice {RPC_DEV_FLAGS}') + self.alice_validator.with_command(f'--chain rococo-local --validator --insecure-validator-i-know-what-i-do--alice {RPC_DEV_FLAGS}') self.alice_validator.with_exposed_ports(9944, 10333) self.alice_validator.start() @@ -23,7 +23,7 @@ def setUp(self): # Start Bob validator and connect it to Alice self.bob_validator = DockerContainer('parity/polkadot:latest') self.bob_validator.with_command(f""" - --chain rococo-local --validator --unsafe-force-node-key-generation --bob {RPC_DEV_FLAGS} \ + --chain rococo-local --validator --insecure-validator-i-know-what-i-do --bob {RPC_DEV_FLAGS} \ --bootnodes /ip4/127.0.0.1/tcp/{self.alice_validator.get_exposed_port(10333)}/p2p/12D3KooWAvdwXzjmRpkHpz8PzUTaX1o23SdpgAWVyTGMSQ68QXK6 """) self.bob_validator.with_exposed_ports(9944)