debian-forge-composer/internal
Tomas Hozza 09534091a9 cloudapi: run all Koji compose unit tests
Previously, only a subset from all Koji Compose unit test cases were
run. Remove this limitation and run all defined unit tests, which were
copied from `kojiapi`.

In addition, fix unit tests and relevant cloudapi methods to make unit
tests pass.

Add `TestRouteWithReply()` to `test/helpers.go` to allow getting the
compose ID when submitting a new compose. This is needed to make some
unit tests deterministic.

Do not delete values from `fields` slice in `dropFields()` in
`test/helpers.go`. The behavior was previously not consistent.
If the top-level map contained the value, it was deleted from it, but
the nested maps also contained the value, it was not deleted. On the
other hand, if the top level map didn't contain the value, but nested
maps did contain it, the value was deleted from all nested maps.
2022-06-10 14:48:18 +01:00
..
auth go.mod: Update openshift-online/ocm-sdk-go 2022-05-19 22:18:42 +02:00
blueprint blueprint: sanitize user home directories 2022-03-28 14:08:57 +02:00
boot Move GetRedHatRelease() and GetHostDistroName() to common package 2022-06-10 14:48:18 +01:00
client tests: use TestMain() instead of Init() to compile mock-dnf-json 2022-06-01 11:36:52 +01:00
cloud Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
cloudapi cloudapi: run all Koji compose unit tests 2022-06-10 14:48:18 +01:00
common Move GetRedHatRelease() and GetHostDistroName() to common package 2022-06-10 14:48:18 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk disk: test minimum directory size calculations 2022-04-29 08:55:36 +02:00
distro Move GetRedHatRelease() and GetHostDistroName() to common package 2022-06-10 14:48:18 +01:00
distroregistry Move GetRedHatRelease() and GetHostDistroName() to common package 2022-06-10 14:48:18 +01:00
dnfjson dnfjson: acquire read lock when calling dnf-json 2022-06-10 12:45:41 +01:00
jobqueue osbuild-service-maintenance: Vacuum tables 2022-06-08 21:12:46 +02:00
jsondb test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
kojiapi worker: define job types as constants 2022-06-10 14:48:18 +01:00
mocks dnfjson: drop repo checksums 2022-06-01 11:36:52 +01:00
osbuild1 osbuild1: support VMDK subformat in QEMU assembler 2022-05-04 16:22:29 +02:00
osbuild2 distro/rhel86: ignore SRIOV interface via new udev rule on azure-rhui 2022-05-16 15:46:46 +02:00
ostree ostree: rename errors and introduce ParameterComboError 2022-02-23 11:08:24 +01:00
prometheus prometheus: add tenant label 2022-06-07 16:35:03 +02:00
reporegistry reporegistry: remove unused ReposByArch() function 2022-03-09 23:22:06 +00:00
rhsm internal/rhsm: implement fallback to the previous mechanism 2021-08-09 12:40:23 +02:00
rpmmd simplify package set chain handling 2022-06-01 11:36:52 +01:00
store distro/fedora: refactor based on RHEL 9.0 code 2022-05-09 12:25:21 +02:00
target target/koji: delete unused fields from KojiTargetOptions 2022-06-10 14:48:18 +01:00
test cloudapi: run all Koji compose unit tests 2022-06-10 14:48:18 +01:00
upload koji: fix excessive logging & monitoring 2022-04-05 23:48:30 +02:00
weldr worker: define job types as constants 2022-06-10 14:48:18 +01:00
worker worker/server: delete CheckBuildDependencies() 2022-06-10 14:48:18 +01:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00