Skip to content

Commit 416c34c

Browse files
committed
tests: Remove unused file
test_updater_ng.py is a little archaic (as it uses the static test repository content from ye olden days). This commit does not change that but removes an extra file in client cache dir: it is now quite confusing as it looks a bit like intermediate root caching but is just an unused file. This has the nice side effect that tests now longer need to workaround this extra file. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent e49b613 commit 416c34c

2 files changed

Lines changed: 0 additions & 90 deletions

File tree

tests/repository_data/client/test_repository1/metadata/current/1.root.json

Lines changed: 0 additions & 87 deletions
This file was deleted.

tests/test_updater_ng.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def test_refresh_and_download(self) -> None:
161161
# top-level targets are already in local cache (but remove others)
162162
os.remove(os.path.join(self.client_directory, "role1.json"))
163163
os.remove(os.path.join(self.client_directory, "role2.json"))
164-
os.remove(os.path.join(self.client_directory, "1.root.json"))
165164

166165
# top-level metadata is in local directory already
167166
self.updater.refresh()
@@ -208,7 +207,6 @@ def test_refresh_with_only_local_root(self) -> None:
208207
os.remove(os.path.join(self.client_directory, "targets.json"))
209208
os.remove(os.path.join(self.client_directory, "role1.json"))
210209
os.remove(os.path.join(self.client_directory, "role2.json"))
211-
os.remove(os.path.join(self.client_directory, "1.root.json"))
212210
self._assert_files([Root.type])
213211

214212
self.updater.refresh()
@@ -233,7 +231,6 @@ def test_implicit_refresh_with_only_local_root(self) -> None:
233231
os.remove(os.path.join(self.client_directory, "targets.json"))
234232
os.remove(os.path.join(self.client_directory, "role1.json"))
235233
os.remove(os.path.join(self.client_directory, "role2.json"))
236-
os.remove(os.path.join(self.client_directory, "1.root.json"))
237234
self._assert_files(["root"])
238235

239236
# Get targetinfo for 'file3.txt' listed in the delegated role1

0 commit comments

Comments
 (0)