mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
test: Add coverage for rpcwhitelistdefault when unset
This commit is contained in:
parent
535b874707
commit
2929da1dd5
1 changed files with 8 additions and 0 deletions
|
@ -102,6 +102,14 @@ class RPCWhitelistTest(BitcoinTestFramework):
|
||||||
self.test_users_permissions()
|
self.test_users_permissions()
|
||||||
self.test_rpcwhitelistdefault_permissions(1, 403)
|
self.test_rpcwhitelistdefault_permissions(1, 403)
|
||||||
|
|
||||||
|
# Ensure that not specifying -rpcwhitelistdefault is the same as
|
||||||
|
# specifying -rpcwhitelistdefault=1. Only explicitly whitelisted users
|
||||||
|
# should be allowed.
|
||||||
|
self.nodes[0].replace_in_config([("rpcwhitelistdefault=1", "")])
|
||||||
|
self.restart_node(0)
|
||||||
|
self.test_users_permissions()
|
||||||
|
self.test_rpcwhitelistdefault_permissions(1, 403)
|
||||||
|
|
||||||
def test_users_permissions(self):
|
def test_users_permissions(self):
|
||||||
"""
|
"""
|
||||||
* Permissions:
|
* Permissions:
|
||||||
|
|
Loading…
Add table
Reference in a new issue