]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Support advanced validation of dictionaries in the API.
authorRoman Prykhodchenko <rprikhodchenko@mirantis.com>
Fri, 25 Jan 2013 15:44:21 +0000 (17:44 +0200)
committerRoman Prykhodchenko <rprikhodchenko@mirantis.com>
Wed, 13 Feb 2013 16:47:23 +0000 (18:47 +0200)
commita5c101da4bd6371fdc116690ef0c354868a571b0
tree393c36726922cf55ca2bf70ef35fe8bd97b5b779
parent9031585eefec897a8888964382f5518613effe36
Support advanced validation of dictionaries in the API.

This change allows to specify constraints for individual keys in
dictionaries in the specification of the API resources.

Introduces type:dict_or_none validator that allows to skip
validation of a dictionary if a None value was supplied.

Adds constraints for session persistance parameters to the API.

Disables specifying cookie_name for session persistence, if
the type is set to HTTP_COOKIE or SOURCE_IP.

Fixes: bug #1104110
Change-Id: I62068deed449967949eaba9259028c88dd6974f8
quantum/api/v2/attributes.py
quantum/db/loadbalancer/loadbalancer_db.py
quantum/extensions/loadbalancer.py
quantum/tests/unit/db/loadbalancer/test_db_loadbalancer.py
quantum/tests/unit/test_attributes.py
quantum/tests/unit/test_loadbalancer_plugin.py