-
Functional Test
-
Minor
-
Moodle 4.0
Test pre-requisites
- WebDAV server supporting SSL (HTTPS)
- Two WebDAV shares with Basic authentication
- WebDAV repository enabled
- Authenticated user role allowed to view WebDAV repositories
- Two different WebDAV instances in Moodle:
- 'WebDAV HTTP + basic authentication
- 'WebDAV HTTPS + basic authentication
- Each share should contain multiple directories, sub directories, and files on every level.
- Some directories and files must contain non-ascii characters
Test steps
- Go to your private files
- Click on add
- Navigate to each WebDAV repository
- From each of them, make sure:
- You can navigate in every directory
- You can download any file
- Files downloaded are correctly saved (check their content)
WebDAV Apache configuration file which can be refereed
This is an example configuration for the two shares
/etc/apache2/conf.d/webdav.conf
Alias /webdav /var/www/webdav
|
<Location /webdav>
|
Dav On
|
AuthType Basic
|
AuthName "webdav"
|
AuthUserFile /var/www/webdav/passwd.dav
|
Require valid-user
|
</Location>
|
|
DavDepthInfinity On
|