nova/nova/tests/functional/wsgi
Sean Dague 8f67bf1ea1 don't 500 on invalid security group format
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
2015-03-24 13:30:57 -04:00
..
__init__.py nova flavor manage functional test 2015-02-20 08:50:44 -05:00
test_flavor_manage.py implement user negative testing for flavor manage 2015-03-13 10:47:24 +00:00
test_secgroup.py don't 500 on invalid security group format 2015-03-24 13:30:57 -04:00