Commit Graph

555 Commits

Author SHA1 Message Date
Emily Stark
0422d913dc Remove localCatalogTests.js
There don't seem to be any actual tests in here, and it crashes a
'meteor self-test --slow' run from release.
2014-10-23 16:15:18 -07:00
Emily Stark
9d0ab76b87 Fix old cli tests for meteor build outputting directory 2014-10-23 16:01:28 -07:00
David Glasser
b5f284305d update test file thing 2014-10-23 14:06:15 -07:00
Emily Stark
0b0dc46bdb Use Meteor.absoluteUrl() to set ROOT_URL for cordova clients.
If we use `__meteor_runtime_config__.ROOT_URL` directly, as we were
previously, then we end up sending Cordova clients to http:// URLs even
if force-ssl is being used in the app. This is fairly bad on its own
(always sending cordova clients to http:// URLs instead of https://),
but made even worse by the fact that we don't set CORS headers on
force-ssl redirects (that is, the app breaks completely if the client
makes a DDP connection to an http:// URL for a force-ssl app).
2014-10-23 10:32:59 -07:00
David Glasser
b1d3dc23e9 make 'run' test pass 2014-10-22 16:38:04 -07:00
David Glasser
440e3c17a5 improve 'run: run' test 2014-10-22 15:21:41 -07:00
David Glasser
16b0f3627c fix checkout message if app release lacks METEOR@
Reflow a word-wrapped message to look better

All non-slow 'releases' tests pass now
2014-10-22 15:11:57 -07:00
David Glasser
0d64cad216 Fix 'add packages to app' tests
Broken by becf6c4
2014-10-22 14:29:28 -07:00
David Glasser
d41ee867d1 increase flaky test timeout and improve name 2014-10-22 14:26:10 -07:00
David Glasser
cfe1e5d230 test file updates from self-test 2014-10-22 14:26:10 -07:00
ekatek
1a75eb1357 some processing on how we display release name 2014-10-22 12:36:59 -07:00
Emily Stark
d4e28c81e4 Exit 'meteor run' when cordova plugins or platforms change.
We don't have a way to HCP a changed set of plugins or platforms, so
just exit and ask the user to re-run. There are probably some cases
where we don't have to exit (e.g. if you add the android platform, we
probably don't need to exit out of 'meteor run ios'), but we exit in all
cases for simplicity.
2014-10-22 10:40:33 -07:00
ekatek
ae9e4e87b9 adding a test for watching the versions file 2014-10-22 10:40:28 -07:00
Emily Stark
5a522d0ce1 Update old cli tests for new 'meteor remove' text 2014-10-21 12:59:29 -07:00
Emily Stark
96805aa8f8 Update publish-one-arch test for new 'meteor publish' output 2014-10-21 12:58:56 -07:00
David Glasser
44c7aa2d78 fix springboard test 2014-10-17 13:47:21 -07:00
David Glasser
87f4a7826f Get a little farther in springboard test 2014-10-17 13:47:21 -07:00
Justin SB
4ec3cb2a55 Rename LayeredCatalog refresh -> refreshLocalPackages, drop cached resolver 2014-10-17 13:47:20 -07:00
David Glasser
fb21aa42b0 release.load can't throw OfflineError any more
So stop giving tests a way to force-throw it (might break springboard
test; fix this before merging) and stop catching it.

(release.load now just does a single sqlite query!)
2014-10-17 13:47:19 -07:00
David Glasser
cdbaca0b8b release.load no longer needs buildmessage
It used to need buildmessage because catalog.official.getReleaseVersion
used to be capable of rebuilding local packages. Now it can't! Simplify
all call sites.

Note that buildmessage was not actually used to express "no such
release", before or now.
2014-10-17 13:47:19 -07:00
David Glasser
174a059904 Improve cli-test 2014-10-17 13:37:04 -07:00
Justin SB
15375be8f8 Bump timeout for self-test 'package with --name' 2014-10-17 13:24:44 -07:00
Justin SB
66261e0b5a Fix expected exit code in self-test for cordova 2014-10-17 13:24:43 -07:00
Justin SB
eed545e313 Update self-test for new text for meteor remove-platform 2014-10-17 12:56:25 -07:00
Justin SB
78b7896ea5 Update match for new deprecation warning on meteor bundle 2014-10-17 12:49:49 -07:00
Emily Stark
1082efd0b2 Add missing tags to a package self-test 2014-10-17 10:28:31 -07:00
Emily Stark
1126449baa Fix 'meteor show' for unknown version of package 2014-10-16 23:12:55 -07:00
Emily Stark
aa52136c8e Fix 'api.versionsFrom' in skeleton packages created from releases 2014-10-16 15:08:38 -07:00
Emily Stark
7bc75b7a63 Bump test timeout 2014-10-16 14:54:39 -07:00
Emily Stark
a75ba12c6b Fix stack trace when adding package with no compatible builds 2014-10-16 14:53:14 -07:00
Justin SB
864af5061b Fix reported problem with "=> Starting Cordova" wrapping
This was one of the few remaining uses of logTemporary.

Replaced with buildmessage.enterJob
2014-10-15 14:22:44 -07:00
David Glasser
8f3966fbf4 Format deploy console messages to include protocol 2014-10-13 17:36:40 -07:00
Avital Oliver
cb97ed238b Add clarifying comment to failing pre-release versions self-test 2014-10-13 09:56:03 -07:00
Justin SB
73ff027fec Avoid EULA prompt that is breaking self-test
We need to rework the EULA prompt to be once-per-machine anyway.
2014-10-13 09:49:30 -07:00
Avital Oliver
9a6532c640 Work towards fixing the "do-not-update-to-rcs" self-test.
The test was failing because it was written to run against the real
local warehouse, instead of a stubbed one. When initializing the
Sandbox with an explicit warehouse, the test failed because of
incorrect logic piping the right path to the packages database
(in this case "test-packages.data.db" instead of "packages.data.db").

Unfortunately, the test still fails -- this time potentially due to a bug:
After publishing the package for the first time with `--create`,
the next step tries to update but gets the following error:
    There is no package named test:i1iyhj. If you are creating a
    new package, use the --create flag.
2014-10-12 23:08:26 -07:00
Nick Martin
11d43de256 disable test that breaks other tests 2014-10-11 20:44:02 -07:00
Emily Stark
99568e5d9b Add another 'selftest.markStack' 2014-10-11 00:04:27 -07:00
Emily Stark
f102432892 Add some selftest.markStack's and selftest.fail's 2014-10-10 23:39:31 -07:00
Justin SB
6bff6020be Add install-sdk to "cordova builds with server options" test 2014-10-10 19:50:34 -07:00
Slava Kim
4d41c4c7cd Fix failing meteor build self-test 2014-10-10 14:36:43 -07:00
Justin SB
c1cedff917 Add a sleep to the CSS HCP test 2014-10-10 04:45:40 -07:00
Justin SB
4c082bb87a Add install-sdk into cordova self-test 2014-10-10 02:55:38 -07:00
Emily Stark
99228d7c7b Clean up tarball in old-cli-test.
If we don't clean up the tarball, then the following command (`meteor
build`) fails ("Couldn't create tarball"), but for some reason still
exits with code 0. So we then go on to successfully untar the output of
`meteor build`. If we clean up the tarball from `meteor bundle`, we at
least catch the failure by trying to untar a nonexistent file.
2014-10-09 22:21:32 -07:00
Emily Stark
141f3cdf3d Switch to single quotes in 'publish-and-search' selftest 2014-10-09 21:53:29 -07:00
Emily Stark
a3f07028e2 Check a selftest Error to 'selftest.fail' 2014-10-09 16:35:11 -07:00
Sashko Stubailo
e1c745aab6 Merge branch 'devel' into 0.9.4 2014-10-09 11:27:28 -07:00
ekatek
b8d927851a increment client cache format to v2
The client cache in sql-land was broken: it sent over the wrong sync token as the default.
This meant that the server thought that this was a much older client. As a result, any
0.9.3+ packages with '_' or '||' in their versions/dependencies were filtered out. There is no
easy way to undo that sort of filtering without deleting the db for a variety of reasons, and if
we are going to delete the db, we might as well increment the version so we don't have to worry about
consistency.
2014-10-08 22:31:37 -07:00
ekatek
7f134bdfb4 changed the test to catch that we fail to not link in the export variable 2014-10-08 22:06:47 -07:00
David Glasser
659128025d first step towards fixing a test 2014-10-08 18:07:01 -07:00
Emily Stark
d1ee2043f9 Don't say "removed cordova:blah" if it wasn't in the project. 2014-10-08 17:28:08 -07:00