Commit Graph

5586 Commits

Author SHA1 Message Date
Geoff Schmidt
e1994f6ece First installment of 'meteor run' tests.
Tests meteor --once and restarting on upgrade.
2014-01-29 02:02:17 -08:00
Geoff Schmidt
377d940ba0 fake-mongod, a stub mongod for automated testing 2014-01-28 19:36:04 -08:00
Geoff Schmidt
fd5073888a Rename 'self tests' directory to 'tests' 2014-01-28 16:00:46 -08:00
Geoff Schmidt
cdc894a0aa finish bringing all old tool tests under the 'meteor self-test' umbrella 2014-01-27 07:02:38 -08:00
Geoff Schmidt
b26ccb914e port some old tests - WIP 2014-01-27 06:02:01 -08:00
Geoff Schmidt
b3a113e699 port some old tests - WIP 2014-01-27 05:22:01 -08:00
Geoff Schmidt
83183a98d0 remove unused, bitrotted engine transition test hook 2014-01-27 02:34:53 -08:00
Geoff Schmidt
5f7393b3a4 Autoupdater tests! They pass. 2014-01-27 02:31:39 -08:00
Geoff Schmidt
32f2791942 Test springboarding errors/edge cases. 2014-01-27 01:13:18 -08:00
Geoff Schmidt
8c4d68ee28 double-check that we're springboarding 2014-01-27 00:08:36 -08:00
Geoff Schmidt
35c208b5b9 Tags group tests. 2014-01-26 22:27:15 -08:00
Geoff Schmidt
170861a358 better handling for apps in self-test sandbox 2014-01-26 21:08:59 -08:00
Geoff Schmidt
89d778a622 Hey cool! A springboarding test! 2014-01-26 20:48:20 -08:00
Geoff Schmidt
c53e85d333 warehouse sandboxing - WIP 2014-01-26 20:15:34 -08:00
Geoff Schmidt
ba37c7df71 one more command line parser test 2014-01-26 17:40:27 -08:00
Geoff Schmidt
abc007f58c Test to make sure that certain strings don't appear in the output 2014-01-24 02:11:45 -08:00
Geoff Schmidt
b460fe8029 Replace optimist. All tests pass. 2014-01-23 23:33:28 -08:00
Geoff Schmidt
826a035c1f Command-line option parser tests.
Finds an optimist problem.
2014-01-23 20:57:50 -08:00
Geoff Schmidt
bb7369314b Test harness improvements:
- sandboxes can specify an app template
- show both stdout and stderr output on any failure
2014-01-23 20:02:35 -08:00
Geoff Schmidt
a88ee7f84d 'meteor --help' gives top level help, not run help 2014-01-23 18:16:19 -08:00
Geoff Schmidt
539024c771 option to run only changed tests 2014-01-22 15:23:19 -08:00
Geoff Schmidt
abb54f7ec0 move tests into separate files 2014-01-22 14:15:24 -08:00
Geoff Schmidt
0c69701a32 sandbox tests. for now, just the .meteorsession file. 2014-01-22 02:54:10 -08:00
Geoff Schmidt
ac52f0eaf4 test harness: support exact match 2014-01-20 17:44:47 -08:00
Geoff Schmidt
01e211fc05 Ignore old dont-fetch-latest flag 2014-01-20 17:44:16 -08:00
David Glasser
be96c4a110 wait -> waitSecs 2014-01-16 11:00:04 -08:00
David Glasser
44341f4ff9 Merge branch 'sso' into tool-refactoring
Conflicts:
	tools/auth.js
	tools/mongo_runner.js
	tools/tests/test-bundler-npm.js
2014-01-16 10:54:33 -08:00
David Glasser
4f5d114771 Don't call onListen more than once
eg, maybe the replset loses and regains its PRIMARY.

(Manually ported to tool-refactoring from devel.)
2014-01-16 10:43:58 -08:00
David Glasser
aa68610b46 Don't leave invalid METEOR-PORT files around
Could cause mongo startup to hang.

Reproduction:

  $ meteor
  => Meteor server running on: http://localhost:3000/
  # ... wait for server to start, ctrl-c.
  # leaves '3002' in .meteor/local/db/METEOR-PORT
  $ meteor -p 5000
  # ctrl-c in about a second: once we've wiped the old local db
  # but before we've configured the new one.
  # before this commit, '3002' is still in the METEOR-PORT file.
  $ meteor
  # before this commit, hangs with:
  Initializing mongo database... this may take a moment.

(Manually ported to tool-refactoring from devel.)
2014-01-16 10:42:54 -08:00
David Glasser
1d39c2fb5e mongo_runner: Don't send rs.initiate too early
Fixes #1696. Thanks to @Maxpain177 for reporting and providing access to
a machine where this was easily reproducible.

(Manually ported to tool-refactoring from devel.)
2014-01-16 10:36:59 -08:00
David Glasser
ea14611031 Be less encouraging of "meteor run" in production 2014-01-15 14:30:31 -08:00
David Glasser
c124419bd2 Merge branch 'devel' into sso 2014-01-13 20:29:09 -08:00
David Glasser
8699a3af94 Throw if $MONGO_OPLOG_URL is not a replset
`new MongoConnection` can now yield. I can't remember why I thought this
would be a problem when first implementing OplogHandle, and it does not
seem to be from initial testing.
2014-01-13 20:26:51 -08:00
Slava Kim
9c1943c467 Adjust docs to waypoints 2.x and add a delay for deps flush to increase performance on scroll. 2014-01-13 11:51:21 -08:00
Slava Kim
bc736e4695 Upgrade jquery-waypoints to 2.0.3 2014-01-13 11:50:53 -08:00
Emily Stark
4b34feb0a9 Fix tiny comment typo 2014-01-10 16:44:45 -08:00
Emily Stark
d19e1f7b3d Merge remote-tracking branch 'origin/devel' into sso
Conflicts:
	packages/accounts-base/accounts_client.js
release/sso-10
2014-01-10 15:21:05 -08:00
David Glasser
e445a4af6a Changes to how Meteor.settings is filled on Galaxy
(a) Prefer $APP_CONFIG over $METEOR_SETTINGS

(b) Allow $APP_CONFIG's settings field to be a string which we
parse (which will be the default soon)
release/sso-9
2014-01-09 16:57:49 -08:00
David Glasser
0b76997e3d Be careful not to send a null ADMIN_APP env var 2014-01-09 15:17:37 -08:00
Michael Bishop
32768a8c05 typo: http => https 2014-01-09 12:47:14 -08:00
David Glasser
6a399dcaf0 Merge remote-tracking branch 'origin/devel' into sso release/sso-8 2014-01-09 10:09:13 -08:00
Geoff Schmidt
1bf1c094ce First pass on new test harness for command-line tool 2014-01-09 02:47:17 -08:00
Emily Stark
d9d4f2139e Add History.md entry for #1616 fix 2014-01-08 22:24:01 -08:00
Emily Stark
6ca5b987fa Merge branch 'fix-issue-1616' into devel
Fixes #1616
2014-01-08 22:22:13 -08:00
Emily Stark
44629cf800 Avoid overwriting fresh tokens from other tabs.
* Before wiping a bad token from storage on reconnect, make sure that
  we're wiping the token that we tried and failed to log in with. Avoids
  logging out another tab that might have gotten a fresh valid token
  while we were logging in with the old, invalid one (though it is still
  theoretically possible).
* In the logoutOtherClients callback, try to log in with the token that
  we get in the response. Accounts for the situation where the server
  disconnects us before the callback runs.
* If we fail to log in with a token found during a localStorage poll,
  make the client logged out.
* Add a test that attempts to simulate one tab getting a fresh new token
  while another tab logs in with an old invalid token on reconnect.
2014-01-08 22:21:38 -08:00
Emily Stark
56d60907cc Simplify logoutOtherClients and fix onReconnect race.
If we called `login` and then called `logoutOtherClients` before the login
result was recieved, then we would end up with no `onReconnect` callback. Fixed
by just leaving `onReconnect` as it is when calling `logoutOtherClients` -- we
were only replacing `onReconnect` for the sake of tests that have since been
rewritten much more cleanly.

Fixes #1616.
2014-01-08 22:21:38 -08:00
Geoff Schmidt
8b7475a8a6 Detect options that need a value but didn't get one. 2014-01-08 18:14:04 -08:00
Geoff Schmidt
b940e06006 make getSettings report problems cleanly
(using buildmessages rather exceptions)
2014-01-08 17:18:32 -08:00
Sashko Stubailo
1ee8f2aff6 Fix issues with meteorid popup release/sso-7 2014-01-08 17:06:15 -08:00
Sashko Stubailo
bd9e5d8057 Add log warning when there is an error with OAuth 2014-01-08 14:42:01 -08:00