diff options
author | Dan Smith <danms@us.ibm.com> | 2013-05-30 09:30:12 -0700 |
---|---|---|
committer | Dan Smith <danms@us.ibm.com> | 2013-06-03 08:51:39 -0700 |
commit | 275e673e90c2a00d45451a232ffd66e7a9618174 (patch) | |
tree | a8aea460c097d75fd99da0596dd9445f187202e6 /nova/utils.py | |
parent | 0afcc051a99443004510458da32e507385d58873 (diff) | |
download | nova-275e673e90c2a00d45451a232ffd66e7a9618174.tar.gz nova-275e673e90c2a00d45451a232ffd66e7a9618174.tar.xz nova-275e673e90c2a00d45451a232ffd66e7a9618174.zip |
Add fake_instance.py
There are lots of places in the tests where we create a piece of
an instance-like dict and return that from a stubbed database
function. This "works" right now, but won't in the future of stricter
objects. This adds a fake_instance.py (to mirror the other ones
already there) which builds an instance database primitive that
includes sane values for every field it should have. This will make
testing much easier going forward with instance objects.
Related to blueprint unified-object-model
Change-Id: I13d97cc101c1964aa91ce48093507bbc88803cbb
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions