debian-forge-composer/internal/mocks
Achilleas Koutsou d0da8fd122 dnfjson: add package tests
The rpmrepo mock contains code to be used for testing depsolving.  It
creates a file server that serves the metadata in test/data/testrepo and
can be used as a repository for depsolve tests.

The dnfjson tests perform a single depsolve with an expected response.
The chain depsolve tests perform multiple depsolves that should produce
the same expected response:
- Single transaction using the ChainDepsove() function
- Two transactions for the same packages split in two with no extra
  repositories
- Two transactions for the same packages split in two with the main
  repository redefined

dnfjsontest: squash
2022-06-01 11:36:52 +01:00
..
distro Make the Distroregistry FromHost() return distro with correct name 2021-05-14 15:43:00 +02:00
dnfjson Add dnfjson mock data package and cmd 2022-06-01 11:36:52 +01:00
rpmmd Replace all rpmmd.Depsolve() calls with dnfjson 2022-06-01 11:36:52 +01:00
rpmrepo dnfjson: add package tests 2022-06-01 11:36:52 +01:00