Skip to content

Commit 628b938

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 0e0ae80 commit 628b938

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_repository_tool.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,9 +1189,8 @@ 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.
1193-
self.assertRaises(securesystemslib.exceptions.Error,
1194-
self.targets_object.delegate, rolename, public_keys, paths, threshold,
1192+
# Try to delegate to a role that has already been delegated. Expect success.
1193+
self.targets_object.delegate(rolename, public_keys, paths, threshold,
11951194
terminating=False, list_of_targets=list_of_targets,
11961195
path_hash_prefixes=path_hash_prefixes)
11971196

0 commit comments

Comments
 (0)