-
Functional Test
-
Minor
-
Moodle 3.7
This test requires:
- A Nextcloud test site, such as a Nextcloud instant demo site (valid for 60 minutes) from Try Nextcloud, and 3 Nextcloud accounts, one for the site admin, one for the teacher and one for the student
- A Moodle test site with an OAuth 2 Nextcloud service and the Nextcloud repository enabled.
The QA testing site may be used for running this test, though you'll need admin access (see the QA testing guide for details of how to request admin access) in order to set up the Nextcloud service and enable the Nextcloud repository. Begin just after the hourly reset to give yourself plenty of time to complete the test! Alternatively, you can use your own Moodle test site.
Note: It is important to completely log out of all Nextcloud accounts between separate parts of the test.
- Log in as an admin and go to Site administration > Server > OAuth 2 services.
- Connect the account to a system account.
- Enable the Nextcloud repository, making sure it is connected to the Nextcloud service.
- Set the supported files to Internal and External.
- Edit the teacher role to allow editothersubmission (capability not enabled by default).
- Log in as a teacher and create an assignment requiring a file upload.
- Log in as a student, select a document from your Nextcloud account and select 'Create an access controlled link to the file'.
- Log out of all Nextcloud accounts.
- Log in as the teacher again and access the assignment. Click on the link. Verify that you are prompted to log in to your Nextcloud account.
- Log in with a Nextcloud account different from that of the student who submitted the assignment. Verify you can edit the student's document.
- Mount Nextcloud on your local machine, using the teacher Nextcloud account.
- On your machine, open the document that has been shared with you - you will find it in the "Moodlefiles" directory.
- Add a few comments to the student's document.
- Log out of all Nextcloud accounts.
- Log in as the student, access your assignment and verify you see the teacher's comments in the returned Nextcloud doc.
- As the student, go to your personal Nextcloud and verify the original document has not been altered.