rpc-tests: write credentials to dogecoin.conf, not bitcoin.conf
This commit is contained in:
parent
e3d075f710
commit
9dced9cb98
|
@ -26,7 +26,7 @@ class HTTPBasicsTest (BitcoinTestFramework):
|
|||
#Append rpcauth to bitcoin.conf before initialization
|
||||
rpcauth = "rpcauth=rt:93648e835a54c573682c2eb19f882535$7681e9c5b74bdd85e78166031d2058e1069b3ed7ed967c93fc63abba06f31144"
|
||||
rpcauth2 = "rpcauth=rt2:f8607b1a88861fac29dfccf9b52ff9f$ff36a0c23c8c62b4846112e50fa888416e94c17bfd4c42f88fd8f55ec6a3137e"
|
||||
with open(os.path.join(self.options.tmpdir+"/node0", "bitcoin.conf"), 'a', encoding='utf8') as f:
|
||||
with open(os.path.join(self.options.tmpdir+"/node0", "dogecoin.conf"), 'a', encoding='utf8') as f:
|
||||
f.write(rpcauth+"\n")
|
||||
f.write(rpcauth2+"\n")
|
||||
|
||||
|
@ -60,7 +60,7 @@ class HTTPBasicsTest (BitcoinTestFramework):
|
|||
resp = conn.getresponse()
|
||||
assert_equal(resp.status==401, False)
|
||||
conn.close()
|
||||
|
||||
|
||||
#Use new authpair to confirm both work
|
||||
headers = {"Authorization": "Basic " + str_to_b64str(authpairnew)}
|
||||
|
||||
|
|
Loading…
Reference in a new issue