tests.test_attestation moduleΒΆ

Tests for the attestation bundle naming rule.

tests.test_attestation.test_bundle_subjects_reads_every_name(tmp_path)[source]ΒΆ

Subjects come back in the order the statement lists them.

tests.test_attestation.test_bundle_subjects_rejects_malformed(tmp_path, content, message)[source]ΒΆ

A file that is not a readable bundle fails with a specific message.

tests.test_attestation.test_bundle_subjects_rejects_empty_subject_list(tmp_path)[source]ΒΆ

A bundle attesting nothing has no name to give.

tests.test_attestation.test_bundle_subjects_rejects_path_subject(tmp_path, name)[source]ΒΆ

A subject naming a path could escape the asset directory.

tests.test_attestation.test_bundle_filename(subjects, set_name, expected)[source]ΒΆ

One subject names the bundle; several fall back to the set name.

tests.test_attestation.test_bundle_filename_needs_a_set_name_for_several_subjects()[source]ΒΆ

No single filename can claim a bundle covering several assets.

tests.test_attestation.test_bundle_filename_rejects_no_subject()[source]ΒΆ

Naming a bundle that attests nothing is a programming error.

tests.test_attestation.test_pack_attestation_names_bundle_and_lists_uploads(tmp_path)[source]ΒΆ

The bundle lands beside its subject, and both are listed for upload.

tests.test_attestation.test_pack_attestation_covers_a_whole_set(tmp_path)[source]ΒΆ

Several subjects yield one set-named bundle and every asset.

tests.test_attestation.test_pack_attestation_rejects_a_missing_subject(tmp_path)[source]ΒΆ

A bundle covering a file that is not there attested another tree.

tests.test_attestation.test_missing_subjects_names_what_the_bundle_lacks(tmp_path)[source]ΒΆ

A declared asset whose artifact never landed is absent from the bundle.

tests.test_attestation.test_verify_attestation_requires_the_upstream_signer(tmp_path)[source]ΒΆ

The release lanes of the upstream repository signed every attestation.