8f67bf1ea1
Fix a user reported issue with invalid security group format causing Nova to throw a 500 error (never a good thing). This provides some minimal validation of the security group in the v2 API to return a 400 instead of a 500 on garbage input. It does not break string freeze because this uses the same string as the validator for jsonschema. We aren't nearly as helpful about what's wrong with the secgroup format, that comes with v2.1. Test case is added for both v2 and v2.1 on the v2 endpoint (which passed previously). There is some copy and paste in the test case, but that's intentional for now until we figure out which pieces of the samples_base classes are really useful in other tests (and that we seem to keep wanting in other tests), and will be refactored later. Change-Id: I3fec08df09a7705e5c882d3ef29d9c4e620781fc Closes-Bug: #1239723 |
||
---|---|---|
.. | ||
__init__.py | ||
test_flavor_manage.py | ||
test_secgroup.py |