dangerzone/tests
Alexis Métaireau a87fd4338b
Download and verify cosign signatures
Signatures are stored in the OCI Manifest v2 registry [0], and are
expected to follow the Cosign Signature Specification [0]

The following CLI utilities are provided with `dangerzone-image`:

For checking new container images, upgrading them and downloading them:

- `upgrade` allows to upgrade the current installed image to the
  last one available on the OCI registry, downloading and storing the
  signatures in the process.
- `verify-local` allows the verify the currently installed image against
  downloaded signatures and public key.

To prepare and install archives on air-gapped environments:

- `prepare-archive` helps to prepare an archive to install on another
  machine
- `load-archive` helps upgrade the local image to the archive given
  in argument.

Signatures are stored locally using the format provided by `cosign
download signature`, and the Rekor log index is used to ensure the
requested-to-install container image is fresher than the one already
present on the system.

[0] https://github.com/sigstore/cosign/blob/main/specs/SIGNATURE_SPEC.md
2025-04-22 12:55:41 +02:00
..
gui Mock the settings rather than monkeypatching external modules 2025-03-31 16:20:28 +02:00
isolation_provider Use a Runtime class to get information about container runtimes 2025-03-31 16:20:28 +02:00
test_docs Update reference documents to their last version 2025-03-26 11:45:46 +01:00
test_docs_compressed Add page limit of 10000 2023-09-28 11:01:14 +01:00
test_docs_external Add test files for hwp/hwpx (base64 encoded) 2023-08-01 14:37:14 +01:00
test_docs_large@0068ffcb67 Replace armor guards that indicate isolated output 2023-08-22 16:11:41 +01:00
__init__.py chore: remove fixture imports in the tests 2024-06-05 15:56:09 +02:00
conftest.py Download and verify cosign signatures 2025-04-22 12:55:41 +02:00
test_cli.py Skip PDF-diffing tests when using a dummy isolation provider. 2025-03-26 11:45:46 +01:00
test_container_utils.py Add a set-container-runtime option to dangerzone-cli 2025-03-31 16:20:29 +02:00
test_document.py Prevent user from using illegal characters in output filename 2024-10-07 18:04:47 +03:00
test_large_set.py tests: Do not let LibreOffice hang on the large test set 2024-08-09 14:32:19 +03:00
test_ocr.py Add new way to detect tessdata dir 2024-10-17 15:50:11 +03:00
test_settings.py Mock the settings rather than monkeypatching external modules 2025-03-31 16:20:28 +02:00
test_util.py Use pathlib.Path to return path locations 2025-03-31 16:20:28 +02:00