File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ new metadata to disk.
428
428
429
429
# Remove a target file listed in the "targets" metadata. The target file is
430
430
# not actually deleted from the file system.
431
- >> > repository.targets.remove_target(" repository/targets/ file3.txt" )
431
+ >> > repository.targets.remove_target(' file3.txt' )
432
432
433
433
# repository.writeall() writes any required metadata files (e.g., if
434
434
# targets.json is updated, snapshot.json and timestamp.json are also written
Original file line number Diff line number Diff line change 9
9
10
10
<Purpose>
11
11
Regression test for the TUF tutorial as laid out in TUTORIAL.md.
12
- This simply runs the tutorial and checks some results.
12
+ This essentially runs the tutorial and checks some results.
13
+
14
+ There are a few deviations from the TUTORIAL.md instructions:
15
+ - steps that involve user input (like passphrases) are modified slightly
16
+ to not require user input
17
+ - use of path separators '/' is replaced by join() calls. (We assume that
18
+ when following the tutorial, users will correctly deal with path
19
+ separators for their system if they happen to be using non-Linux systems.)
20
+ - shell instructions are mimicked using Python commands
21
+
13
22
"""
14
23
15
24
# Help with Python 3 compatibility, where the print statement is a function, an
@@ -241,7 +250,7 @@ def test_tutorial(self):
241
250
242
251
repository .writeall ()
243
252
244
- repository .targets .remove_target ("repository/targets/ file3.txt" )
253
+ repository .targets .remove_target (' file3.txt' )
245
254
self .assertTrue (os .path .exists (os .path .join (
246
255
'repository' ,'targets' , 'file3.txt' )))
247
256
You can’t perform that action at this time.
0 commit comments