mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
test: add cases for blank rpcauth
This commit is contained in:
parent
2aff9a36c3
commit
ecc98ccff2
1 changed files with 3 additions and 1 deletions
|
@ -139,9 +139,11 @@ class HTTPBasicsTest(BitcoinTestFramework):
|
|||
init_error = 'Error: Unable to start HTTP server. See debug log for details.'
|
||||
|
||||
self.log.info('Check -rpcauth are validated')
|
||||
# Empty -rpcauth= are ignored
|
||||
self.log.info('Empty -rpcauth are ignored')
|
||||
self.restart_node(0, extra_args=['-rpcauth'])
|
||||
self.restart_node(0, extra_args=['-rpcauth='])
|
||||
self.stop_node(0)
|
||||
self.nodes[0].assert_start_raises_init_error(expected_msg=init_error, extra_args=['-rpcauth=""'])
|
||||
self.nodes[0].assert_start_raises_init_error(expected_msg=init_error, extra_args=['-rpcauth=foo'])
|
||||
self.nodes[0].assert_start_raises_init_error(expected_msg=init_error, extra_args=['-rpcauth=foo:bar'])
|
||||
self.nodes[0].assert_start_raises_init_error(expected_msg=init_error, extra_args=['-rpcauth=foo:bar:baz'])
|
||||
|
|
Loading…
Reference in a new issue