Issue Details (XML | Word | Printable)

Key: MDLSITE-318
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Eloy Lafuente (stronk7)
Reporter: Eloy Lafuente (stronk7)
Votes: 0
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle.org Sites

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

Created: 22/Dec/07 03:38 AM   Updated: 14/Jan/09 02:35 AM
Return to search
Component/s: download.moodle.org

File Attachments: 1. File downloadtests.md5 (0.0 kB)
2. Zip Archive downloadtests.zip (39 kB)
3. Text File README.txt (1 kB)
4. XML File rsstest.xml (31 kB)
5. HTML File test.html (3 kB)

Image Attachments:

1. test.jpg
(39 kB)
Issue Links:
Dependency
 
Relates
 

Participants: Dan Poltawski, Eloy Lafuente (stronk7) and Petr Skoda
Security Level: None
Resolved date: 14/Jan/09


 Description  « Hide
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.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Eloy Lafuente (stronk7) added a comment - 22/Dec/07 03:39 AM
Adding some people here. Feel free to comment. Ciao

Eloy Lafuente (stronk7) added a comment - 22/Dec/07 09:17 AM
One html file with UTF-8 charts and UNIX/DOS/MAC linefeeds.

Eloy Lafuente (stronk7) added a comment - 22/Dec/07 09:21 AM
One binary file attached.

Eloy Lafuente (stronk7) added a comment - 22/Dec/07 09:34 AM
Attached one zipped folder and required md5 file to be downloaded using componentlib.

Eloy Lafuente (stronk7) added a comment - 22/Dec/07 09:46 AM
Attached one README.txt file explaining all the rest. Contains md5 and size for each file in the directory.

Eloy Lafuente (stronk7) added a comment - 22/Dec/07 09:47 AM
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


Dan Poltawski added a comment - 30/Dec/07 04:08 AM
It might also be useful to have a static RSS file with some whacky data in it to test from too.

Eloy Lafuente (stronk7) added a comment - 30/Dec/07 10:27 AM
One valid rss feed to tests uploaded. Good point!

Eloy Lafuente (stronk7) added a comment - 30/Dec/07 10:28 AM
README.txt file updated with rsstest.xml specs.

Petr Skoda added a comment - 30/Dec/07 09:23 PM
clearing security flag, going to use the attachments for tests...

Eloy Lafuente (stronk7) added a comment - 15/Mar/08 09:58 AM
Requesting for confirmation...

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

Ciao


Eloy Lafuente (stronk7) added a comment - 02/Nov/08 11:45 PM
ping

Eloy Lafuente (stronk7) added a comment - 11/Jan/09 07:42 PM
pong

Eloy Lafuente (stronk7) added a comment - 14/Jan/09 02:35 AM
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