Skip to content

Commit

Permalink
test: rename some assets
Browse files Browse the repository at this point in the history
Per #153: this is nowhere near complete, but makes the relationships
between a few assets and their filenames slightly clearer.

Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Aug 19, 2024
1 parent bcbeee6 commit 148e830
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions test/test_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@
from test.conftest import _MakeMaterialsByType


def test_verify(client: SigstoreClient, make_materials_by_type: _MakeMaterialsByType) -> None:
def test_verify_v_0_1(client: SigstoreClient, make_materials_by_type: _MakeMaterialsByType) -> None:
"""
Test the happy path of verification
Test the happy path of verification for a v0.1 bundle.
"""

materials: BundleMaterials
input_path, materials = make_materials_by_type("a.txt", BundleMaterials)
materials.bundle = Path("a.txt.good.sigstore.json")
materials.bundle = Path("a.txt_hashedrekord.good.v0.1.sigstore.json")

client.verify(materials, input_path)


def test_verify_v_0_3(client: SigstoreClient, make_materials_by_type: _MakeMaterialsByType) -> None:
"""
Test the happy path of verification of a v0.3 bundle
Test the happy path of verification for a v0.3 bundle.
"""

materials: BundleMaterials
input_path, materials = make_materials_by_type("a.txt", BundleMaterials)
materials.bundle = Path("a.txt.good.v0.3.sigstore")
materials.bundle = Path("a.txt_hashedrekord.good.v0.3.sigstore.json")

client.verify(materials, input_path)

Expand All @@ -40,7 +40,7 @@ def test_verify_dsse_bundle_with_trust_root(
"""
materials: BundleMaterials
input_path, materials = make_materials_by_type("d.txt", BundleMaterials)
materials.bundle = Path("d.txt.good.sigstore.json")
materials.bundle = Path("d.txt+custom-trust-root_intoto_dsse.good.v0.2.sigstore.json")
materials.trusted_root = Path("trusted_root.d.json")

client.verify(materials, input_path)
Expand Down

0 comments on commit 148e830

Please sign in to comment.