zulip/zerver/tests
Mateusz Mandera c54b48452d saml: Support syncing custom profile fields with SAML attributes.
Fixes #17277.

The main limitation of this implementation is that the sync happens if
the user authing already exists. This means that a new user going
through the sign up flow will not have their custom fields synced upon
finishing it. The fields will get synced on their consecutive log in via
SAML in the future. This can be addressed in the future by moving the
syncing code further down the codepaths to login_or_register_remote_user
and plumbing the data through to the user creation process.

We detail that limitation in the documentation.
2021-06-08 14:47:33 -07:00
..
fixtures tests: Rename APPLE_JWK to a generic name for re-use in other tests. 2021-05-23 13:30:17 -07:00
images
__init__.py
test_alert_words.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_archive.py do_make_stream_web_public: Update all affected fields. 2021-05-20 15:23:19 -07:00
test_attachments.py
test_audit_log.py auth: Implement a generic OpenID Connect backend. 2021-05-28 09:43:06 -07:00
test_auth_backends.py saml: Support syncing custom profile fields with SAML attributes. 2021-06-08 14:47:33 -07:00
test_bots.py tests: Assert num_events in tornado_redirected_to_list. 2021-05-27 13:16:22 -07:00
test_cache.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_compatibility.py compatibility: Shift functions to new module. 2021-06-05 07:33:25 -07:00
test_create_video_call.py api: Fix encoding of strings in video calls endpoint. 2021-05-07 14:11:48 -07:00
test_custom_profile_data.py api: Include is_billing_admin as an attribute in user response. 2021-06-03 10:27:07 -07:00
test_data_types.py
test_decorators.py validator: Add generic check_or. 2021-06-03 09:49:50 -07:00
test_digest.py
test_docs.py apidocs: Modify tests to reflect new templates. 2021-06-03 10:52:22 -07:00
test_drafts.py python: Strip leading and trailing spaces from docstrings. 2021-05-07 22:42:39 -07:00
test_email_change.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_email_log.py
test_email_mirror.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_email_notifications.py refactor: Move receives_email_notifications tests to designated file. 2021-06-01 15:26:49 -07:00
test_embedded_bot_system.py logging: use assertEqual to assert logging output. 2021-03-25 01:10:03 -07:00
test_event_queue.py test_event_queue: Fill-up default data in missedmessage_hook tests. 2021-06-08 11:10:18 -07:00
test_event_system.py tornado_redirected_to_list: Fix event list leaks in tests. 2021-05-28 09:42:14 -07:00
test_events.py test_events: Run on_commit send_event hooks immediately. 2021-06-04 18:12:39 +05:30
test_example.py test_example: Add discussion of other common pitfalls. 2021-06-07 16:02:12 -07:00
test_external.py
test_github.py
test_gitter_importer.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_home.py api: Expose event_queue_longpoll_timeout_seconds in /register. 2021-06-05 07:37:19 -07:00
test_hotspots.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_i18n.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_import_export.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_integrations_dev_panel.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
test_integrations.py tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
test_internet.py
test_legacy_subject.py
test_link_embed.py backend: Extract check_update_message from update_message_backend. 2021-05-09 20:44:04 -07:00
test_logging_handlers.py
test_management_commands.py send_custom_email: Improve printing of outgoing emails. 2021-04-27 21:36:17 -07:00
test_markdown.py markdown: Increase max rendered message length to 1MB. 2021-06-03 10:10:35 -07:00
test_mattermost_importer.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_message_dict.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_message_edit_notifications.py test_message_edit_notifications: Cleanup irrelevant parameters. 2021-06-08 11:10:18 -07:00
test_message_edit.py message delete: Select Message FOR UPDATE when archiving. 2021-06-04 08:18:17 -07:00
test_message_fetch.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_message_flags.py tornado_redirected_to_list: Make expected_num_events required argument. 2021-05-28 09:42:14 -07:00
test_message_send.py settings: Make MAX_MESSAGE_LENGTH a server-level setting. 2021-06-03 09:26:28 -07:00
test_message_topics.py
test_messages.py docs: Correct “webapp” to “web app”. 2021-05-14 13:15:38 -07:00
test_middleware.py
test_migrations.py
test_mirror_users.py
test_muting_topics.py refactor: Rename backend muting tests to be specific. 2021-04-05 18:04:31 -07:00
test_muting_users.py cache: Use ids instead of UserProfiles for get_muting_users. 2021-06-07 13:41:37 -07:00
test_new_users.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_onboarding.py
test_openapi.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_outgoing_http.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_outgoing_webhook_interfaces.py outgoing_webhook: Improve invalid json handling when parsing response. 2021-04-26 09:32:35 -07:00
test_outgoing_webhook_system.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_populate_db.py
test_presence.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_push_notifications.py refactor: Move receives_email_notifications tests to designated file. 2021-06-01 15:26:49 -07:00
test_queue_worker.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_queue.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_rate_limiter.py
test_reactions.py reactions: Select Message FOR UPDATE when adding/removing. 2021-06-04 08:18:17 -07:00
test_realm_domains.py tests: Clean up tests for realm_domain and update_streams endpoint. 2021-05-12 12:38:16 -07:00
test_realm_emoji.py settings: Rename MAX_EMOJI_FILE_SIZE. 2021-06-02 13:55:15 -07:00
test_realm_export.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_realm_linkifiers.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_realm_playgrounds.py models: Fix bug in unique_together condition on RealmPlayground. 2021-05-24 23:11:41 -07:00
test_realm.py tornado_redirected_to_list: Make expected_num_events required argument. 2021-05-28 09:42:14 -07:00
test_redis_utils.py
test_report.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
test_retention.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_send_email.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_service_bot_system.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_sessions.py migrations: Subscription.is_user_active denormalization - step one. 2021-03-30 09:19:03 -07:00
test_settings.py api: Fix encoding of strings in display settings endpoint. 2021-05-10 10:03:32 -07:00
test_signup.py emails: Make it obvious when registering creates new realm. 2021-06-02 15:18:03 -07:00
test_slack_importer.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_slack_message_conversion.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_soft_deactivation.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_subdomains.py markdown: Rewrite all external images to use Camo. 2021-04-30 10:36:16 -07:00
test_submessage.py submessage: Select Message FOR UPDATE when creating. 2021-06-04 08:18:17 -07:00
test_subs.py test_subs: Add comments about num_events. 2021-05-28 09:42:14 -07:00
test_templates.py
test_thumbnail.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
test_timestamp.py
test_timezone.py docs: Fix spelling errors caught by codespell. 2021-04-26 09:31:08 -07:00
test_tornado.py tornado: Explicitly mark requests as varying by cookie. 2021-04-02 14:55:22 -07:00
test_transfer.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_tutorial.py api: Fix encoding of strings in tutorial endpoint. 2021-05-07 14:06:54 -07:00
test_type_debug.py
test_typing.py tornado_redirected_to_list: Make expected_num_events required argument. 2021-05-28 09:42:14 -07:00
test_upload.py settings: Rename MAX_LOGO_FILE_SIZE. 2021-06-02 13:55:15 -07:00
test_urls.py auth: Implement a generic OpenID Connect backend. 2021-05-28 09:43:06 -07:00
test_user_groups.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_user_status.py tornado_redirected_to_list: Make expected_num_events required argument. 2021-05-28 09:42:14 -07:00
test_users.py tornado_redirected_to_list: Fix event list leaks in tests. 2021-05-28 09:42:14 -07:00
test_webhooks_common.py
test_widgets.py
test_zcommand.py
test_zephyr.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00