-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration tests : more basic tests (#2684)
* integration-tests: better handling of failures * integration-tests: use notfound as basic request plugin * allow --need-app=0 on command line * integration tests: rename plugins to test envvar to avoid conflict with uwsgi * integration tests: add basic test for jvm jwsgi * integration tests: add basic test for psgi * integration tests: add basic test for cgi * integration tests: add basic test for Ruby rack * integration tests: fix failure when run from another dir * fix test_classic_mountpoints with py3 (Fixes #2554) * integration tests: include manage_script_name tests * integration tests: factor test GET body code
- Loading branch information
Showing
11 changed files
with
150 additions
and
83 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[uwsgi] | ||
inherit = base | ||
main_plugin = | ||
plugins = python,php,pypy | ||
plugins = notfound,python,php,pypy,jvm,jwsgi,psgi,cgi,rack |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
echo "Content-Type: text/plain" | ||
echo | ||
echo "Hello world!" | ||
echo "PATH_INFO=${PATH_INFO}" |
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
[uwsgi] | ||
http-socket = :8080 | ||
|
||
master = 1 | ||
|
||
; Three apps on three mountpoints | ||
wsgi-file = %d/useless_app.py | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
def application(env, start_response): | ||
start_response('200 OK', [('Content-Type', 'text/html')]) | ||
return env['SCRIPT_NAME'] | ||
return [env['SCRIPT_NAME'].encode('ascii'), ] |
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,9 @@ | ||
class App | ||
|
||
def call(environ) | ||
[200, {'Content-Type' => 'text/html'}, ['Hello']] | ||
end | ||
|
||
end | ||
|
||
run App.new |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[uwsgi] | ||
need-app = False | ||
static-map = /foobar=t/static | ||
static-map = /foobar=%d | ||
static-expires-uri = ^/foobar/ 315360000 |