This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/WWM-81' into develop
- Loading branch information
Showing
180 changed files
with
5,244 additions
and
315 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Test GET http://localhost:1234/ | ||
Test POST http://localhost:1234/ with a size of 0 | ||
Test HEAD http://localhost:1234/ | ||
Test GET http://localhost:1234/directory | ||
Test GET http://localhost:1234/directory/youpi.bad_extension | ||
Test GET http://localhost:1234/directory/youpi.bla | ||
Test GET Expected 404 on http://localhost:1234/directory/oulalala | ||
Test GET http://localhost:1234/directory/nop | ||
Test GET http://localhost:1234/directory/nop/ | ||
Test GET http://localhost:1234/directory/nop/other.pouic | ||
Test GET Expected 404 on http://localhost:1234/directory/nop/other.pouac | ||
Test GET Expected 404 on http://localhost:1234/directory/Yeah | ||
Test GET http://localhost:1234/directory/Yeah/not_happy.bad_extension | ||
Test Put http://localhost:1234/put_test/file_should_exist_after with a size of 1000 | ||
Test Put http://localhost:1234/put_test/file_should_exist_after with a size of 10000000 | ||
Test POST http://localhost:1234/directory/youpi.bla with a size of 100000000 | ||
Test POST http://localhost:1234/directory/youpla.bla with a size of 100000000 | ||
Test POST http://localhost:1234/directory/youpi.bla with a size of 100000 with special headers | ||
Test POST http://localhost:1234/post_body with a size of 0 | ||
Test POST http://localhost:1234/post_body with a size of 100 | ||
Test POST http://localhost:1234/post_body with a size of 200 | ||
Test POST http://localhost:1234/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): Put on /put_test/multiple_same with size 1000000 | ||
Test multiple workers(20) doing multiple times(5): Post on /directory/youpi.bla with size 100000000 |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
http { | ||
error_page 424 404 /4242.html; | ||
include /config/test/mime.types; | ||
sendfile off; | ||
keepalive_timeout 300; | ||
default_type application/octet-stream; | ||
error_log /log/error.log debug; | ||
server { | ||
listen 1113; | ||
server_name WebWaveMaker; | ||
error_page 424 404 /4242.html; | ||
error_page 500 502 503 504 /50x.html; | ||
client_max_body_size 1m; | ||
root /Users/jgo/Programming/devjgo/webserv/YoupiBanane/; | ||
location / { | ||
root /Users/jgo/Programming/devjgo/webserv/YoupiBanane/; | ||
limit_except GET; | ||
index /index.html; | ||
autoindex on; | ||
} | ||
|
||
location /put_test/ { | ||
root /Users/jgo/Programming/devjgo/webserv/YoupiBanane/put_test/; | ||
limit_except PUT; | ||
index /index.html; | ||
autoindex off; | ||
} | ||
|
||
location /post_body/ { | ||
root /Users/jgo/Programming/devjgo/webserv/YoupiBanane/; | ||
limit_except POST; | ||
index /tmp; | ||
autoindex off; | ||
} | ||
|
||
location /directory/ { | ||
root /Users/jgo/Programming/devjgo/webserv/YoupiBanane/; | ||
limit_except GET POST; | ||
index /youpi.bad_extension; | ||
autoindex off; | ||
} | ||
|
||
location /.bla/ { | ||
root /Users/jgo/Programming/devjgo/webserv/; | ||
limit_except POST; | ||
autoindex off; | ||
cgi_index /cgi_tester.cgi; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
http { | ||
sendfile off; | ||
keepalive_timeout 4242; | ||
default_type 4242/4242; | ||
client_max_body_size 2m; | ||
error_page 424 404 /4242.html; | ||
error_page 502 503 504 /50x.html; | ||
error_log ./log/error.log debug; | ||
server { | ||
listen 4242; | ||
server_name localhost; | ||
root /var/www/html; | ||
location { | ||
root /var/www/empty; | ||
include /config/test/mime.types; | ||
sendfile off; | ||
keepalive_timeout 30; | ||
default_type application/octet-stream; | ||
client_max_body_size 1m; | ||
error_log /log/error.log debug; | ||
server { | ||
listen 4244; | ||
server_name WebWaveMaker; | ||
error_page 424 404 413 /4242.html; | ||
error_page 500 502 503 504 /50x.html; | ||
root /Users/jgo/Programming/devjgo/webserv/var/www/; | ||
location / { | ||
root /Users/jgo/Programming/devjgo/webserv/var/www/empty/; | ||
limit_except GET POST PUT HEAD; | ||
} | ||
location /location { | ||
root /var/www/location1; | ||
location /location/ { | ||
return 301 /; | ||
} | ||
} | ||
server { | ||
listen 2424; | ||
server_name outside; | ||
root /var/www/4242; | ||
location /location2 { | ||
root /var/www/location2; | ||
location /delete/ { | ||
root /Users/jgo/Programming/devjgo/webserv/var/www/delete/; | ||
} | ||
location /.bla/ { | ||
root /Users/jgo/Programming/devjgo/webserv/var/www/; | ||
limit_except GET POST; | ||
cgi_index /cgi_tester; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
text/html html; | ||
text/html htm; | ||
text/html shtml; | ||
text/css css; | ||
text/xml xml; | ||
image/gif gif; | ||
image/jpeg jpeg; | ||
image/jpeg jpg; | ||
application/javascript js; | ||
application/atom+xml atom; | ||
application/rss+xml rss; | ||
text/mathml mml; | ||
text/plain txt; | ||
text/vnd.sun.j2me.app-descriptor jad; | ||
text/vnd.wap.wml wml; | ||
text/x-component htc; | ||
image/png png; | ||
image/tiff tif tiff; | ||
image/vnd.wap.wbmp wbmp; | ||
image/x-icon ico; | ||
image/x-jng jng; | ||
image/x-ms-bmp bmp; | ||
image/svg+xml svg svgz; | ||
image/webp webp; | ||
application/font-woff woff; | ||
application/java-archive jar war ear; | ||
application/json json; | ||
application/mac-binhex40 hqx; | ||
application/msword doc; | ||
application/pdf pdf; | ||
application/postscript ps eps ai; | ||
application/rtf rtf; | ||
application/vnd.apple.mpegurl m3u8; | ||
application/vnd.ms-excel xls; | ||
application/vnd.ms-fontobject eot; | ||
application/vnd.ms-powerpoint ppt; | ||
application/vnd.wap.wmlc wmlc; | ||
application/vnd.google-earth.kml+xml kml; | ||
application/vnd.google-earth.kmz kmz; | ||
application/x-7z-compressed 7z; | ||
application/x-cocoa cco; | ||
application/x-java-archive-diff jardiff; | ||
application/x-java-jnlp-file jnlp; | ||
application/x-makeself run; | ||
application/x-perl pl pm; | ||
application/x-pilot prc pdb; | ||
application/x-rar-compressed rar; | ||
application/x-redhat-package-manager rpm; | ||
application/x-sea sea; | ||
application/x-shockwave-flash swf; | ||
application/x-stuffit sit; | ||
application/x-tcl tcl tk; | ||
application/x-x509-ca-cert der pem crt; | ||
application/x-xpinstall xpi; | ||
application/xhtml+xml xhtml; | ||
application/xspf+xml xspf; | ||
application/zip zip; | ||
application/octet-stream bin; | ||
application/octet-stream exe; | ||
application/octet-stream dll; | ||
application/octet-stream deb; | ||
application/octet-stream dmg; | ||
application/octet-stream iso img; | ||
application/octet-stream msi msp msm; | ||
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; | ||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; | ||
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; | ||
audio/midi mid midi kar; | ||
audio/mpeg mp3; | ||
audio/ogg ogg; | ||
audio/x-m4a m4a; | ||
audio/x-realaudio ra; | ||
video/3gpp 3gpp 3gp; | ||
video/mp2t ts; | ||
video/mp4 mp4; | ||
video/mpeg mpeg mpg; | ||
video/quicktime mov; | ||
video/webm webm; | ||
video/x-flv flv; | ||
video/x-m4v m4v; | ||
video/x-mng mng; | ||
video/x-ms-asf asx asf; | ||
video/x-ms-wmv wmv; | ||
video/x-msvideo avi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
typedef int errno_t; | ||
typedef int handle_t; | ||
typedef int fd_t; | ||
typedef std::string sessionId_t; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.