zulip/zerver/tests
Greg Price 119bc14182 alias domains: Add a v1 of this feature.
The main limitation of this version is that it's controlled entirely
from settings, with nothing in the database and no web UI or even
management command to control it.  That makes it a bit more of a
burden for the server admins than it'd ideally be, but that's fine
for now.

Relatedly, the web flow for realm creation still requires choosing a
subdomain even if the realm is destined to live at an alias domain.

Specific to the dev environment, there is an annoying quirk: the
special dev login flow doesn't work on a REALM_HOSTS realm.  Also,
in this version the `add_new_realm` and `add_new_user` management
commands, which are intended for use in development environments only,
don't support this feature.

In manual testing, I've confirmed that a REALM_HOSTS realm works for
signup and login, with email/password, Google SSO, or GitHub SSO.
Most of that was in dev; I used zulipstaging.com to also test
 * logging in with email and password;
 * logging in with Google SSO... far enough to correctly determine
   that my email address is associated with some other realm.
2017-11-03 13:38:59 -07:00
..
images Update types of images accepted as avatars. 2016-07-26 16:36:47 +05:30
__init__.py Fix missing zerver/tests/__init__.py. 2016-04-11 22:34:22 -07:00
test_alert_words.py tests: Fix send_message calls in test_alert_words.py. 2017-10-28 10:20:59 -07:00
test_attachments.py lint: Replace `pk` with `id` where they are equivalent. 2017-10-06 12:52:12 -07:00
test_audit_log.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_auth_backends.py GoogleSubdomainLoginTest: Suppress unnecessary logging output. 2017-10-27 16:06:03 -07:00
test_bots.py Embedded bots: Add support for creating embedded bots via the API. 2017-10-25 16:13:29 -07:00
test_bugdown.py refactor: Replace all __unicode__ method with __str__. 2017-11-02 11:01:47 -07:00
test_compatibility.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_custom_profile_data.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_decorators.py decorators: Use human_users_only more aggressively. 2017-10-27 15:16:13 -07:00
test_docs.py team: Tweak some text. 2017-10-31 12:44:05 -07:00
test_email_change.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_email_mirror.py tests: Enable call_consume_in_tests for email mirror queue. 2017-10-26 14:53:27 -07:00
test_embedded_bot_system.py Fix send_message calls in test_embedded_bot_system.py. 2017-10-28 10:20:59 -07:00
test_event_queue.py tests: Fix send_message calls in test_event_queue.py. 2017-10-28 10:20:59 -07:00
test_events.py actions.py: Rename `do_remove_reaction()` to `do_remove_reaction_legacy()`. 2017-10-31 15:42:35 -07:00
test_export.py tests: Fix send_message calls in test_export.py. 2017-10-28 10:20:59 -07:00
test_external.py py3: Remove "from six.moves import range". 2017-10-17 23:28:14 -07:00
test_home.py Remove `active` parameter from `do_create_user()`. 2017-10-28 10:32:01 -07:00
test_hotspots.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_i18n.py Revert "locale: Fix incorrect locale name for zh-Hans." 2017-10-06 10:09:08 -07:00
test_link_embed.py tests: Fix send_message calls in test_link_embed.py. 2017-10-28 10:20:59 -07:00
test_logging_handlers.py logging: Clear out the Django default config on logger `django`. 2017-10-12 22:45:14 -07:00
test_management_commands.py test_management_commands: Add check for expected system exit. 2017-10-20 09:16:38 -07:00
test_message_edit_notifications.py Extract get_stream_recipient(). 2017-10-28 17:57:39 -07:00
test_messages.py Allow generic bots to be mentioned. 2017-11-03 07:45:18 -07:00
test_middleware.py urls: Move the report endpoints to be API-style routes. 2017-10-17 22:05:56 -07:00
test_muting.py Extract get_stream_recipient(). 2017-10-28 17:57:39 -07:00
test_narrow.py search: Add tests for multiple unicode search operands. 2017-10-31 10:53:16 -07:00
test_new_users.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_notifications.py notifications: Instead of regex use lxml for fixing emojis. 2017-10-28 10:38:33 -07:00
test_outgoing_webhook_interfaces.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_outgoing_webhook_system.py settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS. 2017-10-02 16:43:54 -07:00
test_presence.py refactor: Replace all __unicode__ method with __str__. 2017-11-02 11:01:47 -07:00
test_push_notifications.py refactor: Replace super(.*self) with Python 3-specific super(). 2017-10-30 14:30:25 -07:00
test_queue_worker.py refactor: Replace super(.*self) with Python 3-specific super(). 2017-10-30 14:30:25 -07:00
test_reactions.py tests: Fix send_message calls in test_reactions.py. 2017-10-28 10:20:59 -07:00
test_realm.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_realm_domains.py subdomains: Hardcode REALMS_HAVE_SUBDOMAINS=True. 2017-10-02 16:42:43 -07:00
test_realm_emoji.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_realm_filters.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_report.py urls: Move the report endpoints to be API-style routes. 2017-10-17 22:05:56 -07:00
test_retention.py refactor: Replace super(.*self) with Python 3-specific super(). 2017-10-30 14:30:25 -07:00
test_service_bot_system.py service bot tests: Remove bot stream subscription. 2017-11-02 14:44:11 -07:00
test_sessions.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_settings.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_signup.py alias domains: Tweak a test helper that assumes hosts are subdomains. 2017-10-30 18:29:29 -07:00
test_soft_deactivation.py tests: Fix send_message calls in test_soft_deactivation.py. 2017-10-28 10:20:59 -07:00
test_subdomains.py alias domains: Add a v1 of this feature. 2017-11-03 13:38:59 -07:00
test_subs.py refactor: Replace all __unicode__ method with __str__. 2017-11-02 11:01:47 -07:00
test_templates.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_timestamp.py analytics: Enforce various datetime arguments are in UTC. 2017-10-05 11:22:06 -07:00
test_tornado.py refactor: Replace super(.*self) with Python 3-specific super(). 2017-10-30 14:30:25 -07:00
test_tutorial.py tests: Fix send_message calls in test_tutorial.py. 2017-10-28 10:20:59 -07:00
test_type_debug.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_typing.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_unread.py Extract get_stream_recipient(). 2017-10-28 17:57:39 -07:00
test_upload.py test_uploads: Extract 'use_s3_backend' to test helpers. 2017-10-30 21:56:31 -07:00
test_urls.py errors: Force a super-simpler handler for 400 errors. 2017-10-11 20:43:36 -07:00
test_user_groups.py user-groups: Add basic backend for UserGroup model. 2017-10-31 15:16:14 -07:00
test_users.py Extract get_stream_recipient(). 2017-10-28 17:57:39 -07:00
test_zephyr.py zephyr: Update path to process_cache for repository split. 2017-10-05 12:35:20 -07:00
tests.py retention-period: Add retention period to front-end admin organization settings. 2017-03-25 17:57:18 -07:00