Moodle Community Sites

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: Resolved Resolved
  • Priority: Major 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.

  1. downloadtests.md5
    22/Dec/07 9:34 AM
    0.0 kB
    Eloy Lafuente (stronk7)
  2. README.txt
    30/Dec/07 10:28 AM
    1 kB
    Eloy Lafuente (stronk7)
  3. rsstest.xml
    30/Dec/07 10:27 AM
    31 kB
    Eloy Lafuente (stronk7)
  4. test.html
    22/Dec/07 9:17 AM
    3 kB
    Eloy Lafuente (stronk7)
  1. test.jpg
    39 kB
    22/Dec/07 9:21 AM

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 (skodak) added a comment -

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

Show
Petr Škoda (skodak) 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

Dates

  • Created:
    Updated:
    Resolved: