Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-proctoring
Commits
02adb344
Commit
02adb344
authored
Nov 26, 2015
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #239 from edx/cdodge/be-sure-to-store-video-url-as-https
change over any http: links over to https:
parents
74eaaa9f
c0f995de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
edx_proctoring/backends/software_secure.py
+3
-0
edx_proctoring/backends/tests/test_software_secure.py
+3
-3
No files found.
edx_proctoring/backends/software_secure.py
View file @
02adb344
...
...
@@ -191,6 +191,9 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
review_status
=
payload
[
'reviewStatus'
]
video_review_link
=
payload
[
'videoReviewLink'
]
# be sure to change over any http: to https: on the video_review_link
video_review_link
=
video_review_link
.
replace
(
'http:'
,
'https:'
)
# do we already have a review for this attempt?!? We may not allow updates
review
=
ProctoredExamSoftwareSecureReview
.
get_review_by_attempt_code
(
attempt_code
)
...
...
edx_proctoring/backends/tests/test_software_secure.py
View file @
02adb344
...
...
@@ -488,7 +488,7 @@ class SoftwareSecureTests(TestCase):
self
.
assertEqual
(
review
.
review_status
,
review_status
)
self
.
assertEqual
(
review
.
video_url
,
'http://www.remoteproctor.com/AdminSite/Account/Reviewer/DirectLink-Generic.aspx?ID=foo'
'http
s
://www.remoteproctor.com/AdminSite/Account/Reviewer/DirectLink-Generic.aspx?ID=foo'
)
self
.
assertIsNotNone
(
review
.
raw_data
)
self
.
assertIsNone
(
review
.
reviewed_by
)
...
...
@@ -662,7 +662,7 @@ class SoftwareSecureTests(TestCase):
self
.
assertEqual
(
review
.
review_status
,
'Clean'
)
self
.
assertEqual
(
review
.
video_url
,
'http://www.remoteproctor.com/AdminSite/Account/Reviewer/DirectLink-Generic.aspx?ID=foo'
'http
s
://www.remoteproctor.com/AdminSite/Account/Reviewer/DirectLink-Generic.aspx?ID=foo'
)
self
.
assertIsNotNone
(
review
.
raw_data
)
...
...
@@ -760,7 +760,7 @@ class SoftwareSecureTests(TestCase):
self
.
assertEqual
(
review
.
review_status
,
'Suspicious'
)
self
.
assertEqual
(
review
.
video_url
,
'http://www.remoteproctor.com/AdminSite/Account/Reviewer/DirectLink-Generic.aspx?ID=foo'
'http
s
://www.remoteproctor.com/AdminSite/Account/Reviewer/DirectLink-Generic.aspx?ID=foo'
)
self
.
assertIsNotNone
(
review
.
raw_data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment