On Wed, Jun 22, 2011 at 06:04:33PM -0000, Sandy Walsh wrote:
> I would like to see mocked out unit tests for each new method/function. Many of the _ internal methods have no tests at all.
Now I added more unit tests for those methods/functions.
I think they covers what you meant.
- nova/api/ec2/cloud.py
_parse_block_device_mapping(), _format_block_device_mapping(),
_format_mappings(), _format_instance_bdm()
Implemented timeout. I adopted 1 hour to timeout.
Although I'm not sure how long it should be, the length wouldn't matter
so much because timeout is just for safety.
Thank you for review.
On Wed, Jun 22, 2011 at 06:04:33PM -0000, Sandy Walsh wrote:
> I would like to see mocked out unit tests for each new method/function. Many of the _ internal methods have no tests at all.
Now I added more unit tests for those methods/functions. ec2/cloud. py block_device_ mapping( ), _format_ block_device_ mapping( ), mappings( ), _format_ instance_ bdm()
I think they covers what you meant.
- nova/api/
_parse_
_format_
- nova/compute/api.py image_block_ device_ mapping( ), _update_ block_device_ mapping( )
_update_
- nova/volume/api.py snapshot( ),create_ snapshot_ force()
create_
> Minor things:
> +379/380 ... commented out?
Removed them
> +405 ... potential black hole?
Implemented timeout. I adopted 1 hour to timeout.
Although I'm not sure how long it should be, the length wouldn't matter
so much because timeout is just for safety.
thanks,
--
yamahata