[Kimchi-devel] [PATCH v2 3/3] Add unit tests for new vm 'persistent' property.
Royce Lv
lvroyce at linux.vnet.ibm.com
Mon Aug 25 06:19:14 UTC 2014
Reviewed-by: Royce Lv<lvroyce at linux.vnet.ibm.com>
On 2014年08月22日 04:18, Christy Perez wrote:
> Also fix tests that were failing as a result of the addition.
>
> Signed-off-by: Christy Perez <christy at linux.vnet.ibm.com>
> ---
> tests/test_model.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/test_model.py b/tests/test_model.py
> index f5b13d0..59f416c 100644
> --- a/tests/test_model.py
> +++ b/tests/test_model.py
> @@ -65,7 +65,7 @@ def test_vm_info(self):
>
> keys = set(('name', 'state', 'stats', 'uuid', 'memory', 'cpus',
> 'screenshot', 'icon', 'graphics', 'users', 'groups',
> - 'access', 'ticket'))
> + 'access', 'ticket', 'persistent'))
>
> stats_keys = set(('cpu_utilization',
> 'net_throughput', 'net_throughput_peak',
> @@ -81,6 +81,7 @@ def test_vm_info(self):
> self.assertRaises(NotFoundError, inst.vm_lookup, 'nosuchvm')
> self.assertEquals([], info['users'])
> self.assertEquals([], info['groups'])
> + self.assertTrue(info['persistent'])
>
> @unittest.skipUnless(utils.running_as_root(), 'Must be run as root')
> def test_vm_lifecycle(self):
More information about the Kimchi-devel
mailing list