Matjaz Gregoric
344c72b3e2
Use non-ascii PLATFORM_NAME in tests.
...
It should help catch unicode encoding problems earlier.
This also updates python-saml dependency to a version that includes a
patch for unicode strings.
2016-09-23 15:38:23 +02:00
Calen Pennington
bc20a37c2b
Simplify how shards are selected in CI
2016-08-03 16:23:02 -04:00
Ned Batchelder
8571ceabeb
Fix many wrong-assert-type errors
2016-08-03 12:44:41 -04:00
Ned Batchelder
8b1978ba6c
Fix unused-import errors
2016-08-03 12:44:41 -04:00
Calen Pennington
86902e87af
Use the Django TestClient for external_auth shib unit tests, so that middleware is cleaned up properly
2016-06-08 16:43:31 -04:00
Calen Pennington
25c4398125
Convert edxmako to use django_crum to get the current request
2016-06-08 16:35:24 -04:00
Calen Pennington
e731a118a6
Make external_auth.test_openid_provider tests run independently
2016-05-18 14:10:28 -04:00
Calen Pennington
853bfe7a36
Add a TestCase mixin for enabling caches in tests
...
By default, disable all caching in tests, to preserve test independence.
In order to enable caching, inherit from CacheSetupMixin, and specify
which cache configuration is needed.
[EV-32]
2016-05-04 14:51:30 -04:00
Ben Patterson
b9558a90f1
Create a 3rd explicit shard for unit tests.
...
More accurately, this creates a 4th shard because the
last shard is always the default.
2016-04-28 10:09:32 -04:00
Jacek Bzdak
3506d962f8
Fix for error in TNL-363
...
Audit logs were causing open_id provider logins to fail when
username or e-mail address contained unicode data.
2015-12-03 11:27:20 +01:00
Usman Khalid
6cb62f2697
Rebase upgrade Django to v1.8.5
...
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
David Ormsbee
83c91e244c
Convert Shib external auth test to use SharedModuleStoreTestCase.
2015-08-25 08:56:16 -04:00
zubair-arbi
e369939b4b
change redirect url from '/accounts/login' to '/login'
...
ECOM-1734
2015-07-02 18:44:10 +05:00
Braden MacDonald
345fcabd05
Fix CRI-9 so third_party_auth pipeline always completes, and consolidate auto-enrollment code
2015-06-18 20:57:19 -07:00
Carson Gee
681b9a5ea7
Remove anonymous caching when SSL is enabled
2015-04-30 10:50:19 -04:00
Ned Batchelder
425b766965
Remove TEST_DATA_MOCK_MODULESTORE
2015-03-17 17:21:52 -04:00
Ned Batchelder
7d799e34f3
Remove unused imports
2015-03-17 07:10:31 -04:00
Calen Pennington
b353ed2ea2
Better support specifying of modulestore configuration in test cases
...
The existing pattern of using `override_settings(MODULESTORE=...)` prevented
us from having more than one layer of subclassing in modulestore tests.
In a structure like:
@override_settings(MODULESTORE=store_a)
class BaseTestCase(ModuleStoreTestCase):
def setUp(self):
# use store
@override_settings(MODULESTORE=store_b)
class ChildTestCase(BaseTestCase):
def setUp(self):
# use store
In this case, the store actions performed in `BaseTestCase` on behalf of
`ChildTestCase` would still use `store_a`, even though the `ChildTestCase`
had specified to use `store_b`. This is because the `override_settings`
decorator would be the innermost wrapper around the `BaseTestCase.setUp` method,
no matter what `ChildTestCase` does.
To remedy this, we move the call to `override_settings` into the
`ModuleStoreTestCase.setUp` method, and use a cleanup to remove the override.
Subclasses can just defined the `MODULESTORE` class attribute to specify which
modulestore to use _for the entire `setUp` chain_.
[PLAT-419]
2015-02-04 09:09:14 -05:00
Renzo Lucioni
a8bed5ce98
Make logistration generally available if feature flag is active
...
Makes logistration available at /login and /register as well as /accounts/login/ and /accounts/register/. In addition:
- Adds support for redirect URLs in third party auth for combined login/registration page
- Adds support for external auth on the combined login/registration page
- Removes old login and registration acceptance tests
- Adds deprecation warnings to old login and register views
- Moves third party auth util to student_account
- Adds exception for microsites (theming)
2015-01-30 13:28:30 -05:00
Jason Bau
0ba1828f93
Fix shib code to handle course.enrollment_domain=None
2015-01-14 14:36:33 -08:00
Will Daly
8580620b52
Revert "If feature flag is enabled, replace the old login/registration pages with the new combined login/registration page."
...
This reverts commit f40447b3c8 .
Conflicts:
lms/urls.py
Revert "Add support for external auth on the combined login/registration page"
This reverts commit 988753395f .
Conflicts:
lms/templates/courseware/mktg_course_about.html
lms/urls.py
2014-12-05 10:41:42 -05:00
Will Daly
988753395f
Add support for external auth on the combined login/registration page
...
Add support for redirect URLs in third party auth for combined login/registration page
Remove old login/registration acceptance tests
Add deprecation warnings to old login and register views
Move third party auth util to student_account
Add exception for microsites
2014-12-04 09:34:51 -05:00
Jesse Zoldak
121b31309d
Small fixes to modulestore test refactoring
2014-12-02 07:09:37 -05:00
Jesse Zoldak
bf3b87bc64
Clean up all modulestore testcases
...
Move modulestore config for tests to an importable location
Disable pylnt warning for lms imports in common tests
Refactor all testcases that loaded all xml courses
TE-610
TE-489
2014-12-02 07:09:36 -05:00
Sarina Canelake
b127d2844b
s/pylint: disable=C0103/pylint: disable=invalid-name/
2014-12-01 11:22:09 -05:00
stv
cf9308144d
Fix PEP8: E302 expected 2 blank lines, found 1
2014-11-10 11:00:11 -08:00
Diana Huang
0c6cba73ac
Handle OpenID errors for POST requests.
...
ECOM-441
2014-10-15 16:33:31 -04:00
Renzo Lucioni
bd7715a393
Clean up after track selection experiment
2014-10-14 13:56:49 -04:00
David Baumgold
9c81004fc7
Remove test cleanups
...
Since `ddt` should make them unnecessary
2014-10-02 12:18:16 -04:00
David Baumgold
62fcc6f23a
Use ddt for shib tests
2014-10-02 12:18:15 -04:00
Waheed Ahmed
a1e911ae39
Fixed InvalidKeyError in course handler in studio.
...
LMS-11141
2014-09-12 15:16:36 +05:00
Jason Bau
4d5a2380f1
external_auth: handle request.META values as str, not unicode
2014-09-03 12:07:35 -07:00
Will Daly
714f9bb69f
Auto enroll students even if there are multiple course modes
...
Add session middleware to an external auth test to fix a test failure with the auto-registration AB-test changes
2014-08-15 10:26:27 -04:00
Waheed Ahmed
05b87fd99b
Implemented process_response method to clear requestcontext global variable in mako middleware.
...
LMS-6622
2014-08-06 19:58:20 +05:00
Jason Bau
e9022e74a8
Hotfix course_specific_reg/login for OpaqueKeys
2014-07-16 10:18:21 -04:00
Don Mitchell
639658913d
Refactor split migrator
...
LMS-2936
Also, a bunch of ancillary cleanups.
Conflicts:
common/lib/xmodule/xmodule/modulestore/tests/test_publish.py
Conflicts:
cms/djangoapps/contentstore/management/commands/migrate_to_split.py
cms/djangoapps/contentstore/management/commands/tests/test_rollback_split_course.py
common/lib/xmodule/xmodule/modulestore/__init__.py
common/lib/xmodule/xmodule/modulestore/mixed.py
common/lib/xmodule/xmodule/modulestore/mongo/draft.py
common/lib/xmodule/xmodule/modulestore/split_migrator.py
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
common/lib/xmodule/xmodule/modulestore/tests/test_split_migrator.py
common/lib/xmodule/xmodule/modulestore/tests/test_split_w_old_mongo.py
2014-07-14 11:20:29 -04:00
Nimisha Asthagiri
8855b12b76
Update tests to allow LMS tests to use published branch setting.
...
Conflicts:
cms/djangoapps/contentstore/views/tests/test_container_page.py
common/djangoapps/external_auth/tests/test_shib.py
common/djangoapps/student/tests/test_login.py
common/lib/xmodule/xmodule/modulestore/tests/django_utils.py
common/lib/xmodule/xmodule/modulestore/tests/factories.py
common/lib/xmodule/xmodule/modulestore/xml_importer.py
lms/djangoapps/branding/tests.py
lms/djangoapps/courseware/tests/test_submitting_problems.py
lms/djangoapps/courseware/tests/test_video_handlers.py
lms/djangoapps/instructor_task/tests/test_base.py
lms/djangoapps/instructor_task/tests/test_integration.py
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
ea32529866
Fix all modulestore calls to pass in user ids.
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
a9213509c3
Enable Mixed Modulestore STUD-1540
...
Refactor get_parent_locations STUD-1663
2014-06-26 18:00:11 -04:00
Julia Hansbrough
6ccb11f03e
Change Location, CourseLocator, etc to reference opaque-keys library
2014-05-30 20:32:38 +00:00
Calen Pennington
cfcbdc0145
Move to OpaqueKey implementations from the external library
...
[LMS-2757]
2014-05-29 17:03:35 -04:00
Calen Pennington
cd862b3253
Merge remote-tracking branch 'edx/master' into opaque-keys
...
Conflicts:
cms/djangoapps/contentstore/tests/test_contentstore.py
cms/djangoapps/contentstore/views/component.py
cms/djangoapps/contentstore/views/item.py
cms/djangoapps/contentstore/views/preview.py
cms/djangoapps/contentstore/views/tests/test_container.py
cms/static/js/spec/views/unit_spec.js
cms/static/js/utils/module.js
cms/templates/container.html
cms/templates/studio_vertical_wrapper.html
cms/templates/studio_xblock_wrapper.html
common/djangoapps/student/views.py
lms/templates/notes.html
lms/templates/textannotation.html
lms/templates/videoannotation.html
2014-05-22 10:52:00 -04:00
Jason Bau
411dc09af7
Autoactivate inactive users on external_auth login
...
Conditional on existing flag BYPASS_ACTIVATION_EMAIL_FOR_EXTAUTH
2014-05-19 13:35:35 -07:00
Calen Pennington
16faafded9
Fix ssl redirection test
2014-05-13 14:13:45 -04:00
Calen Pennington
37b1a2f738
Remove calls to loc_mapper
2014-05-12 16:34:53 -04:00
Calen Pennington
a4df0e1515
Fix failing tests
2014-05-12 14:45:38 -04:00
Calen Pennington
85ca7db7a6
Fix merge conflicts relative to master
2014-05-12 11:42:21 -04:00
Calen Pennington
19acdd31e8
Merge remote-tracking branch 'edx/master' into opaque-keys-merge-master
...
Conflicts:
cms/djangoapps/contentstore/views/public.py
common/djangoapps/external_auth/tests/test_ssl.py
common/djangoapps/student/views.py
lms/djangoapps/dashboard/sysadmin.py
lms/templates/notes.html
2014-05-12 11:35:03 -04:00
Carson Gee
cbf525f6cf
Fix infinite redirect loop on logout caused by django caching
2014-05-09 14:22:11 -04:00
Carson Gee
5452de20d8
Modified ssl certificate authentication to handle next redirection
...
Makes small changes in lms and cms both so that user's go to the
original page they intended to if they weren't already logged in
2014-05-09 14:22:10 -04:00