-
Functional Test
-
Blocker
-
None
-
Original - DO NOT REPORT TEST RESULTS HERE
This test required 3 Google accounts as below:
- 2 regular accounts: one for the site and one for the teacher.
- 1 G-Suite Paid account or 1 organization account: for the student. Because the Temporary access feature - Create a share with expiration time - is only available for paid G-Suite accounts.
Note: It is important to log out of all Google accounts between the different stages in this test otherwise Google will open the document using whatever is the first account in the list of accounts, and even if you have edit access for another account it will appear read-only until you switch users.
- Log in as an admin and set up and configure the OAuth 2 Google service with a client ID and secret, as described in the documentation OAuth2 Services and OAuth 2 Google service.
- Enable the OAuth2 authentication plugin.
- Enable the Google Drive repository, making sure it is connected to the Google service.
- Set the supported files to "Internal and External".
- Set the "Default return type" to "External (only links stored in Moodle)".
- Go again to the OAuth2 services page, connect the account to a site Google account and consent the access to Google drive.
- Edit the default teacher role permissions and add the capability "mod/assign:editothersubmission".
- As a teacher, create an assignment that allows file submissions.
- Log out of all Google accounts.
- Log in as a student, select a document from your Google account and select 'Create an access controlled link to the file'.
- Log out of all Google accounts.
- Log in as the teacher. Access the assignment. Click on the link. Verify that you are prompted to log in to your Google account.
- Log in with a different Google account than the one used to upload the student's submission. Verify you can edit the student's document.
- Make some changes, such as adding text, to the student's document.
- Log out of all Google accounts.
- Log in as the student, access your assignment and verify you see the changes that the teacher made in the returned Google doc.
- As the student, go to your personal Google drive and verify the original document has not been altered.