Skip to content

Commit e5ce022

Browse files
committed
Fix repository_tool test to expect promiscuous delegation to work
A and B both delegating to C works and is OK. We should probably add more testing for this, covering more complex situations. Signed-off-by: Sebastien Awwad <[email protected]>
1 parent bd8df73 commit e5ce022

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_repository_tool.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,11 @@ def test_delegate(self):
11891189
self.assertEqual(self.targets_object.get_delegated_rolenames(),
11901190
['tuf'])
11911191

1192+
# Try to delegate to a role that has already been delegated. Expect success.
1193+
self.targets_object.delegate(rolename, public_keys, paths, threshold,
1194+
terminating=False, list_of_targets=list_of_targets,
1195+
path_hash_prefixes=path_hash_prefixes)
1196+
11921197
# Test for targets that do not exist under the targets directory.
11931198
self.targets_object.revoke(rolename)
11941199
self.assertRaises(securesystemslib.exceptions.Error,

0 commit comments

Comments
 (0)