sanne
7a0ea5b244
worker: Remove identity filter
...
Partially reverts "0ea31c39d5 "
2021-09-04 02:48:52 +02:00
sanne
0ea31c39d5
worker: Add identity filter and client oauth support
2021-06-17 10:08:35 +02:00
Ondřej Budai
f1b7476da5
test: add arch to the generate test artifact names
...
To prevent conflicts sooner rather than later.
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2020-12-01 08:27:44 +01:00
Ondřej Budai
18258238d9
test: extract GenerateCIArtifactName to test helpers
...
A bit of deduplication can never hurt.
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2020-12-01 08:27:44 +01:00
Ondřej Budai
04c239246a
internal/test: remove redundant API interface
...
test.API is actually just http.Handler, let's use this interface directly
instead of defining our own one.
Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2020-11-25 22:20:42 +00:00
Tom Gundersen
4a484c8192
worker/server: extend the route tests a bit
...
Test the update and upload routes too, for completeness.
2020-11-11 18:16:42 +01:00
Ondřej Budai
d65057e164
weldr: add support for toml format in /blueprints/freeze
...
This is needed for lorax parity. When multiple blueprints are being frozen in
toml mode, the API returns an error. This is the same behaviour as in the
/blueprints/info route.
Fixes #667
2020-06-05 13:51:04 +02:00
Tom Gundersen
e5b3e737b6
test/helper: add comparison for ImageType objects
...
Two image types compare equal if they are named the same, and so are
their respective architectures and distros.
Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-05-18 11:50:15 +02:00
Lars Karlitski
cf53e6a9e2
test/helpers: include error return when route fails
2020-05-08 14:53:00 +02:00
Lars Karlitski
5c019cd092
test/helpers: mark TestRoute() as a helper function
...
This makes the calling function/location appear when a test fails.
2020-05-08 14:53:00 +02:00
Alexander Todorov
869bb2afd7
tests: Use the require/assert package and replace cmp.Diff
2020-04-19 18:20:57 +02:00
Brian C. Lane
3af34fba3f
test: Move temporary repo setup into test/helpers.go
...
This allows it to be shared between the dnf-json tests and weldrcheck.
2020-03-23 21:08:01 +01:00
Ondřej Budai
8c6f5016b0
api: implement /compose/log
2019-12-20 11:43:39 +01:00
Ondřej Budai
be1cf79d6a
test: introduce helpers for go-cmp
...
This commit introduces three helpers to ignore dates, uuids and paths when
using cmp.diff() method
2019-12-01 00:05:17 +01:00
Ondřej Budai
613b659b95
test: use google cmp library to do the deep reflect
...
The cmp library has two advantages:
- it shows diffs between compared values
- it allows ignoring fields based on field name or type
2019-12-01 00:05:17 +01:00
Ondřej Budai
a00a0caa70
api tests: refactor weldr and jobqueue api tests to use common helpers
...
The helper functions in both api packages were more or less same. However,
over time they have been slowly diverging. This commit extract the helpers
into one common package to make the tests more maintainable and
to deduplicate the code.
2019-11-27 22:27:40 +01:00