File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -269,15 +269,16 @@ def test_with_tuf(self):
269
269
# Modify the timestamp file on the remote repository. 'timestamp.json'
270
270
# must be properly updated and signed with 'repository_tool.py', otherwise
271
271
# the client will reject it as invalid metadata.
272
+
273
+ # Load the repository
272
274
repository = repo_tool .load_repository (self .repository_directory )
273
-
275
+
276
+ # Load the timestamp and snapshot keys, since we will be signing a new
277
+ # timestamp and a new snapshot file.
274
278
key_file = os .path .join (self .keystore_directory , 'timestamp_key' )
275
279
timestamp_private = repo_tool .import_rsa_privatekey_from_file (key_file ,
276
280
'password' )
277
-
278
281
repository .timestamp .load_signing_key (timestamp_private )
279
-
280
- # Load snapshot keys.
281
282
key_file = os .path .join (self .keystore_directory , 'snapshot_key' )
282
283
snapshot_private = repo_tool .import_rsa_privatekey_from_file (key_file ,
283
284
'password' )
You can’t perform that action at this time.
0 commit comments