[test] Gunicorn test plan

Bug #1416085 reported by nicopace
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gunicorn (Juju Charms Collection)
New
Undecided
nicopace

Bug Description

I plan to implement tests for this scenarios:
* test different kind of wsgi_worker_class
* test relation with nginx, as it is the suggested installation
* test wsgi_worker_connections limit, setting it to a low limit, and installing a wsgi app that delays so we can test this, using a slow app for testing: https://github.com/benoitc/gunicorn/blob/master/examples/slowclient.py
* set wsgi_backlog to a low number, so we can test the connection denied behaviour
* check that env variables passed over the env_extra config, reach the django app
* set wsgi_log_file to a file that the process won't have permissions, so we can test how the charm reacts to it
* test the tornado workers, implementing a small tornado example based on https://github.com/benoitc/gunicorn/blob/master/examples/frameworks/tornadoapp.py

Tags: test
Revision history for this message
Whit Morriss (whitmo) wrote :

LGTM +1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.