Skip to content

Commit

Permalink
TrustedMetadataSet: remove verify_threshold tests
Browse files Browse the repository at this point in the history
We don't neeed those tests given that verify_with_threshold is a
placeholder until theupdateframework#1436
is merged.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
  • Loading branch information
MVrachev committed Jul 8, 2021
1 parent d499d2e commit dfd745a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_trusted_metadata_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,6 @@ def test_update_with_invalid_json(self):

update_func(metadata)


def test_verify_with_threshold_wrong_delegator(self):
delegated_role = Metadata.from_bytes(self.metadata["role1"])
timestamp = Metadata.from_bytes(self.metadata["timestamp"])
with self.assertRaises(ValueError):
verify_with_threshold(timestamp, "role1", delegated_role)

def test_verify_with_threshold_non_existent_role_name(self):
delegated_role = Metadata.from_bytes(self.metadata["role1"])
targets = Metadata.from_bytes(self.metadata["targets"])
with self.assertRaises(ValueError):
verify_with_threshold(targets, "foo", delegated_role)

def test_update_root_invalid_type(self):
# new_root data with invalid snapshot type
invalid_type_data = json.loads(self.metadata["root"])
Expand Down

0 comments on commit dfd745a

Please sign in to comment.