- Some subplot tests require a virtual card. Those are not always
available on a system, so subplot uses the
tests/virtual-card-available file to note whether a virtual card is
available, and only generates those tests if it is.
- That file is included in the cache, so the cache should not be
shared.
- Subplot requires the presence of virtual cards, so it needs an image
where they are present. However this interferes with the intentions
of the cargo-test and cargo-test-debian-bookworm jobs.
- Revert the cargo-test and cargo-test-debian-bookworm jobs to the
environments they used to test, rust:latest and
debain:bookworm-slim, respectively.
- Add a test "subplot" that runs the subplot tests as part of the
virtual-test stage.
These need to be run with the virtual smartcard emulation in the
Docker container specified in .gitlab-ci.yml for tests.
The tests are a little simplistic, as it turned out that making
changes to the smart card results in flaky tests. Thus only parts of
opgpcard that don't change the card are tested.
Sponsored-by: NLnet Foundation; NGI Assure
JSON and other structured output needs to be versioned so that
consumers can rely on it long term. Add a module for specifying output
format and version, as well as traits for implementing things. This
doesn't do anything on its own, but future changes will build on it.
Sponsored-by: NLnet Foundation; NGI Assure
This doesn't change anything for existing tests but allows testing
opgpcard against a virtual smartcard later on.
Sponsored-by: NLnet Foundation; NGI Assure
- Forks of this project do not have access to cookiejar's hardware
keys. They do not have a gitlab CI runner that can pick up those
jobs, so the pipeline eventually fails with a timeout.
- Prevent hardware related jobs from being created for forked
projects.
This fixes a mistake with the openpgp-card-pcsc 0.2.2 release: openpgp-card-pcsc 0.2.2 depends on openpgp-card 0.3. However, this results in an (accidental) semver break, because openpgp-card-pcsc exposes parts of the openpgp-card API.
See https://gitlab.com/openpgp-card/openpgp-card/-/issues/41