UT: Share setUp and tearDown code.

This commit is contained in:
Arthur Britto
2012-10-21 15:30:16 -07:00
parent 59a61d7b35
commit cc3c640322
5 changed files with 123 additions and 109 deletions

View File

@@ -7,10 +7,12 @@ var path = require("path");
// Where to find the binary.
exports.rippled = path.join(process.cwd(), "rippled");
exports.server_default = "alpha";
// Configuration for servers.
exports.servers = {
// A local test server.
'alpha' : {
"alpha" : {
'trusted' : true,
// "peer_ip" : "0.0.0.0",
// "peer_port" : 51235,
@@ -26,39 +28,39 @@ exports.servers = {
// Configuration for test accounts.
exports.accounts = {
// Users
'alice' : {
'account' : 'rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn',
'secret' : 'alice',
"alice" : {
'account' : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
'secret' : "alice",
},
'bob' : {
'account' : 'rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK',
'secret' : 'bob',
"bob" : {
'account' : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK",
'secret' : "bob",
},
'carol' : {
'account' : 'rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW',
'secret' : 'carol',
"carol" : {
'account' : "rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW",
'secret' : "carol",
},
// Nexuses
'bitstamp' : {
'account' : 'r4jKmc2nQb5yEU6eycefiNKGHTU5NQJASx',
'secret' : 'bitstamp',
"bitstamp" : {
'account' : "r4jKmc2nQb5yEU6eycefiNKGHTU5NQJASx",
'secret' : "bitstamp",
},
'mtgox' : {
'account' : 'rGihwhaqU8g7ahwAvTq6iX5rvsfcbgZw6v',
'secret' : 'mtgox',
"mtgox" : {
'account' : "rGihwhaqU8g7ahwAvTq6iX5rvsfcbgZw6v",
'secret' : "mtgox",
},
// Merchants
'amazon' : {
'account' : 'rhheXqX7bDnXePJeMHhubDDvw2uUTtenPd',
'secret' : 'amazon',
"amazon" : {
'account' : "rhheXqX7bDnXePJeMHhubDDvw2uUTtenPd",
'secret' : "amazon",
},
// Master account
'root' : {
'account' : 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
'secret' : 'masterpassphrase',
"root" : {
'account' : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
'secret' : "masterpassphrase",
},
};