-
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.
- Log in as an admin and go to Site administration > Server > OAuth 2 services.
- Connect the account to a system account. If prompted in Nextcloud, log in with the admin account.
- Go to Site administration > Plugins > Repositories > Manage repositories.
- Enable the Nextcloud repository and click on the settings link.
- Click 'Create a repository instance'.
- Enter a name and make sure it is connected to the Nextcloud service.
- Log out of the Nextcloud admin account.
- Log in to Moodle as a teacher and go to a course.
- Create a file resource.
- In the file picker, select Nextcloud and log in with the teacher account.
- Choose a file and select 'Create an access controlled link to the file' then save the file resource.
- Log out of the Nextcloud teacher account.
- Log in to Nextcloud with the student account.
- Log in to Moodle as a student in the course and check that you can download the file.
- Enter Nextcloud and verify that the file you just downloaded exists in the Moodlefiles folder (and was shared with you by the system account).