Skip to content

Commit 0385109

Browse files
committed
Add test for rpcpassword hash error
1 parent 13fe258 commit 0385109

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/feature_config_args.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def test_config_file_parser(self):
2929
conf.write('nono\n')
3030
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')
3131

32+
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf:
33+
conf.write('server=1\nrpcuser=someuser\nrpcpassword=some#pass')
34+
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')
35+
3236
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf:
3337
conf.write('') # clear
3438

0 commit comments

Comments
 (0)