Steve Howell
643f2e03e0
Extracted zjsunit/output.js
2016-07-30 14:54:30 -07:00
Steve Howell
b3bc829f61
Extracted zjsunit/render.js
2016-07-30 14:54:30 -07:00
Steve Howell
9acbff3c83
Extracted zjsunit/namespace.js
2016-07-30 14:54:30 -07:00
Steve Howell
6a65b3482c
Move index.js to frontend_tests/zjsunit.
2016-07-30 14:54:30 -07:00
Tim Abbott
f0bf883772
provision: Retry node_modules setup on failures.
...
`npm install` fails nondeterministically occasionally, and this makes
such failures likely to be automatically resolved in most cases by
simple retrying.
2016-07-30 10:09:23 -07:00
Tim Abbott
315766ae02
provision: Provide a nice success message.
2016-07-30 10:09:23 -07:00
Tim Abbott
ed95c34b83
check-templates: Remove now-removed terms.html.
2016-07-30 09:56:54 -07:00
Steve Howell
85859fb992
Add notes about JS unit test HTML output in testing.md.
2016-07-29 22:07:24 -07:00
Steve Howell
8741903a14
Add comment to STYLESHEETS section of settings.py.
2016-07-29 22:07:24 -07:00
Steve Howell
c57bbf6c77
Introduce index.html for test-js-with-node output.
...
We now have an index.html for test-js-with-node output
that links to specific HTML files for various handlebar
tests.
2016-07-29 22:07:24 -07:00
Steve Howell
1d7a6c9941
Fix output from test_tr_tag_settings().
...
For its HTML output, it was using a wrong label and a CSS
setting that clobbered other output.
2016-07-29 22:07:24 -07:00
Steve Howell
f301ccdb3e
Move source code for settings_tab() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
b3553859f9
Move source code for propagate_notification_change() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
9e8bff5628
Move source code for message_edit_form() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
83a92704ee
Move source code for admin_tab() in templates.js
2016-07-29 22:07:24 -07:00
Steve Howell
ec12ea5773
Consolidate bookend tests in node_tests/templates.js.
...
In templates.js we want to enforce outputting just
one output file per template, and we also keep the source
alphabetical by template name. This isn't a permanent
decision, but it makes organizing the ouput a little
easier for now.
2016-07-29 22:07:24 -07:00
Steve Howell
5a3a4595f1
Move source code for admin_emoji_list() to top of its file.
...
We alphabetize the functions in node_tests/templates.js. This
makes it easier for the test output to be rendered in order.
2016-07-29 22:07:24 -07:00
Steve Howell
87dbdaac68
Extract write_handlebars_output() in node tests.
2016-07-29 22:07:24 -07:00
Steve Howell
6b8e2c406b
Write node test output to var/test-js-with-node/output.html
...
This also fixes some CSS path issues that were regressed
when files were written to 'var.'
2016-07-29 22:07:24 -07:00
Christie Koehler
31efecf03d
Add HelloWorld webhook integration + Walkthough.
...
Improves webhook integration docs and Hello World webhook. Includes
many suggested improvements from @timabbott and @tomaszkolek.
2016-07-29 21:38:40 -07:00
Steve Howell
2a37dafcbb
Write untested_url_report.txt.
2016-07-29 21:26:51 -07:00
Steve Howell
8b13530712
Add tools/analyze-url-coverage
2016-07-29 21:23:33 -07:00
Steve Howell
21f83afe3a
Add --url-coverage option to ./tools/test-backend.
2016-07-29 21:23:33 -07:00
Tim Abbott
297566510c
test_activity: Increase expected query count by 1.
...
This is required because the Zulip UserProfile caching logic has
changed with 8e5e6a06f2
, and sometimes
the current user will not be in the cache.
2016-07-29 21:15:10 -07:00
Tim Abbott
f7083b4079
test_templates: Fix Python 3 compatibility.
2016-07-29 21:11:27 -07:00
Tim Abbott
51672f9ddc
Remove now-unused zulip_com template context variable.
2016-07-29 20:47:42 -07:00
acrefoot
b7ccf64c79
Move Zulip's TOS to TERMS_OF_SERVICE markdown file.
...
This reimplements zulip.com/terms using the new markdown system.
2016-07-29 20:47:42 -07:00
acrefoot
e568dbc76f
Add TERMS_OF_SERVICE setting.
...
This new setting allows the server administrator to add a custom
Terms of Service page by supplying the path to a markdown file.
Also adds a test.
2016-07-29 20:47:31 -07:00
Tim Abbott
700e803840
settings: Add new DEBUG_RATE_LIMITING setting.
...
This exists primarily in order to allow us to mock settings.DEBUG for
the purposes of rate limiting, without actually mocking
settings.DEBUG, which I suspect Django never intended one to do, and
thus caused some very strange test failures (see
https://github.com/zulip/zulip/pull/776 for details).
2016-07-29 19:32:02 -07:00
Eklavya Sharma
5691ca61b0
Add tests for email_mirror management command.
2016-07-29 19:13:52 -07:00
Steve Howell
9fb071947d
Remove expected_run_time from @slow test decorator.
2016-07-29 16:41:21 -07:00
Steve Howell
438a118ea5
Simplify enforce_timely_test_completion().
...
This will lead to minor differences in the warnings that
people see when they run tests that are slow. We call out
the slowness a little more clearly from a visual standpoint,
and we simplify the calculation of the slowness threshold.
We still allow more time for tests with the `@slow` decorator
to run, but we don't use their expected_run_time.
2016-07-29 16:41:21 -07:00
Steve Howell
f67b56702a
Remove @slow decorators for tests that are no longer slow.
...
These tests aren't exactly zippy, but they don't even make
the top 100 slow tests.
2016-07-29 16:41:21 -07:00
Steve Howell
4556bf528f
Add --report-slow-tests option to tools/test-backend.
2016-07-29 16:41:20 -07:00
Tim Abbott
29b04fe654
settings: Cleanup SOCIAL_AUTH_GITHUB_KEY to match documentation.
2016-07-29 15:16:28 -07:00
Tim Abbott
2053c746c1
docs: Document GitHubAuthBackend.
2016-07-29 15:05:24 -07:00
Tim Abbott
3b5629739d
docs: Cleanup typos and language in translating guide.
2016-07-29 14:49:51 -07:00
Tim Abbott
eef66ee031
Document GitHub authentication.
2016-07-29 12:49:10 -07:00
Tim Abbott
6b2b7ab3ff
Rename GitHubBackend to GitHubAuthBackend for consistency.
2016-07-29 12:49:10 -07:00
Umair Khan
d43b031a32
Add tests to verify GitHub backend.
2016-07-29 12:49:10 -07:00
Umair Khan
86125080d1
Create SocialAuthMixin generic class around GitHub auth backend.
...
This will simplify the process of adding new social authentication
backends to Zulip.
2016-07-29 12:49:10 -07:00
Umair Khan
c1d8ad3d9a
Add GitHub login button to login page.
2016-07-29 12:49:10 -07:00
Umair Khan
80d62de40a
Add GitHub authentication.
...
Fixes : #1042
2016-07-29 12:49:10 -07:00
Tim Abbott
d9b5f3089b
prod_settings: Cleanup intro to Google auth documentation.
2016-07-29 12:49:01 -07:00
Umair Khan
7531d9679b
Sort language dropdown list.
2016-07-29 11:58:41 -07:00
Umair Khan
2edb79776e
Calculate translation percentages.
...
Fixes : #1397
2016-07-29 11:58:41 -07:00
Steve Howell
f3962994b5
Fix regression for running migrations during tests.
...
When running ./tools/test-backend, the script to generate
fixtures, ./tools/setup/generate-fixtures, looks for a file
called migration-status to determine whether it can short
circuit doing database migrations. This file got moved as
part of the effort to put files in "var," but the existence
check was still looking for that file in its old location.
2016-07-29 08:57:56 -07:00
Tomasz Kolek
971939caba
Fix extra footer bullet in portico.html when register_link_disabled.
...
Fixes : #1462 .
2016-07-29 08:51:09 -07:00
Tim Abbott
568dd0e142
lint-all: Improve regular expression for json_error.
2016-07-28 16:19:55 -07:00
Umair Khan
0aa72cb347
Point registration to correct url.
...
While logging through GitHub if the realm of the user doesn't
exist then we are redirected to registration page but the action
points to the complete url of the GitHub oAuth overflow.
2016-07-28 15:27:22 -07:00