Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8c6e568f
Commit
8c6e568f
authored
6 years ago
by
Michael Youngstrom
Browse files
Options
Downloads
Patches
Plain Diff
dont assume the user's id
parent
b8a041d0
No related branches found
Branches containing commit
Tags
release-2020-10-02-11.03
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/external_auth/tests/test_shib.py
+3
-1
3 additions, 1 deletion
openedx/core/djangoapps/external_auth/tests/test_shib.py
with
3 additions
and
1 deletion
openedx/core/djangoapps/external_auth/tests/test_shib.py
+
3
−
1
View file @
8c6e568f
...
...
@@ -222,6 +222,8 @@ class ShibSPTest(CacheIsolationTestCase):
linked users, activates them, and logs them in
"""
inactive_user
=
UserFactory
.
create
(
email
=
'
inactive@stanford.edu
'
)
if
not
log_user_string
:
log_user_string
=
"
user.id: {}
"
.
format
(
inactive_user
.
id
)
inactive_user
.
is_active
=
False
inactive_user
.
save
()
request
=
self
.
request_factory
.
get
(
'
/shib-login
'
)
...
...
@@ -266,7 +268,7 @@ class ShibSPTest(CacheIsolationTestCase):
"""
Wrapper to run base_test_extauth_auto_activate_user_with_flag with {
'
SQUELCH_PII_IN_LOGS
'
: True}
"""
self
.
_test_auto_activate_user_with_flag
(
log_user_string
=
"
user.id: 1
"
)
self
.
_test_auto_activate_user_with_flag
(
log_user_string
=
None
)
@unittest.skipUnless
(
settings
.
FEATURES
.
get
(
'
AUTH_USE_SHIB
'
),
"
AUTH_USE_SHIB not set
"
)
@data
(
*
gen_all_identities
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment