From 0ee229eb8005b66057bebf63e296a26e8b38d2ad Mon Sep 17 00:00:00 2001 From: Ghe Rivero Date: Wed, 11 Jun 2014 00:51:11 +0200 Subject: Remove duplicated test for caching image The test test_cache_image_success is (bad) duplicate of the test test_cache_image The test is trying to retrieve a real url and saving it into a block device. Mock several calls to avoid this behavior and and assert that the cached image is properly saved. Change-Id: Ie2ff5931cc77e5cdd1621c652d73a62fed0b69a6 Partial-Bug: #1326849 --- ironic_python_agent/tests/extensions/standby.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ironic_python_agent/tests') diff --git a/ironic_python_agent/tests/extensions/standby.py b/ironic_python_agent/tests/extensions/standby.py index 6f5a1144..ed1e92c9 100644 --- a/ironic_python_agent/tests/extensions/standby.py +++ b/ironic_python_agent/tests/extensions/standby.py @@ -83,12 +83,6 @@ class TestStandbyExtension(test_base.BaseTestCase): standby._validate_image_info, invalid_info) - def test_cache_image_success(self): - result = self.agent_extension.cache_image( - 'cache_image', - image_info=self._build_fake_image_info()) - result.join() - def test_cache_image_invalid_image_list(self): self.assertRaises(errors.InvalidCommandParamsError, self.agent_extension.cache_image, -- cgit v1.2.1