aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_config_args.py
diff options
context:
space:
mode:
authorMeshCollider <dobsonsa68@gmail.com>2018-10-16 18:19:53 +1300
committerMeshCollider <dobsonsa68@gmail.com>2018-11-06 12:35:07 +1300
commit0385109444646561a718f34ae437b7e0e4d4d5bc (patch)
treef8acca3cb6a51092ee648bcb67133b12b91580e7 /test/functional/feature_config_args.py
parent13fe258e91e7a92326aedf151c571994166a06d4 (diff)
Add test for rpcpassword hash error
Diffstat (limited to 'test/functional/feature_config_args.py')
-rwxr-xr-xtest/functional/feature_config_args.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/feature_config_args.py b/test/functional/feature_config_args.py
index 492772d5e3..88a9aadc7b 100755
--- a/test/functional/feature_config_args.py
+++ b/test/functional/feature_config_args.py
@@ -30,6 +30,10 @@ class ConfArgsTest(BitcoinTestFramework):
self.nodes[0].assert_start_raises_init_error(expected_msg='Error reading configuration file: parse error on line 1: nono, if you intended to specify a negated option, use nono=1 instead')
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf:
+ conf.write('server=1\nrpcuser=someuser\nrpcpassword=some#pass')
+ self.nodes[0].assert_start_raises_init_error(expected_msg='Error reading configuration file: parse error on line 3, using # in rpcpassword can be ambiguous and should be avoided')
+
+ with open(inc_conf_file_path, 'w', encoding='utf-8') as conf:
conf.write('') # clear
def run_test(self):