Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-10986 QA tests no longer needed
  3. MDLQA-10392

The Moodle Mobile app option 'Change site' may be changed to 'Log out'

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Open
    • Priority: Minor
    • Affects Version/s: Moodle QA non-runners
    • Fix Version/s: None
    • Labels:
      None

      Description

      This test requires mobile services to be enabled.

      1. Log in as an admin and go to 'Manage tokens' in the Site administration.
      2. Create a web services token for a standard user.
      3. Make a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your Moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool"

      4. Check that by default the tool_mobile_forcelogout value is set to 0
      5. Go to 'Mobile features' in the Site administration and enable the setting 'Force log out' (tool_mobile | forcelogout).
      6. Execute the curl request again and check that the value is set to 1.
      7. Execute the curl request again removing the &section=mobileapp part from the query
      8. Check that you receive a list of several settings and tool_mobile_forcelogout is correctly set to 1.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: