-
Functional Test
-
Minor
-
Moodle 3.3
This test requires three OneDrive accounts, one for the site, one for the student and one for the teacher.
- Log in as an admin and set up and configure the OAuth 2 Microsoft service with a client ID and secret, as described in the documentation OAuth2 Services and OAuth 2 Microsoft service.
- On the OAuth2 services page, connect the account to a system account.
- Enable the OAuth2 authentication plugin.
- Enable the OneDrive repository, making sure it is connected to the Microsoft service.
- Set the supported files to Internal and External.
- Log in as a teacher with editothersubmission capability allowed (not default) and create an assignment requiring a file upload.
- Log in as a student, select a document from your OneDrive account and select 'Create an access controlled link to the file'.
- Log out of all Onedrive accounts.
- Log in as the teacher again and access the assignment. Click on the link.
- If you are not already logged into your personal OneDrive account, you will be prompted to do so. Verify you can edit the student's document. Ensure you log into a different account than the one used to upload the student's submission. Verify you can edit the student's submission.
- Add a few comments to the student's document.
- Log in as the student, access your assignment and verify you see the teacher's comments in the returned OneDrive doc.
- As the student, go to your personal OneDrive and verify the original document has not been altered.
Scheduled task
- Login as an admin.
- Go to "Site administration / Server / Scheduled tasks"
- Look for the "Remove temporary write access from controlled links. (\repository_onedrive\remove_temp_access_task)" scheduled task.
- Click "Run now"
- Confirm to run the scheduled task.
- Check the output.
- Confirm that the scheduled task finishes successfully and that there are no error messages shown.
- Testing discovered
-
MDL-58535 One Drive Repository "Controlled Link" issues
-
- Closed
-