Details

    • Type: Functional Test Functional Test
    • Status: Passed
    • Affects Version/s: Moodle 2.2
    • Fix Version/s: Moodle 2.2
    • Component/s: Hub, Teacher
    • Labels:
      None

      Description

      1. Login as a teacher (with the capability moodle/community:download allowed), turn editing on in the course and add a community block.
      2. Follow the search link in the community block.
      3. Search for a community course, selecting Mooch as the hub and 'courses I can download'.
      4. Check that the search results are the same as when searching http://hub.moodle.org directly.
      5. Select a course and click the download button.
      6. Check that a message is displayed stating that the backup has been saved in your private files.
      7. Click yes to restore the course.
      8. Select appropriate options and restore the course.
      9. Check that the course is restored as expected.

        Issue Links

          Activity

          Hide
          Nicolas Martignoni added a comment - - edited

          This is failing at step 8: the restore process is aborted with following error message: "DDL sql execution error".

          Incidentally, one gets the same message when trying to duplicate a resource or an activity (clicking on the x2 icon).

          Show
          Nicolas Martignoni added a comment - - edited This is failing at step 8: the restore process is aborted with following error message: "DDL sql execution error". Incidentally, one gets the same message when trying to duplicate a resource or an activity (clicking on the x2 icon).
          Hide
          Helen Foster added a comment -

          Nicolas, thanks for running this test. Please could you report the problem as a Moodle (MDL) issue as described in http://docs.moodle.org/dev/Testing_credits then it can be investigated by a developer and fixed.

          Show
          Helen Foster added a comment - Nicolas, thanks for running this test. Please could you report the problem as a Moodle (MDL) issue as described in http://docs.moodle.org/dev/Testing_credits then it can be investigated by a developer and fixed.
          Hide
          Nicolas Martignoni added a comment -

          Done. Sorry Helen, didn't remember that I should myself create issues.

          Show
          Nicolas Martignoni added a comment - Done. Sorry Helen, didn't remember that I should myself create issues.
          Hide
          Michael de Raadt added a comment -

          I was able to complete this on qa.moodle.net and on my own test server without any problem.

          Jerome will continue working on the problem reported by Nicolas, but I think we can detach that MDL from this test and pass the test.

          I would suggest a couple of clarifications to the test instructions:

          • In step 1, the teacher has to log into a course. I tried this from first from the site level where the community finder block is already present on qa.moodle.net, but then as a teacher I did not have permission to restore a course in that context.
          • In step 8, the restore will need to merge course content into an existing course that the teacher is involved with; they cannot create a new course.
          Show
          Michael de Raadt added a comment - I was able to complete this on qa.moodle.net and on my own test server without any problem. Jerome will continue working on the problem reported by Nicolas, but I think we can detach that MDL from this test and pass the test. I would suggest a couple of clarifications to the test instructions: In step 1, the teacher has to log into a course. I tried this from first from the site level where the community finder block is already present on qa.moodle.net, but then as a teacher I did not have permission to restore a course in that context. In step 8, the restore will need to merge course content into an existing course that the teacher is involved with; they cannot create a new course.
          Hide
          Helen Foster added a comment -

          Thanks Michael, I have amended the master copy of this test as suggested.

          Show
          Helen Foster added a comment - Thanks Michael, I have amended the master copy of this test as suggested.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: