Commit Graph

101 Commits

Author SHA1 Message Date
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
dae06b83f1 Added test_bookmark_sharing to version control; note this doesn't pass right now (and in fact the main test is commented out.) 2008-06-30 18:50:06 -07:00
Atul Varma
7512505bb7 Added a Service.verifyPassphrase() method. Also, Service.login() now checks to ensure that the user's passphrase is valid, and if it's not, it throws an exception. 2008-06-30 16:50:19 -07:00
Atul Varma
4c44bcd581 Fixed a potential bug in Service.login() whereby a user's directory wouldn't be created if it didn't exist (though it would in Service.verifyLogin(), which is only called from the setup wizard). 2008-06-30 15:54:15 -07:00
Atul Varma
3e6bb56f61 Moved isPassphraseValid() out of its test suite and into the crypto module. 2008-06-30 14:40:11 -07:00
Atul Varma
e48513ec01 test_passphrase_checking now actually tests real code and shows that it works. Still have to move isPassphraseValid() into a different place though, probably crypto. 2008-06-30 14:29:26 -07:00
Atul Varma
0ce0311316 Removed test_loadall.js, as its need is obviated by the auto-generated js module loader tests. 2008-06-30 13:37:31 -07:00
Atul Varma
a8d63804d6 Revalidated test logs, as 'actual changes for server' details are no longer being logged. 2008-06-30 13:32:13 -07:00
Anant Narayanan
6dde744f06 Update tests to reflect changes in store/syncCore methods 2008-06-30 12:31:02 -07:00
Atul Varma
1b82e736e0 Updated test_passphrase_checking 2008-06-30 11:54:10 -07:00
Atul Varma
688dcddb1c Refactored test_service a bit to use the synctestinginfrastructure. 2008-06-30 11:24:58 -07:00
Atul Varma
76a60f1dfe Added a test_passphrase_checking test suite to test passphrase checking code; it's not yet complete. 2008-06-30 11:18:16 -07:00
Justin Dolske
777c82cf0b Fix crypto component to not mangle certain strings when doing 8/16 bit character conversion. 2008-06-29 20:51:22 -07:00
Justin Dolske
74d8b0e43a Partial bustage fix: test was broken, is now less broken but still fails. 2008-06-29 16:46:59 -07:00
Atul Varma
52e47aeb5b Revalidated logtest files, just a formatVersion change from 2 to 3. 2008-06-26 18:26:07 -07:00
Atul Varma
b35bbe0a4b Fixed test_service. 2008-06-26 18:09:53 -07:00
Atul Varma
29f7b89a5a Implemented DELETE and listFiles on fake DAV so that test_service doesn't raise an exception. 2008-06-26 17:48:39 -07:00
Atul Varma
44b8be12aa Added more assertion checks in test_bookmark_syncing. 2008-06-26 17:31:57 -07:00
Atul Varma
e1f5bf9e13 Oops, forgot to revalidate logs in my last commit. 2008-06-26 17:00:01 -07:00
Atul Varma
df57d1a0fc Fixed a typo, added an explicit check in test_bookmark_syncing. 2008-06-26 16:59:25 -07:00
Atul Varma
b31c786d84 Automated merge with http://hg.mozilla.org/labs/weave 2008-06-26 16:28:55 -07:00
Atul Varma
e0f26c39a3 Added a bookmark sync test that exercises the commandLike() method by adding two identical bookmarks with different GUIDs to different profiles and then syncing. 2008-06-26 16:28:44 -07:00
Dan Mills
c3a7956e61 fix unit test makefile so it works on windows (no symlinks on windows, boo) 2008-06-26 16:09:22 -07:00
Atul Varma
2bd0a8ac17 Refactored some things in the test framework to make tests easier to write, and to make certain things possible to write. 2008-06-26 15:01:34 -07:00
Atul Varma
792f0f7e87 Refactored password sync test to use newly-added functionality in the sync testing infrastructure. 2008-06-26 11:40:14 -07:00
Atul Varma
0e87611a56 Revalidated log for password sync test, which changed due to Thunder's changes that put deltas for individual versions into their own files on WebDAV. 2008-06-26 11:38:40 -07:00
Atul Varma
6e8d38ac08 Refactored client state-changing functions out of test_bookmark_syncing.js and into head.js, as part of the SyncTestingInfrastructure class, so that other test suites can use them. 2008-06-26 11:07:13 -07:00
Atul Varma
cd2f7cdb93 Bookmark sync test now attempts to add a bookmark on the second computer, then re-sync on the first computer and ensure that the bookmark is copied over. 2008-06-25 17:05:20 -07:00
Atul Varma
9beba70275 Added a number of "real" bookmark sync tests; see test_bookmark_syncing.js for information. 2008-06-25 14:30:53 -07:00
Atul Varma
37225f431c Changed AsyncException so that it dynamically subclasses the exception it's wrapping, and adds an 'asyncStack' property to allow access to the asynchronous call stack. This, along with my previous few commits, makes the processing of stack traces in our code much more streamlined, and also allows our debugging output to be more informative, as stack information is now logged from the point at which an exception was thrown, rather than the point at which it was caught.
Also renamed some things in async.js to be more descriptive and easier-to-understand, albeit a bit more verbose.
2008-06-25 04:43:07 -07:00
Atul Varma
9d7f1afc80 Made exception logging routines more informative and added logtests for them. 2008-06-25 00:13:36 -07:00
Atul Varma
b5dc3b878a Added a really, really basic sync test for bookmarks. 2008-06-24 16:55:56 -07:00
Atul Varma
f9ab00520c Separated test_passwords into itself, which contains pure unit tests, and test_password_syncing, which contains a suite that's more along the lines of a system test, though still with plenty of stuff faked-out. fake_login_manager.js contains code shared between the two suites.
--HG--
rename : services/sync/tests/unit/test_passwords.log.expected => services/sync/tests/unit/test_password_syncing.log.expected
2008-06-23 21:21:40 -07:00
Atul Varma
0258487f7a Refactored stuff out of test_passwords and into head.js to make creating new sync tests for different engines easier. 2008-06-23 20:57:10 -07:00
Atul Varma
088eeebfd3 Added some more visibility to the individual steps of test_passwords. 2008-06-23 18:01:48 -07:00
Atul Varma
387927da84 Updated expected log for test_passwords based on recent code changes. 2008-06-23 17:41:01 -07:00
Justin Dolske
6ed3755104 Bug 433949 - Use WeaveCrypto component (NSS) instead of OpenSSL 2008-06-23 16:23:57 -07:00
Atul Varma
ed6f207586 Added 'resync on second computer' step to test_passwords. 2008-06-23 14:45:58 -07:00
Atul Varma
cd6f3ef8d3 Moved the FakeGUIDService from test_passwords.js to head.js. 2008-06-23 14:13:46 -07:00
Atul Varma
9baa177ade A tiny bit more refactoring to test_passwords. 2008-06-20 18:36:33 -07:00
Atul Varma
77a64f448f Oops, forgot to recommit the canonical log for test_passwords in my last commit. 2008-06-20 18:36:11 -07:00
Atul Varma
7e429a9eba Fake GUID generator now provides a different yet deterministic GUID upon each invocation. 2008-06-20 18:25:21 -07:00
Atul Varma
fd24f3706a test_passwords now also removes a user after doing everything else. 2008-06-20 18:04:59 -07:00
Atul Varma
01b47a4865 Factored out the fake filesystem related functions in test_passwords.js into a FakeFilesystemService class in head.js. 2008-06-20 17:47:32 -07:00
Atul Varma
0d27ee6f89 Refactored test_passwords to make it more modular and readable, changed the formatting of some log messages to be more descriptive. 2008-06-20 15:39:07 -07:00
Atul Varma
4c78f8d170 Improved test_passwords so that it syncs, re-syncs, adds a new user, and re-syncs again.
Fixed a strict warning in engines.js.
2008-06-20 14:22:06 -07:00
Atul Varma
4e39258260 Made the tracking of async generators/coroutines more robust for debugging purposes.
Refactored code	in syncCores.js	to use Utils.makeTimerForCall().

Improved test_passwords to perform an additional sync after the initial one.
2008-06-20 13:58:56 -07:00
Atul Varma
2f9945b9d3 Added more informative output for fake DAV, so that log-based tests are both more self-documenting re: Weave's behavior and serve as more robust test cases. 2008-06-20 12:49:25 -07:00
Atul Varma
a39acd2449 Added an expected-log for the passwords sync engine unit test. 2008-06-20 12:39:50 -07:00
Atul Varma
32c7be2a6f Changed log level in a unit test. 2008-06-20 12:24:02 -07:00
Atul Varma
ea744597ab Modified the way logging works in unit testing; fake testing components now log as part of the 'Testing' logger instead of the root logger. 2008-06-19 17:04:04 -07:00