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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: download.moodle.org
    • Labels:
      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.

        Gliffy Diagrams

          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

              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment -

              Adding some people here. Feel free to comment. Ciao

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

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

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

              One binary file attached.

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

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

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - Attached one zipped folder and required md5 file to be downloaded using componentlib.
              Hide
              stronk7 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
              stronk7 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
              stronk7 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
              stronk7 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
              poltawski 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
              poltawski 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
              stronk7 Eloy Lafuente (stronk7) added a comment -

              One valid rss feed to tests uploaded. Good point!

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

              README.txt file updated with rsstest.xml specs.

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

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

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

              Requesting for confirmation...

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

              Ciao

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

              ping

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

              pong

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - pong
              Hide
              stronk7 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
              stronk7 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: