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

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Component/s: download.moodle.org
    • Labels:
      None
    • Rank:
      25223

      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.

      1. downloadtests.md5
        0.0 kB
        Eloy Lafuente (stronk7)
      2. README.txt
        1 kB
        Eloy Lafuente (stronk7)
      3. rsstest.xml
        31 kB
        Eloy Lafuente (stronk7)
      4. test.html
        3 kB
        Eloy Lafuente (stronk7)
      1. test.jpg
        39 kB

        Issue Links

          Activity

          Hide
          Eloy Lafuente (stronk7) added a comment -

          Adding some people here. Feel free to comment. Ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Adding some people here. Feel free to comment. Ciao
          Hide
          Eloy Lafuente (stronk7) added a comment -

          One html file with UTF-8 charts and UNIX/DOS/MAC linefeeds.

          Show
          Eloy Lafuente (stronk7) added a comment - One html file with UTF-8 charts and UNIX/DOS/MAC linefeeds.
          Hide
          Eloy Lafuente (stronk7) added a comment -

          One binary file attached.

          Show
          Eloy Lafuente (stronk7) added a comment - One binary file attached.
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Attached one zipped folder and required md5 file to be downloaded using componentlib.

          Show
          Eloy Lafuente (stronk7) added a comment - Attached one zipped folder and required md5 file to be downloaded using componentlib.
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Attached one README.txt file explaining all the rest. Contains md5 and size for each file in the directory.

          Show
          Eloy Lafuente (stronk7) added a comment - Attached one README.txt file explaining all the rest. Contains md5 and size for each file in the directory.
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Alll those FIVE files are the ones that should be 100% "sticky" in the new http://download.moodle.org/downloadtests URL...

          MD (y/n/comments)?

          Ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Alll those FIVE files are the ones that should be 100% "sticky" in the new http://download.moodle.org/downloadtests URL... MD (y/n/comments)? Ciao
          Hide
          Dan Poltawski added a comment -

          It might also be useful to have a static RSS file with some whacky data in it to test from too.

          Show
          Dan Poltawski added a comment - It might also be useful to have a static RSS file with some whacky data in it to test from too.
          Hide
          Eloy Lafuente (stronk7) added a comment -

          One valid rss feed to tests uploaded. Good point!

          Show
          Eloy Lafuente (stronk7) added a comment - One valid rss feed to tests uploaded. Good point!
          Hide
          Eloy Lafuente (stronk7) added a comment -

          README.txt file updated with rsstest.xml specs.

          Show
          Eloy Lafuente (stronk7) added a comment - README.txt file updated with rsstest.xml specs.
          Hide
          Petr Škoda added a comment -

          clearing security flag, going to use the attachments for tests...

          Show
          Petr Škoda added a comment - clearing security flag, going to use the attachments for tests...
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Requesting for confirmation...

          Martin should we make public this files for testing downloads as specified above?

          Ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Requesting for confirmation... Martin should we make public this files for testing downloads as specified above? Ciao
          Hide
          Eloy Lafuente (stronk7) added a comment -

          ping

          Show
          Eloy Lafuente (stronk7) added a comment - ping
          Hide
          Eloy Lafuente (stronk7) added a comment -

          pong

          Show
          Eloy Lafuente (stronk7) added a comment - pong
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Resolving as fixed.

          I've uploaded the files to:

          http://download.moodle.org/unittest/README.txt
          (and so on)

          Also, I've created MDL-17884 about to implement the proper tests.

          Ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Resolving as fixed. I've uploaded the files to: http://download.moodle.org/unittest/README.txt (and so on) Also, I've created MDL-17884 about to implement the proper tests. Ciao

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development