diff --git a/test/base.py b/test/base.py index c35d380..0e72de3 100644 --- a/test/base.py +++ b/test/base.py @@ -46,14 +46,12 @@ def run_tests(extra_tests): assert_running("bitcoind") machine.wait_until_succeeds("bitcoin-cli getnetworkinfo") assert_matches("su operator -c 'bitcoin-cli getnetworkinfo' | jq", '"version"') - # Test RPC Whitelist - machine.wait_until_succeeds("su operator -c 'bitcoin-cli help'") - # Restating rpcuser & rpcpassword overrides privileged credentials + # RPC access for user 'public' should be restricted machine.fail( - "bitcoin-cli -rpcuser=public -rpcpassword=$(cat /secrets/bitcoin-rpcpassword-public) help" + "bitcoin-cli -rpcuser=public -rpcpassword=$(cat /secrets/bitcoin-rpcpassword-public) stop" ) machine.wait_until_succeeds( - log_has_string("bitcoind", "RPC User public not allowed to call method help") + log_has_string("bitcoind", "RPC User public not allowed to call method stop") ) assert_running("electrs")