glance/glance/tests
Eoghan Glynn 62c913c3ad Require container & disk formats on image create
Fixes lp 933702

For images created via the glance CLI, the container and disk formats
were previously defaulted if not explicitly set. However if created via
the python or REST APIs, these attributes were not defaulted if unset.

There is no real sensible default for these formats, so now an image
create fails with 400 "Bad Request" if the format metadata are missing.

Also we ensure unset image metadata are not reported in x-image-meta-*
headers in order to disambiguate None and empty string values.

Change-Id: I8189383f5f9adf42a8cdac7f8dc7e9327baf46da
2012-02-20 18:06:51 +00:00
..
etc Add policy checking for basic image operations 2012-01-19 16:23:13 -08:00
functional Require container & disk formats on image create 2012-02-20 18:06:51 +00:00
unit Require container & disk formats on image create 2012-02-20 18:06:51 +00:00
var New -k/--insecure command line option 2012-02-13 13:57:13 +00:00
__init__.py Bug fix lp:824706 2011-08-13 14:07:38 -05:00
stubs.py Use sendfile() for zero-copy of uploaded images. 2012-02-08 17:38:04 +00:00
utils.py Require container & disk formats on image create 2012-02-20 18:06:51 +00:00