test: -norpccookiefile

Both bitcoind and bitcoin-cli.
This commit is contained in:
Hodlinator committed 2024-12-03 10:38:21 +01:00
1 parent 39cbd4f37c
commit 7402658bc2
2 files changed
+25 -2

No files matched your search

+3
View File
@@ -164,6 +164,9 @@ class TestBitcoinCli(BitcoinTestFramework):
self.log.info("Test connecting with non-existing RPC cookie file")
assert_raises_process_error(1, "Could not locate RPC credentials", self.nodes[0].cli('-rpccookiefile=does-not-exist', '-rpcpassword=').echo)
self.log.info("Test connecting without RPC cookie file and with password arg")
assert_equal(BLOCKS, self.nodes[0].cli('-norpccookiefile', f'-rpcuser={user}', f'-rpcpassword={password}').getblockcount())
self.log.info("Test -getinfo with arguments fails")
assert_raises_process_error(1, "-getinfo takes no arguments", self.nodes[0].cli('-getinfo').help)