-
Functional Test
-
Minor
-
None
-
Moodle QA non-runners
-
None
For testing this issue:
- You need to have access to console on your system
- Curl and python should be installed on your system.
- Have basic understanding of Json
Prerequisites
The following should be done in the Site administration:
- Enable web services in Advanced features
- Enable Rest protocol in Web services ▶︎ Manage protocols
- Enable mobile web service in Mobile settings
- Create a token for student (Sam student) in Web services ▶︎ Manage tokens
- Save token and use it to replace d49d1fac7125d9fd515c374be8d37c34 in the web service below.
Test
- Run following command from your console
curl 'https://qa.moodle.net/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=d49d1fac7125d9fd515c374be8d37c34§ion=frontpagesettings' | python -m "json.tool"
- Check that the settings values match with the settings in https://qa.moodle.net/admin/settings.php?section=frontpagesettings (for the advanced fields like the frontpage ones you can check directly the values in the config table), except defaultfrontpageroleid that is only viewable if you execute the curl request using an admin token.
- If you execute the curl request removing the section=frontpagesettings you will get apart from the frontpagesettings additional settings like disableuserimages and mygradesurle.
- is a QA test written for
-
MDL-49333 Return additional information in core_get_site_info
- Closed