debian-forge-composer/cmd
Achilleas Koutsou e9a7a50496 Add dnfjson mock data package and cmd
The cases are directly copied (or lightly adapted) from
rpmmd_mock/fixtures.

The purpose of the mocks/dnfjson package is to create files with data
for testing the dnfjson package without the need to call the dnf-json
script.  Each public function creates a file with test responses in the
same format as the dnf-json script's responses (either valid results or
errors).  The dnfjson.Solver can be configured to call the new
./cmd/mock-dnf-json program with the test data file as an argument and a
valid dnf-json request for input.  The mock-dnf-json checks the input
request for unknown fields before responding with the contents of the
file.

Each test case file contains two responses, one for each command
supported by dnf-json: "depsolve" and "dump".  mock-dnf-json responds
with the appropriate data based on the command in the request.  This is
necessary for tests that require both commands in the same call, e.g.,
tests of the weldr API's moduleInfoHandler() which fetches a package
list and then needs to depsolve a subset of those packages.

There are also cases when we want one of the two responses to be an
error.  The mock-dnf-json program will return with an error code if it
can successfully unmarshal the intended response into the dnfjson.Error
type.
2022-06-01 11:36:52 +01:00
..
cloud-cleaner cloud-cleaner: clean up GCE instances in all regions and zones 2022-05-17 12:18:12 +02:00
mock-dnf-json Add dnfjson mock data package and cmd 2022-06-01 11:36:52 +01:00
osbuild-auth-tests osbuild-auth-tests: add a build constraint also to certificates.go 2021-12-18 11:56:17 +00:00
osbuild-composer cloudapi: Drop bucket from composer config 2022-06-01 12:03:12 +02:00
osbuild-composer-cli-tests gosec: G204 - Subproccess launched as function arg 2021-12-13 12:17:30 +02:00
osbuild-composer-dbjobqueue-tests jobqueue: introduce the concept of channels 2022-03-08 12:07:00 +01:00
osbuild-composer-image-definitions Tools: fetch image test case generation matrix from composer 2022-05-13 21:01:37 +03:00
osbuild-composer-manifest-tests Manifests test: ensure that every image type has test coverage 2022-05-13 21:01:37 +03:00
osbuild-dnf-json-tests distro/fedora: refactor based on RHEL 9.0 code 2022-05-09 12:25:21 +02:00
osbuild-image-tests distro: housekeeping with cpu arch and arch.Name() 2022-05-10 19:53:41 +02:00
osbuild-koji koji: fix excessive logging & monitoring 2022-04-05 23:48:30 +02:00
osbuild-koji-tests gosec: G204 - Subproccess launched as function arg 2021-12-13 12:17:30 +02:00
osbuild-mock-openid-provider go.mod: Update openshift-online/ocm-sdk-go 2022-05-19 22:18:42 +02:00
osbuild-package-sets cmd: add osbuild-package-sets for printing package sets of an image 2022-03-29 11:36:52 +02:00
osbuild-pipeline osbuild-pipeline: use DepsolvePackageSets instead of Depsolve 2022-04-28 14:42:49 +02:00
osbuild-service-maintenance osbuild-service-maintenance: Move type conversion to config 2022-05-14 16:21:21 +02:00
osbuild-store-dump distro/fedora: refactor based on RHEL 9.0 code 2022-05-09 12:25:21 +02:00
osbuild-upload-aws osbuild-service-maintenance: Clean up expired images 2021-12-03 00:14:09 +00:00
osbuild-upload-azure cmd/upload-azure: set storage account 2021-03-06 15:40:48 +00:00
osbuild-upload-gcp cmd/osbuild-upload-gcp: use ComputeImageInsert() 2022-04-14 19:07:31 +01:00
osbuild-upload-generic-s3 Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
osbuild-upload-oci Add support for OCI upload provider 2022-01-28 15:16:47 +01:00
osbuild-worker Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00