Commit Graph

736 Commits

Author SHA1 Message Date
David Glasser
21bdac8734 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/accounts-password/package.js
	packages/accounts-password/password_server.js
	packages/constraint-solver/package.js
	packages/meteor-tool/package.js
	packages/non-core/npm-bcrypt/package.js
	packages/package-version-parser/package-version-parser-tests.js
	packages/package-version-parser/package-version-parser.js
	packages/package-version-parser/package.js
	tools/selftest.js
2015-03-17 13:41:14 -07:00
David Greenspan
269f32fec6 Fix package-tests: package specifying a name
a self-test broken by the version solver changes.
2015-03-16 16:18:02 -07:00
Sashko Stubailo
c6ea68f9b3 Make meteor create --package not use prefix
It used to create a directory with an underscore instead of a colon
Now, it just removes the prefix.

In cases where the name of the package has more than one colon or starts or ends
witha colon, we report an error.
2015-03-12 17:57:27 -07:00
David Glasser
ec026e3b60 Work around a cordova bug
Fixes #3914.  Fixes self-test 'add cordova plugins'.
2015-03-11 17:46:17 -07:00
David Glasser
34df238362 Delete "sync local catalog" test
It's been auto-failing for many months. If somebody wants to fix it,
feel free to revert this and fix it, but there's no reason to just
entirely stop self-test --slow from having any hope of passing forever.
2015-03-11 17:46:17 -07:00
David Glasser
55ab7f16c6 test: Prevent overlapping meteor calls
They crashed sometimes, because meteor does that.
2015-03-11 17:46:16 -07:00
ekatek
43d6be6734 fixing a test
The test is fine, but we were publishing a different version than we checked for.
(That is, we published 1.1.0, and were surprised when 1.0.1 did not show up).
Fixed.
2015-03-11 17:46:16 -07:00
David Glasser
031237573a Work around a cordova bug
Fixes #3914.  Fixes self-test 'add cordova plugins'.
2015-03-10 21:48:20 -07:00
David Glasser
52d500e123 Delete "sync local catalog" test
It's been auto-failing for many months. If somebody wants to fix it,
feel free to revert this and fix it, but there's no reason to just
entirely stop self-test --slow from having any hope of passing forever.
2015-03-10 20:54:22 -07:00
David Glasser
f207371bc0 Revert "Add some helpers for testing wrapped text"
This reverts commit 4a6dd52bca.

This made some tests flaky because notSpaceSensitive sometimes (but not
always!) ate the newline after the regexp.

We should just disable word wrapping in processes run by self-test
instead.
2015-03-09 22:31:49 -07:00
David Glasser
adc6d9969c Revert "Add some helpers for testing wrapped text"
This reverts commit 4a6dd52bca.

This made some tests flaky because notSpaceSensitive sometimes (but not
always!) ate the newline after the regexp.

We should just disable word wrapping in processes run by self-test
instead.
2015-03-09 22:30:44 -07:00
David Glasser
82e02c4cc4 test: Prevent overlapping meteor calls
They crashed sometimes, because meteor does that.
2015-03-09 18:51:40 -07:00
ekatek
50534fa252 fixing a test
The test is fine, but we were publishing a different version than we checked for.
(That is, we published 1.1.0, and were surprised when 1.0.1 did not show up).
Fixed.
2015-03-09 16:18:45 -07:00
Slava Kim
eb33978b60 Always guard leaking env variables on Windows with SETLOCAL/ENDOCAL
Windows-only
2015-03-09 12:05:02 -07:00
Slava Kim
4bab8566fd Uncomment and fix a test for Windows releases 2015-03-06 15:14:21 -08:00
sashko
4a6dd52bca Add some helpers for testing wrapped text 2015-03-05 21:07:14 -08:00
sashko
e6dd488842 Make addendum not sensitive to line breaks 2015-03-05 20:24:44 -08:00
sashko
59a6bef4aa Revert "Fix constraint solver test by removing process.exit"
This reverts commit 18e304b28c.
2015-03-05 19:58:51 -08:00
sashko
c914dc94cf Fix command line test by adding small wait 2015-03-05 19:47:11 -08:00
sashko
18e304b28c Fix constraint solver test by removing process.exit 2015-03-05 19:46:33 -08:00
sashko
627f3be4f8 Fix autoupdate test on Windows 2015-03-05 19:21:48 -08:00
Sashko Stubailo
5c5af8bdff Uncomment empty string argument tests
Add an if statement so that they don't fail on Windows
2015-03-05 18:45:27 -08:00
sashko
3b56565373 Mark cordova tests with appropriate tag 2015-03-05 18:40:31 -08:00
Slava Kim
6a52dd82e2 Uncomment and fix the releases tests on Windows 2015-03-05 17:54:59 -08:00
Slava Kim
7d39f9e796 Uncomment and fix the "Default release track is METEOR@" test for Windows 2015-03-05 17:44:33 -08:00
Slava Kim
759510a584 Bump the tests timeout to fix tests on Windows
Yeah, they are slower on Windows :(
2015-03-05 17:30:20 -08:00
David Glasser
63a0076305 mongo: provide direct access to node driver db
Specifically, Mongo.Collection objects on the server now have
rawCollection and rawDatabase methods.

You can use MongoInternals.NpmModules.mongodb.version to tell what
version of the mongodb npm module is the backend for HTTP.call.  This
version may change incompatibly from version to version of Meteor; use
at your own risk.  (For example, we expect to upgrade from the 1.4.x
series to the 2.x series in the not-too-distant future.)

Fixes #3640.
2015-03-05 17:12:37 -08:00
David Glasser
2b466a9015 Fix yet another self-test broken by d4d349ca96
And make sure that failures are thrown within the actual test itself,
not within a timer, so that failure doesn't crash the whole self-test
process.
2015-03-05 16:45:21 -08:00
Slava Kim
9187dc2129 Fix one npm self-test on Windows 2015-03-05 15:54:37 -08:00
David Glasser
63f89e5602 Tell stats server which packages are local
Requires an annoying level of hackery to get the fake-warehouse tests to
pass.

See meteor/package-stats#1.
2015-03-05 13:49:18 -08:00
Sashko Stubailo
aa54ba1d13 Tree hash is different on windows and mac
This is very hard to fix for some reason
2015-03-03 22:01:14 -08:00
David Glasser
91a321fa4b Further fixes to self-tests broken by d4d349ca96 2015-03-03 21:35:23 -08:00
David Glasser
484372d3f5 Fix self-test broken by d4d349ca96 2015-03-03 21:09:18 -08:00
David Glasser
9c210f8bcb Fix crash in publish
Specifically, a "no pluginProviderPackageMap on isopack?" error would be
thrown when running publish in the following circumstances:

- You are inside an app (so it uses the app's .meteor/local/isopacks as
  an IsopackCache instead of a temporary directory)
- Your package does not need to be rebuilt (so it gets read in "up to
  date" mode by the IsopackCache)
- Your app has at least one cordova platform (so that
  includeCordovaUnibuild was true on the cached isopack; it is always
  true when building for publish)

In this case, we read the Isopack from disk but didn't keep the
pluginProviderPackageMap that we read from its isopack-buildinfo.json,
which later lead to a crash.

Fixes #3676.
2015-03-03 18:54:53 -08:00
David Glasser
94683896b7 Don't ignore nonexistent settings file in run
Refactorings in 1.0.2 accidentally started ignoring errors related to
--settings.  Fixes #3757.
2015-02-17 16:36:39 -08:00
Avital Oliver
aa6e1b3909 Remove unused tag from self-test 2015-02-11 19:40:40 -08:00
Avital Oliver
e866f7ca8c Tag known failing Windows self-tests
This way we can start running `meteor self-test` for regression testing,
while in parallel addressing the failures that are tagged by this commit.
2015-02-10 13:33:14 -08:00
Sashko Stubailo
9ef49c60dc Comment out empty string arg tests
These don't work on Windows because of a Node bug that is fixed in a
newer release. These tests aren't super necessary anyway, so it's
better to comment the empty string ones to let the real ones run
2015-02-10 12:28:25 -08:00
Avital Oliver
dd5dc01e81 Fix bundler-asset tests on Windows 2015-02-10 12:27:13 -08:00
Sashko Stubailo
1bd5ea4cc5 Fix test that was broken by newline conversion
We used to convert newlines on readFile, and now we don't.
This broke the test, so I have manually inspected the output
and updated the hash.
2015-02-10 11:54:43 -08:00
Avital Oliver
08fccd4e27 Don't run tests with colon filenames on Windows
These tests are intended to guard against accidentally working with files
that have colons when on Mac/Linux, and then those packages not working on
Windows. There's nothing to test about the other direction.
2015-02-10 11:46:14 -08:00
Sashko Stubailo
23e71a764f Mark two tests as client-refresh 2015-02-10 11:42:36 -08:00
Avital Oliver
15e87e33e8 Fix tests hard-coding METEOR as release track
Now it reads the value from catalog.DEFAULT_TRACK, which is both more
correct and necessary for the current "preview" state of Windows.

Fixed the following self-tests on Windows:
- run: update during run
- releases: springboard

Unfortunately, the autoupdate self-test still fails, maybe due to a real
bug?
2015-02-10 11:21:17 -08:00
Sashko Stubailo
2eaa848bcc Convert __dirname to standard path 2015-02-09 13:49:57 -08:00
Sashko Stubailo
6aa9142e67 Fix some test bugs related to package names/dirs 2015-02-06 14:49:23 -08:00
Sashko Stubailo
e6a26bded0 Wrong method call in self test. (add flow plz) 2015-02-06 13:56:01 -08:00
Sashko Stubailo
497340498f Fix missing createPackage arguments in selftest 2015-02-06 13:53:24 -08:00
Avital Oliver
8fb583507f Make "run" selftest pass on Windows 2015-02-06 13:47:15 -08:00
David Glasser
30481e10bb Mongo 2.6 makes --nohttpinterface the default 2015-02-05 22:40:44 -08:00
David Glasser
2cc0d41ee2 Fix packages with organizations test 2015-02-05 22:32:42 -08:00