From fe055b1bee070a65ddafab49ad6f3ac4df280b7c Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Mon, 26 Nov 2012 16:30:13 -0800 Subject: [PATCH] UT: Move test account configuration from config-example.js. --- test/config-example.js | 50 +++++------------------------------------- test/testconfig.js | 48 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 45 deletions(-) create mode 100644 test/testconfig.js diff --git a/test/config-example.js b/test/config-example.js index 235ce981..af94850f 100644 --- a/test/config-example.js +++ b/test/config-example.js @@ -1,8 +1,11 @@ // -// Configuration for unit tests +// Configuration for unit tests: to be locally customized as needed. // -var path = require("path"); +var path = require("path"); +var testconfig = require("./testconfig.js"); + +exports.accounts = testconfig.accounts; // Where to find the binary. exports.rippled = path.resolve("build/rippled"); @@ -27,47 +30,4 @@ exports.servers = { } }; -// Configuration for test accounts. -exports.accounts = { - // Users - "alice" : { - 'account' : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", - 'secret' : "alice", - }, - "bob" : { - 'account' : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK", - 'secret' : "bob", - }, - "carol" : { - 'account' : "rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW", - 'secret' : "carol", - }, - "dan" : { - 'account' : "rJ85Mok8YRNxSo7NnxKGrPuk29uAeZQqwZ", - 'secret' : "dan", - }, - - // Nexuses - "bitstamp" : { - 'account' : "r4jKmc2nQb5yEU6eycefiNKGHTU5NQJASx", - 'secret' : "bitstamp", - }, - "mtgox" : { - 'account' : "rGihwhaqU8g7ahwAvTq6iX5rvsfcbgZw6v", - 'secret' : "mtgox", - }, - - // Merchants - "amazon" : { - 'account' : "rhheXqX7bDnXePJeMHhubDDvw2uUTtenPd", - 'secret' : "amazon", - }, - - // Master account - "root" : { - 'account' : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", - 'secret' : "masterpassphrase", - }, -}; - // vim:sw=2:sts=2:ts=8:et diff --git a/test/testconfig.js b/test/testconfig.js new file mode 100644 index 00000000..3ff37ed5 --- /dev/null +++ b/test/testconfig.js @@ -0,0 +1,48 @@ +// +// Configuration for unit tests: not to be locally customized. +// + +// Configuration for test accounts. +exports.accounts = { + // Users + "alice" : { + 'account' : "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", + 'secret' : "alice", + }, + "bob" : { + 'account' : "rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK", + 'secret' : "bob", + }, + "carol" : { + 'account' : "rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW", + 'secret' : "carol", + }, + "dan" : { + 'account' : "rJ85Mok8YRNxSo7NnxKGrPuk29uAeZQqwZ", + 'secret' : "dan", + }, + + // Nexuses + "bitstamp" : { + 'account' : "r4jKmc2nQb5yEU6eycefiNKGHTU5NQJASx", + 'secret' : "bitstamp", + }, + "mtgox" : { + 'account' : "rGihwhaqU8g7ahwAvTq6iX5rvsfcbgZw6v", + 'secret' : "mtgox", + }, + + // Merchants + "amazon" : { + 'account' : "rhheXqX7bDnXePJeMHhubDDvw2uUTtenPd", + 'secret' : "amazon", + }, + + // Master account + "root" : { + 'account' : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", + 'secret' : "masterpassphrase", + }, +}; + +// vim:sw=2:sts=2:ts=8:et