diff options
author | Giampaolo Lauria <lauria@us.ibm.com> | 2013-03-08 23:13:31 -0500 |
---|---|---|
committer | Giampaolo Lauria <lauria@us.ibm.com> | 2013-03-11 12:14:44 -0400 |
commit | 999ced18a6bd20d3dea536657c1f9580206390bc (patch) | |
tree | bacd6f01bd4b833cb307084bcf727954e4d61346 /nova/context.py | |
parent | f543f347c84e7f5de2c584ca55363e4dee5b0a3d (diff) | |
download | nova-999ced18a6bd20d3dea536657c1f9580206390bc.tar.gz nova-999ced18a6bd20d3dea536657c1f9580206390bc.tar.xz nova-999ced18a6bd20d3dea536657c1f9580206390bc.zip |
Add numerous fixes to test_api_samples
- Throw IOError when a template for POST/PUT operations
does not exist instead of returning an API response error
- Create template and sample on first run when those
don't exist. It takes two runs of this module now
to get those files first populated.
- Fix error labels to now specify whether we are referring to
a sample or response when comparing response results
- Call _pretty_data() only once on sample_data before this
param is passed to _compare_results(). This change cut the
total execution time by .5 seconds or 1%. :)
- Create response template files which content is the same as
its response body instead of currently 0-length body.
Fixes bug 1140384
Change-Id: Ic62ae343409b2084e6a238025a86f0b7909a1b76
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions