aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-03-19 22:41:52 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2018-03-19 22:44:43 +0100
commit8b2ef27ff9be20fc1a53d8804b403859251f1fca (patch)
treebc3ab6df5f1074480b1669e46a2ac7befcd84f99 /test
parenta2b2476e96b34cba2e413bb099bcef5e4165b29a (diff)
tests: Test connecting with non-existing RPC cookie file
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/interface_bitcoin_cli.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/interface_bitcoin_cli.py b/test/functional/interface_bitcoin_cli.py
index f48874274d..e29fdc84e7 100755
--- a/test/functional/interface_bitcoin_cli.py
+++ b/test/functional/interface_bitcoin_cli.py
@@ -38,6 +38,9 @@ class TestBitcoinCli(BitcoinTestFramework):
self.log.info("Test connecting to a non-existing server")
assert_raises_process_error(1, "Could not connect to the server", self.nodes[0].cli('-rpcport=1').echo)
+ 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("Make sure that -getinfo with arguments fails")
assert_raises_process_error(1, "-getinfo takes no arguments", self.nodes[0].cli('-getinfo').help)