diff options
author | Zuul <zuul@review.opendev.org> | 2021-09-13 07:19:20 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-09-13 07:19:20 +0000 |
commit | c2ebeadc8cb5a7a611357b59591eabbf6f0a6f8a (patch) | |
tree | 3cddbc508f780baf5ff9383204c0ed63f01765f0 /ironic/tests | |
parent | b0a8d9df9a7f89b1a4f535290ddbe124165193be (diff) | |
parent | 94a1560d31b72052a94c0a4c07db2f9cf957ff26 (diff) | |
download | ironic-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.py | 4 |
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, |