Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-318

Create one directory in download.moodle.org in order to have some static files to implement different download tests in core

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Medium
    • Resolution: Fixed
    • download.moodle.org
    • None

    Description

      After one conversation with Petr, we have agreed that it would be great to have some URL in download.moodle.org in order to create some unit tests in core to check downloads of files both using file_get_contents() and componentlib stuff (the 2 ways officially supported in core to perform file downloads).

      We have thought that we need something like this:

      URL: http://download.moodle.org/downloadtests

      CONTENTS:

      1) One BIG (say > 4K) html file, mixing UNIX/MAC/WIN linefeeds and including UTF-8 chars.
      2) One binary file (any image file)
      3) One .zip file of the previous files 1 & 2
      4) One .md5 file of the previous file 3
      5) One README.txt file containing all the md5 for all the files 1-4 and another info about unit tests.

      With that, and leaving those files without modifications will be easy to create the proper unit tests for downloads within core.

      I'll attach the test files here in some minutes.... going to generate them now.

      Attachments

        1. downloadtests.md5
          0.0 kB
        2. downloadtests.zip
          39 kB
        3. README.txt
          1 kB
        4. rsstest.xml
          31 kB
        5. test.html
          3 kB
        6. test.jpg
          test.jpg
          39 kB

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: