Commit Graph

64 Commits

Author SHA1 Message Date
wltsmrz
dbddc6b7f2 Update integration tests 2015-09-08 19:14:42 -07:00
Nicholas Dudfield
8ca9fa1c26 Fix testutils.create_accounts
* Don't call ledger_wait inside parallel async loop
2015-03-16 20:54:14 -04:00
David Schwartz
3b3b897193 Add "Default Ripple" account flag and associated logic:
AccountSet set/clear, asfDefaultRipple = 8

AccountRoot flag, lsfDefaultRipple = 0x00800000

In trustCreate, set no ripple flag if appropriate.

If an account does not have the default ripple flag set,
new ripple lines created as a result of its offers being
taken or people creating trust lines to it have no ripple
set by that account's side automatically

Trust lines can be deleted if the no ripple flag matches
its default setting based on the account's default ripple
setting.

Fix default no-rippling in integration tests.
2015-03-16 20:54:14 -04:00
Nicholas Dudfield
2e59378ab7 Fix AppVeyor:
* Detect continuous integration environment via `CI` variable
* Use double quotes for build cache path
2015-03-09 17:49:39 -04:00
Nicholas Dudfield
91871b418b Changes to Universal Port:
* Add tests
* Introduce requestRole helper
* Always honor admin=no
* Welcome guests anywhere admin privileges aren't required
2015-02-25 19:46:56 -05:00
Edward Hennis
a691632995 Support a "--noserver" command line option in tests:
* Run npm/integration tests without launching rippled, using a
  running instance of rippled (possibly in a debugger) instead.
* Works for "npm test" and "mocha"
2015-01-28 16:34:33 -08:00
Nicholas Dudfield
4dc2cf8a6b Update tests to support latest ripple-lib:
* Update ripple-lib api usage
* Use latest npm ripple-lib
  * Tested with bignumber.js branch and tip of develop
* Use new version of coffee-script
  * Better source maps
* Update mocha
* Add assert-diff for better error reporting
* Add rconsole, enabled via USE_RCONSOLE env var
  * For use with manual installation only
2015-01-26 19:13:40 -08:00
Edward Hennis
a5df3f1747 Support a "no_server" flag in test config.
* Will use a running instance of rippled (possibly in a debugger).
* Modify all tests to respect the server_default value.
* Fail test if new account already exists and has a balance.
* README.md with instructions for advanced test debugging, particularly using no_server.
2014-12-31 01:55:10 -08:00
Nicholas Dudfield
4c7fd18230 Ticket integration tests 2014-09-04 16:51:31 -07:00
wltsmrz
50f9b68d61 Bump ledger_wait timeout for Travis 2014-08-08 14:57:39 -07:00
Nicholas Dudfield
e14c700c60 New integration tests:
* New tests for autobridging and freeze
* Discrepancy detection tests
* Don't let Mocha suppress load time errors
2014-06-28 18:27:33 -07:00
wltsmrz
0848e348bb Update ripple-lib integration tests 2014-06-28 13:17:31 -07:00
Vinnie Falco
d0970397a6 Revert system test changes:
* Revert "Shutdown rippled before http server in json rpc test to avoid http server potentially receiving messages due to automatic ledger close interval."
* Revert "Update ripple-lib integration tests"

This reverts commit 83442825e5.
2014-02-04 15:18:36 -08:00
Nicholas Dudfield
83442825e5 Shutdown rippled before http server in json rpc test to avoid http server potentially receiving messages due to automatic ledger close interval. 2014-02-03 22:36:28 -08:00
wltsmrz
6c5f88aa25 Update ripple-lib integration tests 2014-02-03 10:42:34 -08:00
JoelKatz
fb63aa737a Revert d2953f602e 2014-01-23 13:36:31 -08:00
sublimator
d2953f602e Error reporting tests 2014-01-21 10:28:35 -05:00
wltsmrz
c76e2b54a9 Update system tests for mocha and new ripple-lib transaction submission 2013-09-24 14:12:18 -07:00
wltsmrz
4109e51e30 Improvements to js tests and increment of the ripple-lib version 2013-09-18 17:36:34 -07:00
Stefan Thomas
3d6215fd1e JS Tests: Refactored config handling.
Still far from perfect, but better than it was.
2013-07-27 20:18:59 -07:00
Stefan Thomas
ccde264282 JS Tests: Fallback to config-example if config is not present. 2013-07-27 19:48:17 -07:00
Nicholas Dudfield
c13f759ada Make test suites pass (with tip of ripple-lib). Needs refactoring to use mocha 2013-07-27 12:46:26 -07:00
Stefan Thomas
a4b19019ee JS Tests: Replace one of the hard-coded fees in the testsuite. More to go. 2013-07-26 12:59:07 -07:00
Arthur Britto
f769308a1f UT: Log error messages from server. 2013-05-05 20:38:08 -07:00
Stefan Thomas
0a2e7664b8 JS: Remove ripple-lib and link to it via package.json instead. 2013-04-26 22:02:36 +02:00
Arthur Britto
96733c2874 Add trust auto clear. Fixes #28 2013-03-31 16:15:45 -07:00
Arthur Britto
7887ca1b05 UT: Fix server stopping. 2013-03-23 19:02:04 -07:00
Arthur Britto
56308f39ce UT: Verify quality setting. 2013-03-14 16:40:43 -07:00
Arthur Britto
bbef32bcd7 UT: Revise for new request_ripple_balance. 2013-03-14 15:35:30 -07:00
Stefan Thomas
50b5644334 JS: Add a way for the test suite to change Amount#equals, so it ignores issuers. 2013-02-22 13:46:50 +01:00
Stefan Thomas
39ba2613d9 JS: Added ripple.config.load convenience function. 2013-02-02 14:05:49 +01:00
Stefan Thomas
24dac24d29 Refactor JavaScript library.
- Separate classes in separate modules (files)
- Constants should be associated with a class
- Replace exports.config scheme with a config singleton
- Refactor base58 functions as a static class
2013-02-01 22:44:04 +01:00
Arthur Britto
fa37152e20 UT: Update offer-test for new Transaction split. 2013-01-25 14:24:34 -08:00
Arthur Britto
29ead4e3e0 UT: Add ledger_close to testutils. 2013-01-16 19:30:21 -08:00
Arthur Britto
8c5f08ad9b UT: More work on detecting standalone server exit. 2013-01-12 12:48:18 -08:00
Arthur Britto
1dcc62f2ad Add a http server config to the example test config. 2012-12-30 17:04:42 -08:00
Arthur Britto
fd0bd1433f UT: Test offer counts. 2012-12-14 21:21:27 -08:00
Arthur Britto
704b31e0f6 UT: Fix intermitent timeouts. 2012-12-14 19:07:46 -08:00
Arthur Britto
68327ab27f UT: Fixes for reserves. 2012-12-12 23:08:18 -08:00
Arthur Britto
49e6ca70ba JS & UT: add et to vim setting. 2012-11-24 14:07:41 -08:00
Arthur Britto
42248ca3ef UT: Test cross currency bridged payment and fixes. 2012-11-20 12:43:27 -08:00
Arthur Britto
4615f47148 UT: Add support to verify XRP balances. 2012-11-19 12:55:11 -08:00
Arthur Britto
85720c9ddd UT: Improve logging. 2012-11-17 17:31:43 -08:00
jed
7c69c45a2f . 2012-11-15 13:17:36 -08:00
jed
85a46a597c . 2012-11-14 18:46:10 -08:00
Arthur Britto
8d89fb256d UT: Work toward dumping an account's history. 2012-11-10 16:16:05 -08:00
Arthur Britto
8d32892609 JS: Make currency and issuer private in Amount. 2012-11-09 17:33:37 -08:00
Arthur Britto
155854be23 UT: Add support for verifying offers & fix amount checking. 2012-11-08 18:09:18 -08:00
Arthur Britto
b271192547 Rework config.js to not be add to web pack. 2012-11-07 16:03:39 -08:00
Stefan Thomas
fa3fab5816 Moved cpp code to src/cpp and js code to src/js. 2012-11-07 12:49:50 -08:00