salt/tests/unit
FELD Boris 5e9c3c7d96 Improve support of Accept header in saltnado.
It currently supports 'simple' values like application/json, but Accept header
could also include more than one value with parameters
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1.
For example:

```application/json, text/javascript, */*; q=0.01```

This PR add support for multiple media_range in Accept header, support parsing
of parameter (like q=0.01) but discard them and finally iterate on
media_range and take the first compatible.

A more complete implementation may fully supports the RFC and support
q parameter and specific order of priority to find the most compatible
Content-Type but I don't think it's worth the pain.

If we want a better implementation, werkzeug has actually an implementation
http://werkzeug.pocoo.org/docs/0.10/datastructures/#werkzeug.datastructures.Accept.best_match.
2015-09-17 00:48:34 +02:00
..
beacons lint 2015-05-27 13:36:25 -06:00
cli Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop 2015-04-16 12:15:44 -06:00
cloud Merge remote-tracking branch 'upstream/2015.8' into merge-forward-develop 2015-09-01 15:15:13 -06:00
config Fix SSH Roster Schema unittests 2015-07-28 12:37:19 +01:00
modules Use localectl for locale setting on Debian if available 2015-09-04 04:06:55 +03:00
netapi Improve support of Accept header in saltnado. 2015-09-17 00:48:34 +02:00
output Remove test as well 2015-02-07 11:57:40 -08:00
pillar More test fixes 2015-07-22 10:40:49 -05:00
renderers rewrite GPG unit tests 2015-07-16 09:37:37 -06:00
returners update smtp returner unit tests 2015-05-11 00:23:28 -06:00
serializers Add new module type for serializers from issue #22257. 2015-05-28 20:03:11 -04:00
states more test updates 2015-09-14 13:05:07 -04:00
templates Derp 2015-06-10 15:50:53 -06:00
transport Make the testing ioloop the current one 2015-09-03 13:28:28 -06:00
utils Merge remote-tracking branch 'upstream/2015.8' into hotfix/merge-forward-develop 2015-09-06 12:42:58 +01:00
__init__.py
auth_test.py Manual merge of #24414 per thatch45 2015-06-06 07:47:52 -06:00
client_test.py Merge remote-tracking branch 'upstream/2015.2' into merge-forward-develop 2015-03-16 15:12:02 -06:00
crypt_test.py py3: fix salt/crypt.py 2015-06-09 10:19:06 -06:00
files_test.py Py3 compatibility fixes 2015-01-30 22:25:10 +00:00
highstateconf_test.py Fix test 2015-08-18 08:51:00 -06:00
log_test.py Manual merge of #24414 per thatch45 2015-06-06 07:47:52 -06:00
minion_test.py Fix misc tests 2015-04-07 20:53:27 -07:00
payload_test.py Merge remote-tracking branch 'upstream/2015.5' into merge-forward-develop 2015-06-11 13:15:38 -06:00
pillar_test.py py3: fix tests/unit/pillar_test.py 2015-06-11 10:33:00 -06:00
pydsl_test.py tests/unit/pydsl_test.py: remove raw string formatting 2015-08-26 23:26:08 -05:00
pyobjects_test.py Fix loader call in pyobjects 2015-06-18 09:11:45 -06:00
simple.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
spm_test.py Make sure spm tests are picked up by runtests. 2015-09-14 17:54:51 +01:00
stateconf_test.py Allow parent relative includes in state files 2015-07-21 16:32:38 +10:00
template_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
version_test.py Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00