summaryrefslogtreecommitdiff
path: root/ironic/tests
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-09-13 07:19:20 +0000
committerGerrit Code Review <review@openstack.org>2021-09-13 07:19:20 +0000
commitc2ebeadc8cb5a7a611357b59591eabbf6f0a6f8a (patch)
tree3cddbc508f780baf5ff9383204c0ed63f01765f0 /ironic/tests
parentb0a8d9df9a7f89b1a4f535290ddbe124165193be (diff)
parent94a1560d31b72052a94c0a4c07db2f9cf957ff26 (diff)
downloadironic-c2ebeadc8cb5a7a611357b59591eabbf6f0a6f8a.tar.gz
Merge "Always update cache for HTTP images if Last Modified is unknown"
Diffstat (limited to 'ironic/tests')
-rw-r--r--ironic/tests/unit/drivers/modules/test_image_cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/tests/unit/drivers/modules/test_image_cache.py b/ironic/tests/unit/drivers/modules/test_image_cache.py
index 994d3a214..51e36cd19 100644
--- a/ironic/tests/unit/drivers/modules/test_image_cache.py
+++ b/ironic/tests/unit/drivers/modules/test_image_cache.py
@@ -298,8 +298,8 @@ class TestUpdateImages(base.TestCase):
res = image_cache._delete_master_path_if_stale(self.master_path, href,
None)
mock_gis.assert_called_once_with(href, context=None)
- self.assertFalse(mock_unlink.called)
- self.assertTrue(res)
+ mock_unlink.assert_called_once_with(self.master_path)
+ self.assertFalse(res)
@mock.patch.object(image_service, 'get_image_service', autospec=True)
def test__delete_master_path_if_stale_master_up_to_date(self, mock_gis,