-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtester_instructions
More file actions
50 lines (46 loc) · 2.67 KB
/
tester_instructions
File metadata and controls
50 lines (46 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Passing the test here is the minimum before going to an evaluation.
THIS TEST IS NOT MEANT TO BE THE ONLY TEST IN THE EVALUATION!!!
Before starting please follow the next few steps
(files content can be anything and will be shown to you by the test):
- Download the cgi_test executable on the host
- Create a directory YoupiBanane with:
-a file name youpi.bad_extension
-a file name youpi.bla
-a sub directory called nop
-a file name youpi.bad_extension in nop
-a file name other.pouic in nop
-a sub directory called Yeah
-a file name not_happy.bad_extension in Yeah
Setup the configuration file as follow:
- / must answer to GET request ONLY
- /put_test/* must answer to PUT request and save files to a directory of your choice
- any file with .bla as extension must answer to POST request by calling the cgi_test executable
- /post_body must answer anything to POST request with a maxBody of 100
- /directory/ must answer to GET request and the root of it would be the repository YoupiBanane
and if no file are requested, it should search for youpi.bad_extension files
Test GET http://localhost:8080/
Test POST http://localhost:8080/ with a size of 0
Test HEAD http://localhost:8080/
Test GET http://localhost:8080/directory
Test GET http://localhost:8080/directory/youpi.bad_extension
Test GET http://localhost:8080/directory/youpi.bla
Test GET Expected 404 on http://localhost:8080/directory/oulalala
Test GET http://localhost:8080/directory/nop
Test GET http://localhost:8080/directory/nop/
Test GET http://localhost:8080/directory/nop/other.pouic
Test GET Expected 404 on http://localhost:8080/directory/nop/other.pouac
Test GET Expected 404 on http://localhost:8080/directory/Yeah
Test GET http://localhost:8080/directory/Yeah/not_happy.bad_extension
Test Put http://localhost:8080/put_test/file_should_exist_after with a size of 1000
Test Put http://localhost:8080/put_test/file_should_exist_after with a size of 10000000
Test POST http://localhost:8080/directory/youpi.bla with a size of 100000000
Test POST http://localhost:8080/directory/youpla.bla with a size of 100000000
Test POST http://localhost:8080/directory/youpi.bla with a size of 100000 with special headers
Test POST http://localhost:8080/post_body with a size of 0
Test POST http://localhost:8080/post_body with a size of 100
Test POST http://localhost:8080/post_body with a size of 200
Test POST http://localhost:8080/post_body with a size of 101
Test multiple workers(5) doing multiple times(15): GET on /
Test multiple workers(20) doing multiple times(5000): GET on /
Test multiple workers(128) doing multiple times(50): GET on /directory/nop
Test multiple workers(20) doing multiple times(5): Post on /directory/youpi.bla with size 100000000