Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60091

Improvements to the built-in WS test client

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Documentation on enabling WS: https://docs.moodle.org/33/en/Using_web_services

      1. Make sure the capabilities to use all webservice protocols are enabled in Authenticated users roles (webservice/***:use)
      2. Enable web services authentication plugin
      3. Enable Web services
      4. Enable all WS protocols
      5. Create a token for a user (admin or manager) - use mobile service or create a new one. Note: Some of the test functions aren't provided by the mobile web service so you may need to create a new external service for those.
      6. Open Site administration>Development>WS test client and execute each available function using both simple and token auth, try using different protocols.

      P.S. If MDL-60033 is not integrated yet, cherry-pick it for testing

      Show
      Documentation on enabling WS: https://docs.moodle.org/33/en/Using_web_services Make sure the capabilities to use all webservice protocols are enabled in Authenticated users roles (webservice/***:use) Enable web services authentication plugin Enable Web services Enable all WS protocols Create a token for a user (admin or manager) - use mobile service or create a new one. Note: Some of the test functions aren't provided by the mobile web service so you may need to create a new external service for those. Open Site administration>Development>WS test client and execute each available function using both simple and token auth, try using different protocols. P.S. If MDL-60033 is not integrated yet, cherry-pick it for testing
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      wip-MDL-60091-master

      Description

      This was initially part of MDL-60030 but since I'm not pushing that issue forward atm, I'll create a new issue for the test client only, I think it can be very useful.

      As part of this issue I change the naming of the testclient forms:
      was: WSFUNCTIONNAME_form
      now: WSFUNCTIONNAME_testclient_form

      There is already one naming conflict when the form that has nothing to do with testclient is displayed in the function selection popup. There is a WS function enrol_manual_enrol_users and there is a form in the same plugin enrol_manual_enrol_users_form that has nothing to do with WS test client (3.4dev only)

        Attachments

        1. after.png
          60 kB
          Marina Glancy
        2. before_with_wrong_function.png
          56 kB
          Marina Glancy
        3. invalid_parameter_recursive.png
          67 kB
          Mark Nelson

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Juan Leyva
              Integrator:
              Jake Dallimore
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17