From 4aa09ff7d50e77e5fec7dba9ec02fb1f051864fd Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Tue, 31 Dec 2024 12:52:28 +0200 Subject: [PATCH] tests: Fix test_load_metadata_from_cache for versioned roots Expect (failing) call to open for "root_history/2.root.json" now that the client stores versioned roots. Signed-off-by: Jussi Kukkonen --- tests/test_updater_top_level_update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_updater_top_level_update.py b/tests/test_updater_top_level_update.py index fb053cb9..cfbfadf5 100644 --- a/tests/test_updater_top_level_update.py +++ b/tests/test_updater_top_level_update.py @@ -732,6 +732,7 @@ def test_load_metadata_from_cache(self, wrapped_open: MagicMock) -> None: wrapped_open.assert_has_calls( [ call(os.path.join(self.metadata_dir, "root.json"), "rb"), + call(os.path.join(self.metadata_dir, "root_history/2.root.json"), "rb"), call(os.path.join(self.metadata_dir, "timestamp.json"), "rb"), call(os.path.join(self.metadata_dir, "snapshot.json"), "rb"), call(os.path.join(self.metadata_dir, "targets.json"), "rb"),